/* =====================================================================
   أثر لتصميم الويب — public site stylesheet
   Palette: warm ink + ivory + brass. Display: Amiri / Cormorant Garamond.
   Body: IBM Plex Sans Arabic / Plus Jakarta Sans. Logical properties for RTL.
   ===================================================================== */

:root {
  --ink: #0E0D0B;
  --ink-2: #14120E;
  --ink-3: #1C1913;
  --ivory: #F1EADC;
  --ivory-2: #E8E0CF;
  --ivory-3: #D8CEB8;
  --brass: #C9A868;
  --brass-2: #E3CB92;
  --brass-dim: color-mix(in srgb, var(--brass) 16%, transparent);
  --mute: #9C9484;
  --mute-2: #6F685B;
  --wa: #25D366;

  --fg: var(--ivory);
  --fg-mute: var(--mute);
  --bg: var(--ink);
  --line: color-mix(in srgb, var(--ivory) 10%, transparent);
  --line-2: color-mix(in srgb, var(--ivory) 20%, transparent);
  --surface: color-mix(in srgb, var(--ivory) 3.5%, transparent);
  --surface-2: color-mix(in srgb, var(--ivory) 7%, transparent);
  --glass: color-mix(in srgb, var(--ink) 62%, transparent);

  --font-display: 'Amiri', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .7s;

  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1rem;
  --r-sm: .75rem;
  --bezel: 6px;

  --container: 1320px;
  --gutter: clamp(18px, 4.5vw, 56px);
  --section: clamp(5rem, 11vw, 10rem);
  --nav-h: 72px;
}
html[lang="en"] {
  --font-display: 'Cormorant Garamond', 'Amiri', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}


/* ---------- themes (selected in Admin → Settings → Appearance) ----------
   --ink* = base backgrounds, --ivory* = base text, --brass* = accent. Sections marked "ivory"
   invert the pair, so every preset keeps the alternating rhythm. */
html[data-theme="ivory"] { --ink: #F3EEE3; --ink-2: #EBE4D6; --ink-3: #E1D8C6; --ivory: #15130F; --ivory-2: #2A261F; --ivory-3: #3C3730; --brass: #A8853F; --brass-2: #8C6B2B; --mute: #6B6354; --mute-2: #8C8373; }
html[data-theme="sand"] { --ink: #EFE6D6; --ink-2: #E7DCC8; --ink-3: #DDD0B8; --ivory: #1B1711; --ivory-2: #2E281F; --ivory-3: #40392E; --brass: #7A5C25; --brass-2: #5E4619; --mute: #6E6451; --mute-2: #8E8470; }
html[data-theme="oud"] { --ink: #1A0B10; --ink-2: #22101A; --ink-3: #2E1724; --ivory: #F4E9E3; --ivory-2: #EAD9D0; --ivory-3: #D9C2B6; --brass: #D4AF6A; --brass-2: #E8C98D; --mute: #A48E90; --mute-2: #7A6468; }
html[data-theme="emerald"] { --ink: #0A1612; --ink-2: #0F1F19; --ink-3: #162B23; --ivory: #EEF2EA; --ivory-2: #DFE6DA; --ivory-3: #C9D3C2; --brass: #C8B27A; --brass-2: #DDCB98; --mute: #8FA094; --mute-2: #65756A; }
html[data-theme="midnight"] { --ink: #0B0F17; --ink-2: #111826; --ink-3: #182134; --ivory: #EEF1F6; --ivory-2: #DDE2EA; --ivory-3: #C5CCD8; --brass: #BFC8D6; --brass-2: #DCE3EE; --mute: #8D97A8; --mute-2: #67707F; }
html[data-fonts="sans"] { --font-display: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif; }
html[data-fonts="sans"][lang="en"] { --font-display: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
html[data-fonts="sans"] .display { font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
html[data-fonts="sans"] .display--hero { font-size: clamp(2.3rem, 5.6vw, 5rem); line-height: 1.12; }
html[data-fonts="custom"] .display { font-weight: 400; letter-spacing: 0; line-height: 1.2; }
html[data-fonts="custom"] .display--hero { line-height: 1.15; }
html[data-radius="sharp"] { --r-xl: .6rem; --r-lg: .5rem; --r-md: .4rem; --r-sm: .3rem; }
html[data-radius="sharp"] .btn, html[data-radius="sharp"] .nav-pill, html[data-radius="sharp"] .lang-switch, html[data-radius="sharp"] .filters button { border-radius: .4rem; }
html[data-radius="sharp"] .btn__ico, html[data-radius="sharp"] .socials a, html[data-radius="sharp"] .service-list__ico, html[data-radius="sharp"] .feature__ico { border-radius: .3rem; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100dvh;
}
html[lang="en"] body { font-size: 1rem; line-height: 1.7; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; top: -100px; inset-inline-start: 16px; z-index: 200; background: var(--brass); color: var(--ink); padding: .6rem 1rem; border-radius: 999px; font-weight: 600; transition: top .3s; }
.skip-link:focus { top: 16px; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js-motion .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; }
  .cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; translate: -50% -50%; }
  .cursor__dot { width: 6px; height: 6px; background: var(--ivory); }
  .cursor__ring { width: 34px; height: 34px; border: 1px solid color-mix(in srgb, var(--ivory) 55%, transparent); transition: width .35s var(--ease), height .35s var(--ease), opacity .3s; }
  .cursor.is-hover .cursor__ring { width: 58px; height: 58px; opacity: .8; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- layout ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 820px; }
.container--wide { width: min(100% - var(--gutter), 1500px); }
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--ivory, .section--ivory .frame { --fg: var(--ink); --fg-mute: color-mix(in srgb, var(--ink) 64%, var(--ivory)); --line: color-mix(in srgb, var(--ink) 10%, transparent); --line-2: color-mix(in srgb, var(--ink) 22%, transparent); --surface: color-mix(in srgb, var(--ink) 4%, transparent); --surface-2: color-mix(in srgb, var(--ink) 8%, transparent); --brass-dim: color-mix(in srgb, var(--brass) 18%, transparent); }
.section--ivory { background: var(--ivory); color: var(--ink); }
.section--ink { background: var(--ink); }
.section--ink + .section--ink { padding-top: calc(var(--section) * .35); }
.section--ivory + .section--ivory { padding-top: 0; }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section__head--row > div { max-width: 760px; }
.anchor-target { position: absolute; bottom: 0; scroll-margin-top: 0; }

/* ---------- typography ---------- */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.005em; line-height: 1.22; text-wrap: balance; color: var(--fg); }
html[lang="en"] .display { line-height: 1.04; letter-spacing: -.015em; font-weight: 500; }
.display--hero { font-size: clamp(2.5rem, 6.3vw, 5.6rem); line-height: 1.22; }
html[lang="en"] .display--hero { font-size: clamp(3rem, 7.6vw, 7rem); line-height: .98; }
.display--xl { font-size: clamp(2.4rem, 5.6vw, 4.8rem); }
.display--lg { font-size: clamp(2rem, 4.2vw, 3.6rem); }
html[lang="en"] .display--lg { font-size: clamp(2.3rem, 4.8vw, 4.2rem); }
.display--md { font-size: clamp(1.7rem, 3vw, 2.6rem); }
html[lang="en"] .display--md { font-size: clamp(2rem, 3.4vw, 3rem); }
.display--sm { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.eyebrow { font-size: .8rem; letter-spacing: .08em; color: var(--brass); font-weight: 500; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .75rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); opacity: .7; }
.eyebrow--center { justify-content: center; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--fg-mute); max-width: 60ch; margin-top: 1.25rem; line-height: 1.8; }
.section--ivory .lede { color: color-mix(in srgb, var(--ink) 70%, var(--ivory)); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--brass); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .4s var(--ease), gap .4s var(--ease); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--brass); gap: .8rem; }
.link-arrow--sm { font-size: .9rem; margin-top: .4rem; }
[dir="rtl"] .link-arrow .icon, [dir="rtl"] .btn__ico .icon, [dir="rtl"] .service-list__arrow, [dir="rtl"] .work-card__arrow .icon, [dir="rtl"] .contact__arrow { transform: scaleX(-1); }

/* prose (rich text from the editor) */
.prose { color: var(--fg); }
.prose--lede { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.85; }
.prose p { margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; margin: 2em 0 .7em; }
html[lang="en"] .prose h2, html[lang="en"] .prose h3 { font-weight: 500; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.prose h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.prose h4 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin-bottom: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--brass); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, var(--brass) 50%, transparent); }
.prose blockquote { border-inline-start: 2px solid var(--brass); padding-inline-start: 1.2em; font-family: var(--font-display); font-size: 1.3em; color: var(--fg); margin: 1.5em 0; }
.prose img { border-radius: var(--r-lg); margin: 1.5em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .7em .9em; border-bottom: 1px solid var(--line); text-align: start; }
.prose strong { font-weight: 600; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-left { text-align: left; }
.prose .ql-align-justify { text-align: justify; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: .8rem; padding: .55rem .55rem .55rem 1.5rem; padding-inline: 1.5rem .55rem; border-radius: 999px; font-weight: 500; font-size: .98rem; line-height: 1; white-space: nowrap; border: 1px solid transparent; transition: transform .55s var(--ease), background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease); will-change: transform; }
.btn > span { padding-block: .55rem; }
.btn:not(:has(.btn__ico)) { padding-inline-end: 1.5rem; }
.btn__ico { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 14%, transparent); transition: transform .5s var(--ease), background-color .4s; flex: none; }
.btn__ico .icon { width: 1rem; height: 1rem; }
.btn:hover .btn__ico { transform: translate(2px, -2px) scale(1.06); }
[dir="rtl"] .btn:hover .btn__ico { transform: translate(-2px, -2px) scale(1.06); }
.btn:active { transform: scale(.97); }
.btn--lg { font-size: 1.05rem; padding-inline-start: 1.8rem; }
.btn--lg .btn__ico { width: 2.4rem; height: 2.4rem; }
.btn--brass { background: var(--brass); color: var(--ink); box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--brass) 60%, transparent); }
.btn--brass:hover { background: var(--brass-2); }
.btn--ivory { background: var(--ivory); color: var(--ink); }
.btn--ivory:hover { background: color-mix(in srgb, var(--ivory) 85%, white); }
.btn--ghost { border-color: var(--line-2); color: var(--fg); }
.btn--ghost .btn__ico { background: var(--surface-2); }
.btn--ghost:hover { background: var(--surface); border-color: color-mix(in srgb, var(--ivory) 35%, transparent); }
.btn--outline { border-color: var(--line-2); color: var(--fg); }
.btn--outline .btn__ico { background: var(--surface-2); }
.btn--outline:hover { background: var(--fg); color: var(--ivory); }
.section--ivory .btn--outline:hover { color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; align-items: center; }

/* ---------- double-bezel frame ---------- */
.frame { position: relative; padding: var(--bezel); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 color-mix(in srgb, var(--ivory) 4%, transparent); }
.frame > img, .frame > .frame__inner, .frame > picture { border-radius: calc(var(--r-xl) - var(--bezel)); overflow: hidden; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame__inner { background: var(--ink-2); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: inset 0 1px 1px color-mix(in srgb, var(--ivory) 6%, transparent); }
.section--ivory .frame__inner { background: color-mix(in srgb, var(--ivory) 60%, white); }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; inset-inline: 0; z-index: 100; padding: 18px var(--gutter) 0; pointer-events: none; }
.nav-pill { pointer-events: auto; margin-inline: auto; max-width: 1180px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .65rem .55rem 1.25rem; padding-inline: 1.25rem .65rem; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ivory) 9%, transparent), 0 20px 50px -30px rgba(0, 0, 0, .7); transition: transform .6s var(--ease), background-color .4s, box-shadow .4s; }
.site-header.is-hidden .nav-pill { transform: translateY(-130%); }
.site-header.is-scrolled .nav-pill { background: color-mix(in srgb, var(--ink) 80%, transparent); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--fg); }
.brand__img { height: 44px; width: auto; }
.brand__img--lg { height: 64px; }
.brand__mark { font-family: 'Amiri', serif; font-size: 1.9rem; line-height: 1; color: var(--brass); transform: translateY(-.1em); }
.brand__name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
html[lang="en"] .brand__name { font-size: 1.15rem; font-weight: 500; }
.brand--lg .brand__mark { font-size: 2.8rem; }
.brand--lg .brand__name { font-size: 1.3rem; }
.brand__mark--big { font-family: 'Amiri', serif; font-size: clamp(4rem, 12vw, 8rem); color: var(--brass); line-height: 1; margin-bottom: 1rem; }
.nav-links { display: flex; gap: .25rem; }
.nav-links a { padding: .55rem .9rem; border-radius: 999px; font-size: .95rem; color: color-mix(in srgb, var(--ivory) 78%, transparent); transition: color .35s, background-color .35s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); background: color-mix(in srgb, var(--ivory) 7%, transparent); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch { font-size: .78rem; font-weight: 600; letter-spacing: .08em; padding: .55rem .75rem; border-radius: 999px; color: var(--brass); border: 1px solid color-mix(in srgb, var(--brass) 35%, transparent); transition: background-color .35s, color .35s; }
.lang-switch:hover { background: var(--brass); color: var(--ink); }
.nav-cta { font-size: .92rem; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; background: var(--surface-2); }
.burger span { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--ivory); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- full-screen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 95; background: color-mix(in srgb, var(--ink) 86%, transparent); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu__inner { height: 100%; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 3rem; width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; padding-top: var(--nav-h); }
.menu__links { display: flex; flex-direction: column; gap: .2rem; }
.menu__links a { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.25; color: var(--ivory); opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .8s var(--ease), color .3s; transition-delay: calc(var(--i) * 70ms); width: max-content; }
.menu.is-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i) * 70ms); }
.menu__links a:hover { color: var(--brass); }
.menu__aside { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) .4s, transform .8s var(--ease) .4s; }
.menu.is-open .menu__aside { opacity: 1; transform: none; }
.menu__lang { color: var(--brass); font-weight: 500; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--fg); transition: background-color .4s var(--ease), color .4s, transform .5s var(--ease); }
.socials a .icon { width: 18px; height: 18px; fill: currentColor; }
.socials a:hover { background: var(--brass); color: var(--ink); transform: translateY(-3px); }
body.menu-open { overflow: hidden; }

/* ---------- main ---------- */
.site-main { display: block; }
.flash { position: fixed; top: calc(var(--nav-h) + 24px); inset-inline-start: 50%; transform: translateX(-50%); z-index: 120; padding: .9rem 1.4rem; border-radius: 999px; background: var(--ivory); color: var(--ink); font-weight: 500; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
[dir="rtl"] .flash { transform: translateX(50%); }
.flash--error { background: #B5443A; color: #fff; }

/* ---------- hero (editorial stage) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-start; padding: calc(var(--nav-h) + 5rem) 0 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(55% 45% at 85% 8%, color-mix(in srgb, var(--brass) 14%, transparent), transparent 62%), radial-gradient(40% 35% at 8% 70%, color-mix(in srgb, var(--brass) 8%, transparent), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(color-mix(in srgb, var(--ivory) 4%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ivory) 4%, transparent) 1px, transparent 1px); background-size: 120px 120px; mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%); }
.hero__particles { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__ghost { position: absolute; z-index: 0; inset-inline-end: -3vw; top: -4vw; font-family: 'Amiri', serif; font-size: clamp(14rem, 36vw, 38rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--brass) 18%, transparent); pointer-events: none; user-select: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero__title { max-width: 18ch; }
html[lang="en"] .hero__title { max-width: 14ch; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: 2rem clamp(2rem, 6vw, 7rem); align-items: end; margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.hero__lede { margin-top: 0; max-width: 54ch; }
.hero__actions { margin-top: 1.8rem; }
.hero__stats { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.hero__stats li { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1.2rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 120px; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--brass); font-weight: 400; }
html[lang="en"] .hero__stats strong { font-weight: 500; font-size: 2.2rem; }
.hero__stats span { font-size: .8rem; color: var(--fg-mute); }
.hero__gallery { position: relative; margin-top: clamp(3rem, 6vw, 5.5rem); height: clamp(260px, 38vw, 520px); transform-style: preserve-3d; perspective: 1400px; }
.hero__tilt { position: absolute; inset: 0; transition: transform .9s var(--ease-out); will-change: transform; }
.hero__card { position: absolute; margin: 0; overflow: visible; box-shadow: 0 60px 100px -50px rgba(0, 0, 0, .85); bottom: 0; }
.hero__card img { aspect-ratio: 4 / 5; }
.hero__card--1 { inset-inline-start: 0; width: 34%; z-index: 2; }
.hero__card--2 { inset-inline-start: 36%; width: 30%; bottom: -8%; z-index: 1; opacity: .96; }
.hero__card--3 { inset-inline-end: 0; width: 32%; bottom: 10%; z-index: 3; }
/* hero without gallery: centre the stage and keep the next section's overlap clear of the stats */
.hero--solo { align-items: center; padding-bottom: calc(2.6rem + clamp(4rem, 9vh, 7rem)); }
.hero--solo .hero__row { align-items: center; }
@media (max-width: 960px) { .hero--solo { padding-bottom: calc(2.6rem + 3rem); } }
@media (max-width: 640px) { .hero--solo { padding-bottom: calc(1.6rem + 3rem); } }
.hero__scroll { position: absolute; bottom: 1.6rem; inset-inline-start: var(--gutter); z-index: 2; display: flex; align-items: center; gap: .8rem; font-size: .75rem; letter-spacing: .12em; color: var(--fg-mute); }
.hero__scroll i { width: 48px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--brass); transform: translateX(-100%); animation: scrollLine 2.2s var(--ease) infinite; }
[dir="rtl"] .hero__scroll i::after { animation-name: scrollLineRtl; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
@keyframes scrollLineRtl { 0% { transform: translateX(100%); } 60% { transform: translateX(-100%); } 100% { transform: translateX(-100%); } }
/* word split */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.w__in { display: inline-block; }
/* hero entrance: CSS-driven so it never depends on JS animation frames */
@keyframes heroWord { to { transform: translateY(0); } }
@keyframes heroFade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes heroMedia { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.js-motion .w__in { transform: translateY(112%); animation: heroWord 1.1s var(--ease-out) forwards; animation-delay: calc(120ms + var(--i, 0) * 55ms); }
.js-motion [data-hero] { opacity: 0; animation: heroFade 1s var(--ease-out) forwards; }
.js-motion [data-hero="0"] { animation-delay: .05s; }
.js-motion [data-hero="1"] { animation: none; opacity: 1; }
.js-motion [data-hero="2"] { animation-delay: .55s; }
.js-motion [data-hero="3"] { animation-delay: .7s; }
.js-motion [data-hero="4"] { animation-delay: .9s; }
.js-motion [data-hero="5"] { animation-name: heroMedia; animation-duration: 1.4s; animation-delay: .5s; }
/* ambient motion: cards float, glow drifts (transform/opacity only) */
@keyframes floatA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes floatB { 0%, 100% { translate: 0 0; } 50% { translate: 0 12px; } }
@keyframes glowDrift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-4%, 3%, 0) scale(1.06); } }
@keyframes ghostBreathe { 0%, 100% { opacity: .9; } 50% { opacity: .55; } }
.js-motion .hero__card--1 { animation: heroFade 1.3s var(--ease-out) .6s backwards, floatA 9s ease-in-out 2s infinite; }
.js-motion .hero__card--2 { animation: heroFade 1.3s var(--ease-out) .75s backwards, floatB 11s ease-in-out 2.4s infinite; }
.js-motion .hero__card--3 { animation: heroFade 1.3s var(--ease-out) .9s backwards, floatA 10s ease-in-out 2.8s infinite; }
.js-motion .hero::before { animation: glowDrift 18s ease-in-out infinite; will-change: transform; }
.js-motion .hero__ghost { animation: ghostBreathe 12s ease-in-out infinite; }


/* ---------- section rhythm: sections stack like sheets ---------- */
.site-main > .section + .section, .site-main > .marquee + .section, .site-main > .section + .marquee { position: relative; z-index: 1; }
.site-main > .section--ivory, .site-main > .section--ink { border-radius: 2.6rem 2.6rem 0 0; margin-top: -2.6rem; box-shadow: 0 -40px 80px -50px rgba(0, 0, 0, .55); }
.site-main > .hero + .marquee { position: relative; z-index: 2; border-radius: 2.6rem 2.6rem 0 0; margin-top: -2.6rem; border-top: 0; }
.site-main > .section:first-child, .site-main > .hero { border-radius: 0; margin-top: 0; box-shadow: none; }
.site-footer { position: relative; z-index: 1; border-radius: 2.6rem 2.6rem 0 0; margin-top: -2.6rem; border-top: 0; }
@media (max-width: 640px) { .site-main > .section--ivory, .site-main > .section--ink, .site-main > .hero + .marquee, .site-footer { border-radius: 1.6rem 1.6rem 0 0; margin-top: -1.6rem; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 1.3rem 0; overflow: hidden; background: var(--ink-2); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 42s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marqueeRtl; }
.marquee__item { display: inline-flex; align-items: center; gap: 2rem; padding-inline-end: 2rem; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.7rem); color: var(--ivory); white-space: nowrap; }
.marquee__item i { font-style: normal; color: var(--brass); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
.intro__grid--solo { grid-template-columns: 1fr; }
.intro__grid--solo .intro__text { max-width: 860px; }
.intro:has(.intro__grid--solo) { padding-bottom: calc(var(--section) * .35); }
.intro__text .prose { margin-top: 1.75rem; }
.intro__media img { aspect-ratio: 4 / 5; }

/* ---------- services list ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding: clamp(1.4rem, 2.5vw, 2.2rem) .5rem; transition: padding .55s var(--ease), background-color .4s; border-radius: var(--r-md); }
.service-list a:hover { padding-inline: 1.25rem; background: var(--surface); }
.service-list__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--brass); background: var(--brass-dim); flex: none; }
.service-list__ico .icon { width: 24px; height: 24px; }
.service-list__main { min-width: 0; }
.service-list__title { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.25; transition: color .35s; }
html[lang="en"] .service-list__title { font-weight: 500; }
.service-list a:hover .service-list__title { color: var(--brass); }
.service-list__desc { display: block; color: var(--fg-mute); margin-top: .35rem; max-width: 60ch; font-size: .98rem; }
.service-list__arrow { width: 26px; height: 26px; color: var(--fg-mute); transition: transform .5s var(--ease), color .35s; }
.service-list a:hover .service-list__arrow { color: var(--brass); transform: scaleX(-1) rotate(45deg); }
[dir="ltr"] .service-list a:hover .service-list__arrow { transform: rotate(45deg); }
.service-list--compact .service-list__title { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.service-list--compact .service-list__ico { width: 42px; height: 42px; }
.service-preview { position: fixed; z-index: 80; width: 300px; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.85) rotate(-4deg); transition: opacity .4s var(--ease), transform .6s var(--ease); display: none; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.service-preview img { width: 100%; height: 100%; object-fit: cover; }
.service-preview.is-on { opacity: 1; transform: scale(1) rotate(-2deg); }
@media (hover: hover) and (pointer: fine) { .js-motion .service-preview { display: block; } }

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filters button { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-mute); font-size: .9rem; transition: all .4s var(--ease); }
.filters button:hover, .filters button.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.section--ivory .filters button.is-active { color: var(--ivory); }
.work-grid { display: grid; gap: 1.25rem; }
.work-grid--3 { grid-template-columns: repeat(3, 1fr); }
.work-grid--grid { grid-template-columns: repeat(3, 1fr); }
.work-grid--bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; }
.work-grid--bento > :nth-child(6n+1) { grid-column: span 4; grid-row: span 2; }
.work-grid--bento > :nth-child(6n+2), .work-grid--bento > :nth-child(6n+3) { grid-column: span 2; }
.work-grid--bento > :nth-child(6n+4), .work-grid--bento > :nth-child(6n+5) { grid-column: span 3; }
.work-grid--bento > :nth-child(6n+6) { grid-column: span 6; grid-row: span 1; }
.work-grid--bento > :nth-child(6n+6) .work-card__media img { object-position: center 40%; }
.work-card { display: block; position: relative; min-height: 300px; overflow: hidden; color: var(--ivory); }
.work-grid--3 .work-card, .work-grid--grid .work-card { aspect-ratio: 4 / 5; min-height: 0; }
.work-card__media { position: absolute; inset: var(--bezel); border-radius: calc(var(--r-xl) - var(--bezel)); overflow: hidden; background: var(--ink-3); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s; }
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 90%, transparent) 0%, color-mix(in srgb, var(--ink) 25%, transparent) 45%, transparent 70%); }
.work-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 6rem; color: var(--brass); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--brass) 25%, transparent), transparent 55%), var(--ink-3); }
.work-card__body { position: absolute; inset-inline: calc(var(--bezel) + 1.5rem); bottom: calc(var(--bezel) + 1.4rem); z-index: 2; }
.work-card__title { display: block; font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.25; transition: transform .6s var(--ease); }
html[lang="en"] .work-card__title { font-weight: 500; }
.work-card:hover .work-card__title { transform: translateY(-4px); }
.work-card__meta { display: flex; gap: 1rem; margin-top: .45rem; font-size: .85rem; color: color-mix(in srgb, var(--ivory) 70%, transparent); }
.work-card__arrow { position: absolute; top: calc(var(--bezel) + 1.1rem); inset-inline-end: calc(var(--bezel) + 1.1rem); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ivory) 12%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ivory); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .4s; z-index: 2; }
.work-card:hover .work-card__arrow { opacity: 1; transform: none; }
.work-card__arrow:hover { background: var(--brass); color: var(--ink); }
.work-card.is-filtered { display: none; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature__inner { height: 100%; border-radius: calc(var(--r-xl) - var(--bezel)); background: var(--ink-2); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: inset 0 1px 1px color-mix(in srgb, var(--ivory) 5%, transparent); transition: background-color .5s var(--ease); }
.section--ivory .feature__inner { background: color-mix(in srgb, var(--ivory) 60%, white); }
.feature:hover .feature__inner { background: var(--ink-3); }
.section--ivory .feature:hover .feature__inner { background: color-mix(in srgb, var(--ivory) 40%, white); }
.feature__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-dim); color: var(--brass); margin-bottom: 1.6rem; }
.feature__ico .icon { width: 24px; height: 24px; }
.feature__title { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.3; margin-bottom: .6rem; }
html[lang="en"] .feature__title { font-weight: 500; font-size: 1.7rem; }
.feature__text { color: var(--fg-mute); font-size: .98rem; }

/* ---------- process ---------- */
.process__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); }
.process__head { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.step__num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; line-height: 1; color: var(--brass); font-weight: 500; }
.step__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .5rem; line-height: 1.3; }
html[lang="en"] .step__title { font-weight: 500; font-size: 1.7rem; }
.step__text { color: var(--fg-mute); }

/* ---------- stats ---------- */
.stats__h { margin-bottom: 2.5rem; }
.stats__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.stats__list li { border-inline-start: 1px solid var(--line-2); padding-inline-start: 1.5rem; }
.stats__list strong { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; color: var(--brass); font-weight: 400; }
html[lang="en"] .stats__list strong { font-weight: 500; }
.stats__list span { display: block; margin-top: .6rem; color: var(--fg-mute); }

/* ---------- testimonials ---------- */
.scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroller::-webkit-scrollbar { display: none; }
.scroller__track { display: flex; gap: 1.25rem; padding-bottom: .5rem; }
.scroller__track::after { content: ""; flex: 0 0 1px; }
.scroller__nav { display: flex; gap: .5rem; }
.scroller__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .4s var(--ease); }
.scroller__btn:hover { background: var(--fg); color: var(--bg); }
[dir="rtl"] .scroller__btn .icon { transform: scaleX(-1); }
.quote { flex: 0 0 clamp(300px, 36vw, 480px); scroll-snap-align: start; }
.quote__inner { height: 100%; border-radius: calc(var(--r-xl) - var(--bezel)); background: var(--ink-2); padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; box-shadow: inset 0 1px 1px color-mix(in srgb, var(--ivory) 5%, transparent); }
.section--ivory .quote__inner { background: color-mix(in srgb, var(--ivory) 60%, white); }
.quote__mark { font-family: 'Cormorant Garamond', serif; font-size: 4rem; line-height: .5; color: var(--brass); height: 1.6rem; }
.quote__text { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.6; flex: 1; }
html[lang="en"] .quote__text { font-size: 1.45rem; }
.quote__by { display: flex; align-items: center; gap: .9rem; font-size: .9rem; }
.quote__by img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote__by cite { display: block; font-style: normal; font-weight: 600; }
.quote__by span { color: var(--fg-mute); }
.quote__stars { margin-inline-start: auto; display: flex; gap: 2px; color: var(--brass); }
.quote__stars .icon { width: 14px; height: 14px; fill: currentColor; }

/* ---------- gallery ---------- */
.gallery { columns: 3; column-gap: 1.25rem; }
.gallery__item { break-inside: avoid; margin-bottom: 1.25rem; }
.gallery__item figcaption { font-size: .85rem; color: var(--fg-mute); padding: .7rem .5rem .2rem; }
.gallery--project { columns: 2; }

/* ---------- image + text ---------- */
.image-text__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.image-text--end .image-text__media { order: 2; }
.image-text__media img { aspect-ratio: 5 / 6; }
.image-text__text .prose { margin-top: 1.5rem; }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); }
.faq__head { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item:first-child { border-top: 1px solid var(--line); }
.accordion__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; transition: color .3s; }
html[lang="en"] .accordion__item summary { font-size: 1.5rem; font-weight: 500; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary:hover, .accordion__item[open] summary { color: var(--brass); }
.accordion__ico { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform .5s var(--ease), background-color .4s, color .4s; }
.accordion__item[open] .accordion__ico { transform: rotate(45deg); background: var(--brass); color: var(--ink); border-color: var(--brass); }
.accordion__body { padding-bottom: 1.6rem; color: var(--fg-mute); max-width: 65ch; }
.accordion__body .prose { color: inherit; }

/* ---------- cta ---------- */
.section--cta { padding-block: calc(var(--section) * .7); }
.cta-band { position: relative; text-align: center; padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem); border-radius: var(--r-xl); background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 color-mix(in srgb, var(--ivory) 5%, transparent); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(40% 40% at 50% 50%, color-mix(in srgb, var(--brass) 18%, transparent), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band .lede { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 2.5rem; }
.section--ivory .cta-band { background: var(--ink); color: var(--ivory); --fg: var(--ivory); --fg-mute: var(--mute); --line: color-mix(in srgb, var(--ivory) 10%, transparent); --line-2: color-mix(in srgb, var(--ivory) 20%, transparent); --surface: color-mix(in srgb, var(--ivory) 3.5%, transparent); --surface-2: color-mix(in srgb, var(--ivory) 7%, transparent); }
.section--ivory .cta-band .lede { color: var(--mute); }

/* ---------- clients ---------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem 4rem; }
.logos img { height: 40px; width: auto; opacity: .55; filter: grayscale(1) brightness(1.4); transition: opacity .4s, filter .4s; }
.section--ivory .logos img { filter: grayscale(1); }
.logos a:hover img, .logos li:hover img { opacity: 1; filter: none; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 1.5rem; align-items: start; }
.contact__grid--solo { grid-template-columns: 1fr; max-width: 820px; }
.contact__info { display: flex; flex-direction: column; gap: .75rem; }
.contact__card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem; padding: 1.2rem 1.4rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .4s var(--ease), transform .5s var(--ease); }
.contact__card:not(.contact__card--static):hover { background: var(--surface-2); transform: translateY(-2px); }
.contact__card > .icon { width: 26px; height: 26px; color: var(--brass); }
.contact__card--wa > .icon { fill: currentColor; color: var(--wa); }
.contact__card strong { display: block; font-weight: 600; font-size: .95rem; }
.contact__card em { display: block; font-style: normal; color: var(--fg-mute); font-size: .95rem; margin-top: .15rem; }
.contact__arrow { width: 20px; height: 20px; color: var(--fg-mute); }
.contact__social { padding: 1.2rem 1.4rem 0; }
.contact__social strong { display: block; margin-bottom: .8rem; font-size: .95rem; }
.contact-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: .85rem; color: var(--fg-mute); }
.field input, .field select, .field textarea { width: 100%; padding: .95rem 1.1rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--fg); transition: border-color .35s, background-color .35s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: var(--surface-2); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%239C9484'%3E%3Cpath d='M213 101 133 181a6 6 0 0 1-8 0L45 101a6 6 0 0 1 8-8l76 75 76-75a6 6 0 0 1 8 8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 1rem center; padding-inline-end: 2.8rem; }
[dir="rtl"] .field select { background-position: left 1rem center; }
.field select option { background: var(--ink-2); color: var(--ivory); }
.section--ivory .field select option { background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 130px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #C0574B; }
.form-foot { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.form-msg { font-size: .95rem; color: var(--fg-mute); min-height: 1.5em; }
.form-msg[data-state="ok"] { color: #7FC68E; }
.form-msg[data-state="error"] { color: #E07B70; }
.btn.is-busy { opacity: .7; pointer-events: none; }

/* ---------- sub pages ---------- */
.section--hero-sub { padding-top: calc(var(--nav-h) + 4.5rem); padding-bottom: calc(var(--section) * .6); }
.crumbs { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--fg-mute); margin-bottom: 2.5rem; }
.crumbs a:hover { color: var(--brass); }
.crumbs span { opacity: .5; }
.sub-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sub-hero__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brass-dim); color: var(--brass); display: grid; place-items: center; margin-bottom: 1.5rem; }
.sub-hero__icon .icon { width: 30px; height: 30px; }
.sub-hero__media img { aspect-ratio: 4 / 5; }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split__aside { position: sticky; top: calc(var(--nav-h) + 2rem); }
.card--list { padding: 1.8rem; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.card__h { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.2rem; }
html[lang="en"] .card__h { font-weight: 500; }
.checklist li { display: flex; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line); align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; color: var(--brass); margin-top: .3em; }
.results li { display: flex; flex-direction: column; padding: .9rem 0; border-top: 1px solid var(--line); }
.results strong { font-family: var(--font-display); font-size: 2.2rem; color: var(--brass); line-height: 1; font-weight: 400; }
.results span { color: var(--fg-mute); font-size: .95rem; margin-top: .3rem; }
.project-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.meta-list { display: grid; gap: .9rem; }
.meta-list div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .95rem; }
.meta-list dt { color: var(--fg-mute); }
.meta-list dd a { color: var(--brass); }
.project-cover img { aspect-ratio: 16 / 9; max-height: 80vh; }
.project-nav { display: flex; justify-content: space-between; gap: 2rem; padding: 3rem 0; border-top: 1px solid var(--line); }
.project-nav__link { display: flex; flex-direction: column; gap: .3rem; }
.project-nav__link small { font-size: .8rem; color: var(--fg-mute); letter-spacing: .05em; }
.project-nav__link span { font-family: var(--font-display); font-size: 1.5rem; transition: color .3s; }
.project-nav__link:hover span { color: var(--brass); }
.project-nav__link--next { text-align: end; align-items: flex-end; }

/* ---------- 404 / error ---------- */
.section--404 { padding-top: calc(var(--nav-h) + 6rem); padding-bottom: calc(var(--section) * .5); }
.section--404 + .section--ink { padding-top: 0; }
.section--404 .container { max-width: 820px; }
.debug { white-space: pre-wrap; font-size: .8rem; background: var(--surface); padding: 1rem; border-radius: var(--r-md); margin-top: 2rem; color: var(--fg-mute); overflow: auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; }
.footer__text { color: var(--fg-mute); margin: 1.4rem 0 1.8rem; max-width: 42ch; font-size: .98rem; }
.footer__h { font-size: .85rem; letter-spacing: .08em; color: var(--brass); font-weight: 500; margin-bottom: 1.2rem; }
.footer__list { display: flex; flex-direction: column; gap: .55rem; }
.footer__list a, .footer__plain { color: color-mix(in srgb, var(--ivory) 78%, transparent); transition: color .3s; display: inline-flex; align-items: center; gap: .6rem; }
.footer__list a:hover { color: var(--brass); }
.footer__list .icon { width: 18px; height: 18px; color: var(--brass); fill: currentColor; }
.footer__list--contact li { margin-bottom: .2rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--fg-mute); }

/* ---------- floating whatsapp ---------- */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 85; display: inline-flex; align-items: center; gap: .6rem; height: 56px; padding-inline: 16px; border-radius: 999px; background: var(--wa); color: #fff; box-shadow: 0 16px 40px -14px rgba(37, 211, 102, .7); transition: transform .5s var(--ease), box-shadow .4s; }
.wa-float .icon { width: 26px; height: 26px; fill: currentColor; }
.wa-float__txt { font-weight: 600; font-size: .92rem; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .6s var(--ease), opacity .4s; }
.wa-float:hover { transform: translateY(-3px); }
@media (hover: hover) { .wa-float:hover .wa-float__txt { max-width: 220px; opacity: 1; } }
.wa-float:active { transform: scale(.96); }

/* ---------- scroll reveal (IntersectionObserver adds .is-in; CSS does the motion) ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
.js-motion .frame[data-reveal].is-in, .js-motion .work-card[data-reveal].is-in { will-change: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .work-grid--bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 320px; }
  .work-grid--bento > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .work-grid--bento > :nth-child(6n+1) { grid-column: span 2 !important; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav-pill { max-width: none; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 3rem); }
  .hero__row { grid-template-columns: 1fr; }
  .hero__stats { justify-content: flex-start; }
  .hero__gallery { height: clamp(220px, 52vw, 420px); }
  .hero__scroll { display: none; }
  .hero__ghost { font-size: 60vw; opacity: .7; }
  .menu__inner { grid-template-columns: 1fr; align-content: start; gap: 2.5rem; padding-top: calc(var(--nav-h) + 2rem); overflow-y: auto; }
  .intro__grid, .image-text__grid, .process__grid, .faq__grid, .contact__grid, .sub-hero, .split, .project-head { grid-template-columns: 1fr; }
  .image-text--end .image-text__media { order: 0; }
  .process__head, .faq__head, .split__aside { position: static; }
  .work-grid--3, .work-grid--grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .quote { flex-basis: min(82vw, 420px); }
}
@media (max-width: 640px) {
  :root { --section: clamp(4rem, 14vw, 6rem); --r-xl: 1.5rem; }
  body { font-size: 1rem; }
  .btn { font-size: .95rem; }
  .btn-row .btn { flex: 1 1 auto; justify-content: space-between; }
  .work-grid--bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .work-grid--bento > * { grid-column: span 1 !important; aspect-ratio: 4 / 5; min-height: 0; }
  .work-grid--3, .work-grid--grid, .feature-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery, .gallery--project { columns: 1; }
  .footer__top { grid-template-columns: 1fr; gap: 2.2rem; }
  .service-list a { grid-template-columns: auto 1fr; }
  .service-list__arrow { display: none; }
  .service-list__ico { width: 44px; height: 44px; }
  .hero__stats li { min-width: 0; flex: 1 1 30%; padding: .7rem .8rem; }
  .hero__stats strong { font-size: 1.5rem; }
  .hero__gallery { height: 300px; margin-top: 2.5rem; }
  .hero__card--1 { width: 46%; }
  .hero__card--2 { inset-inline-start: 30%; width: 40%; bottom: -6%; }
  .hero__card--3 { width: 42%; bottom: 14%; }
  .section__head--row { align-items: flex-start; }
  .meta-list div { grid-template-columns: 1fr; gap: .2rem; }
  .project-nav { flex-direction: column; }
  .project-nav__link--next { align-items: flex-start; text-align: start; }
  .wa-float { height: 52px; padding-inline: 13px; bottom: 16px; inset-inline-end: 16px; }
  .flash { width: calc(100% - 32px); text-align: center; }
  .cursor { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-motion [data-reveal], .js-motion [data-hero], .js-motion .hero__card { opacity: 1; transform: none; animation: none; }
  .js-motion .w__in { transform: none; animation: none; }
}
@media print {
  .site-header, .menu, .wa-float, .grain, .cursor, .hero__ghost { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- packages (Silver / Elite / Premium) ---------- */
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lede { margin-inline: auto; }
.pk-tabs { position: relative; display: flex; width: max-content; max-width: 100%; gap: .25rem; padding: .3rem; margin: 0 auto 2.75rem; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pk-tabs__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.35rem; border-radius: 999px; color: var(--fg-mute); font-size: .95rem; font-weight: 500; transition: color .45s var(--ease); white-space: nowrap; }
.pk-tabs__btn .icon { width: 18px; height: 18px; }
.pk-tabs__btn.is-active { color: var(--bg); }
.section--ivory .pk-tabs__btn.is-active { color: var(--ivory); }
.pk-tabs__glider { position: absolute; top: .3rem; bottom: .3rem; left: 0; width: 0; border-radius: 999px; background: var(--fg); transition: left .6s var(--ease), width .6s var(--ease); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--fg) 60%, transparent); }
.pk-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.pk-grid[hidden] { display: none; }
.pk-grid.is-entering .pk { animation: pk-in .7s var(--ease-out) both; animation-delay: calc(var(--i) * 80ms); }
@keyframes pk-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.pk { position: relative; border-radius: var(--r-xl); padding: var(--bezel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.pk__inner { position: relative; height: 100%; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 2.6vw, 2.2rem); border-radius: calc(var(--r-xl) - var(--bezel)); background: var(--ink-2); box-shadow: inset 0 1px 1px color-mix(in srgb, var(--ivory) 5%, transparent); overflow: hidden; }
.section--ivory .pk__inner { background: color-mix(in srgb, var(--ivory) 60%, white); }
.pk__inner::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--pk-glow, var(--brass-dim)) 0%, transparent 65%); opacity: .55; pointer-events: none; transition: opacity .6s; }
.pk:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -36px rgba(0, 0, 0, .6); }
.pk:hover .pk__inner::before { opacity: .9; }
.pk--hl { background: linear-gradient(160deg, color-mix(in srgb, var(--brass) 55%, transparent), color-mix(in srgb, var(--brass) 8%, transparent) 55%, color-mix(in srgb, var(--brass) 40%, transparent)); box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--brass) 55%, transparent); }
.pk--hl .pk__inner { background: var(--ink-3); }
.section--ivory .pk--hl .pk__inner { background: color-mix(in srgb, var(--ivory) 45%, white); }
.pk--silver { --pk-glow: color-mix(in srgb, #C9CDD3 28%, transparent); }
.pk--elite { --pk-glow: color-mix(in srgb, var(--brass) 30%, transparent); }
.pk--premium { --pk-glow: color-mix(in srgb, #E9CB7A 34%, transparent); }
.pk__badge { position: absolute; top: 1.1rem; inset-inline-end: 1.1rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; background: var(--brass); color: var(--ink); z-index: 2; }
.pk__badge .icon { width: 12px; height: 12px; }
.pk__badge--inline { position: static; margin-inline-start: .6rem; }
.pk__tier { display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); font-weight: 500; }
.pk__tier--lg { font-size: .9rem; margin-bottom: 1rem; }
.pk__medal { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: linear-gradient(145deg, #E7EAEE, #A9B0B9); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), 0 6px 14px -8px rgba(0, 0, 0, .6); }
.pk__medal .icon { width: 16px; height: 16px; }
.pk__medal--elite { background: linear-gradient(145deg, var(--brass-2), var(--brass) 55%, color-mix(in srgb, var(--brass) 70%, black)); }
.pk__medal--premium { background: linear-gradient(145deg, #FBE8B0, #D9B45A 50%, #8E6B1E); }
.pk__tier--lg .pk__medal { width: 44px; height: 44px; }
.pk__tier--lg .pk__medal .icon { width: 20px; height: 20px; }
.pk__name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.25; margin-top: .2rem; }
html[lang="en"] .pk__name { font-weight: 500; }
.pk__name a { transition: color .35s; }
.pk__name a:hover { color: var(--brass); }
.pk__tag { color: var(--fg-mute); font-size: .95rem; line-height: 1.7; }
.pk__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .6rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pk__prefix { font-size: .85rem; color: var(--fg-mute); }
.pk__amount { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.01em; color: var(--fg); }
html[lang="en"] .pk__amount { font-weight: 500; }
.pk__amount--custom { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.pk__period { font-size: .9rem; color: var(--fg-mute); }
.pk__price--lg .pk__amount { font-size: clamp(2.6rem, 4.2vw, 3.6rem); }
.pk__meta { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--fg-mute); }
.pk__meta .icon { width: 16px; height: 16px; color: var(--brass); }
.pk__note { font-size: .8rem; color: var(--fg-mute); line-height: 1.6; }
.pk__list { display: flex; flex-direction: column; gap: .55rem; margin: .25rem 0; }
.pk__list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .93rem; line-height: 1.55; }
.pk__list li .icon { flex: none; width: 18px; height: 18px; margin-top: .15em; color: var(--brass); }
.pk__list li.is-off { color: var(--fg-mute); opacity: .7; }
.pk__list li.is-off .icon { color: var(--fg-mute); }
.pk__more a { font-size: .85rem; color: var(--brass); }
.pk__actions { margin-top: auto; padding-top: 1.1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.pk__actions .btn { width: 100%; justify-content: space-between; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 14px 36px -16px rgba(37, 211, 102, .75); }
.btn--wa:hover { background: #1fbf5b; color: #fff; }
.btn--wa .btn__ico { background: rgba(255, 255, 255, .18); color: #fff; }
.pk__msg { margin-top: .5rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: color-mix(in srgb, var(--wa) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wa) 30%, transparent); font-size: .9rem; line-height: 1.75; }
.pk__msg-label { display: flex; align-items: center; gap: .45rem; font-size: .78rem; letter-spacing: .04em; color: var(--wa); margin-bottom: .4rem; font-weight: 600; }
.pk__msg-label .icon { width: 16px; height: 16px; fill: currentColor; }
.pk__msg p { white-space: pre-line; color: var(--fg); }
.pk-foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
.pk-foot__note { font-size: .82rem; color: var(--fg-mute); }
.pk-foot__custom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; width: 100%; padding: 1.4rem 1.6rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: start; }
.pk-foot__custom div { display: flex; flex-direction: column; gap: .2rem; }
.pk-foot__custom strong { font-family: var(--font-display); font-size: 1.3rem; }
.pk-foot__custom span { color: var(--fg-mute); font-size: .92rem; }
.pk-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pk-hero__hint { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: .85rem; color: var(--fg-mute); }
.pk-hero__hint .icon { width: 16px; height: 16px; color: var(--wa); }
.pk-hero__card .pk { transform: none; }
.pk--static:hover { transform: none; }
.pk-figure { margin-top: 2.5rem; }
.card__h--sm { font-size: 1.1rem; margin-top: 1.6rem; color: var(--fg-mute); }
.checklist--off { opacity: .75; }
.checklist--off .icon { color: var(--fg-mute); }
.packages--compare .pk-grid { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); max-width: 980px; }
@media (max-width: 1024px) { .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pk--hl { order: -1; grid-column: 1 / -1; } .pk--hl .pk__inner { max-width: none; } }
@media (max-width: 900px) { .pk-hero__grid { grid-template-columns: 1fr; } .pk-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; } .pk-tabs__btn { flex: 1; justify-content: center; } }
@media (max-width: 640px) { .pk-grid, .packages--compare .pk-grid { grid-template-columns: 1fr; } .pk--hl { order: 0; } .pk__actions .btn { width: 100%; } }
.pk-line { display: flex; align-items: center; gap: .8rem; font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 3rem 0 1.4rem; }
.pk-grid + .pk-line { margin-top: 3.5rem; }
.pk-line__ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-dim); color: var(--brass); }
.pk-line__ico .icon { width: 18px; height: 18px; }

/* portfolio empty state */
.work-empty { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; padding: 2rem 2.2rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-top: 1.5rem; }
.work-empty__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--brass); background: color-mix(in srgb, var(--brass) 12%, transparent); flex: none; }
.work-empty__ico svg { width: 24px; height: 24px; }
.work-empty > div { display: flex; flex-direction: column; gap: .3rem; flex: 1 1 320px; }
.work-empty strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.work-empty span { color: var(--fg-mute); line-height: 1.7; }
.work-empty + .work-grid:empty { display: none; }
