/* =========================================================
   لمسات فنية للديكور — Atelier design system (v2)
   Ivory + black + logo red. Typography-led, framed imagery.
   ========================================================= */
:root {
  --ink: #0b0b0b;
  --ink-2: #161616;
  --paper: #f7f5f1;
  --paper-2: #eeeae3;
  --white: #ffffff;
  --red: #e30c18;
  --red-dark: #b8000b;
  --wa: #1fa855;
  --text: #121212;
  --muted: #5b5852;
  --line: rgba(18, 18, 18, .14);
  --line-dark: rgba(255, 255, 255, .16);
  --display: "El Messiri", "Alexandria", serif;
  --body: "Alexandria", Tahoma, Arial, sans-serif;
  --wrap: min(1200px, calc(100% - 56px));
  --header: 80px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; font-weight: 400; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; right: 16px; z-index: 999; padding: 10px 16px; background: #fff; border: 2px solid var(--red); }
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.25; letter-spacing: 0; }
h1 { font-size: clamp(40px, 5.6vw, 84px); }
h2 { font-size: clamp(30px, 3.6vw, 52px); }
h3 { font-size: clamp(20px, 1.8vw, 26px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; font-weight: 500; letter-spacing: .06em; color: var(--red); }
.kicker::before { content: ""; width: 36px; height: 2px; background: var(--red); }
.lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--muted); max-width: 60ch; }
.dark .lead, .dark p { color: rgba(255, 255, 255, .74); }
.dark .kicker { color: #ff4d57; }
.dark .kicker::before { background: #ff4d57; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border: 2px solid transparent; font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--red); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.dark .btn-line { border-color: rgba(255, 255, 255, .5); color: #fff; }
.dark .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a46; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow-link { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; border-bottom: 2px solid var(--red); padding-bottom: 3px; transition: gap .25s; }
.arrow-link:hover { gap: 16px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header); background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { width: 50px; height: auto; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-family: var(--display); font-size: 22px; font-weight: 700; }
.brand-copy small { font-size: 12.5px; color: var(--muted); }
.main-nav { display: flex; gap: 6px; margin-inline: auto; }
.main-nav a { position: relative; padding: 10px 16px; font-size: 16px; font-weight: 500; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 16px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-end { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 600; direction: ltr; }
.header-end .btn { min-height: 48px; padding: 0 24px; font-size: 15px; }
.menu-toggle { display: none; width: 48px; height: 48px; margin-inline-start: auto; border: 2px solid var(--ink); background: transparent; position: relative; }
.menu-toggle span { position: absolute; inset-inline: 11px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-panel { position: fixed; inset: var(--header) 0 0; z-index: 99; display: none; flex-direction: column; padding: 12px 24px 28px; background: var(--paper); overflow-y: auto; }
.mobile-panel.is-open { display: flex; }
.mobile-panel nav a { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 28px; font-weight: 600; }
.mobile-panel nav a[aria-current="page"] { color: var(--red); }
.mobile-panel .btn-row { margin-top: 28px; }
.mobile-panel .btn { width: 100%; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 6vw, 96px) clamp(56px, 7vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-copy > * + * { margin-top: 26px; }
.hero-copy h1 em { font-style: normal; color: var(--red); }
.hero-copy .lead { font-size: clamp(18px, 1.5vw, 21px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 26px; margin-top: 34px !important; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.hero-meta b { color: var(--text); font-weight: 600; }
.collage { position: relative; padding: 0 0 56px 56px; }
.collage-main { position: relative; z-index: 1; }
.collage-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.collage-main::before { content: ""; position: absolute; z-index: -1; inset: 18px auto -18px 18px; width: 100%; border: 2px solid var(--red); }
.collage-small { position: absolute; z-index: 2; bottom: 0; inset-inline-start: 0; width: 42%; border: 8px solid var(--paper); background: var(--paper); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.collage-small img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.collage-tag { position: absolute; z-index: 3; top: 22px; inset-inline-end: -14px; padding: 12px 20px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.5; }
.collage-tag b { display: block; font-family: var(--display); font-size: 22px; color: #fff; }

/* ---------- strips / sections ---------- */
.strip { background: var(--ink); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 30px 20px; text-align: center; border-inline-start: 1px solid var(--line-dark); }
.strip-item:first-child { border-inline-start: 0; }
.strip-item strong { display: block; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); line-height: 1.3; }
.strip-item span { font-size: 14.5px; color: rgba(255, 255, 255, .7); }
.section { padding-block: clamp(64px, 8vw, 120px); }
.section.dark { background: var(--ink); color: #fff; }
.section.soft { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > * + * { margin-top: 14px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.split-head .section-head { margin-bottom: 0; }

/* services list */
.svc-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-aside { position: sticky; top: calc(var(--header) + 32px); }
.svc-aside > * + * { margin-top: 20px; }
.svc-aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 30px; }
.svc-item { display: grid; grid-template-columns: 56px 1fr 28px; gap: 20px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); transition: padding .35s var(--ease), background .35s; }
.svc-item:last-child { border-bottom: 1px solid var(--line); }
.svc-item:hover { padding-inline-start: 16px; background: rgba(227, 12, 24, .04); }
.svc-item .n { font-family: var(--display); font-size: 22px; color: var(--red); font-weight: 600; }
.svc-item h3 { margin-bottom: 4px; }
.svc-item p { color: var(--muted); font-size: 16px; }
.svc-item i { font-style: normal; font-size: 22px; color: var(--red); transition: transform .3s; }
.svc-item:hover i { transform: translateX(-6px); }

/* bento projects */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento a { position: relative; overflow: hidden; background: var(--ink-2); }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.bento a:hover img { transform: scale(1.05); }
.bento a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 50%); }
.bento span { position: absolute; z-index: 2; inset-inline: 18px; bottom: 14px; color: #fff; font-family: var(--display); font-size: 20px; font-weight: 600; }
.bento span small { display: block; font-family: var(--body); font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .75); }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 24px; inset-inline: 8%; height: 2px; background: rgba(255, 255, 255, .22); }
.tl-step { position: relative; padding: 0 12px; text-align: center; }
.tl-step .dot { width: 50px; height: 50px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--display); font-size: 22px; font-weight: 700; position: relative; box-shadow: 0 0 0 8px var(--ink); }
.tl-step h3 { font-size: 20px; margin-bottom: 6px; }
.tl-step p { font-size: 15px; color: rgba(255, 255, 255, .7); }

/* reasons */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.reason { padding: 32px 28px 36px; border-inline-start: 1px solid var(--line); }
.reason:first-child { border-inline-start: 0; }
.reason .num { display: block; margin-bottom: 18px; font-family: var(--display); font-size: 54px; line-height: 1; color: var(--red); font-weight: 700; }
.reason p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* cta */
.cta { background: var(--ink); color: #fff; padding-block: clamp(64px, 8vw, 110px); position: relative; overflow: hidden; border-top: 4px solid var(--red); }
.cta::before { content: ""; position: absolute; inset-block: -20% -20%; inset-inline-start: -6%; width: 40%; background: url("assets/logo.png") center / contain no-repeat; opacity: .07; }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(32px, 4.2vw, 60px); }
.cta p { margin-top: 14px; color: rgba(255, 255, 255, .78); max-width: 52ch; }
.cta .btn-row { justify-content: flex-end; }

/* ---------- inner pages ---------- */
.page-hero { background: var(--ink); color: #fff; padding-block: clamp(56px, 7vw, 100px); border-bottom: 4px solid var(--red); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-block: -30% -30%; inset-inline-start: -4%; width: 34%; background: url("assets/logo.png") center / contain no-repeat; opacity: .08; }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 22px; padding: 0; font-size: 14.5px; color: rgba(255, 255, 255, .6); }
.breadcrumb li + li::before { content: "‹"; margin-inline-end: 10px; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(38px, 5vw, 72px); max-width: 16ch; }
.page-hero .lead { margin-top: 18px; color: rgba(255, 255, 255, .78); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-grid > div > * + * { margin-top: 20px; }
.about-grid img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; box-shadow: 16px 16px 0 -2px var(--red); }
.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { position: relative; padding-inline-start: 34px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 20px; height: 20px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.500 10.500l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.dark .ticks li { color: rgba(255, 255, 255, .85); }

.group-nav { position: sticky; top: var(--header); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.group-nav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.group-nav a { flex: none; padding: 9px 20px; font-size: 15px; font-weight: 500; border: 1px solid var(--line); transition: .2s; }
.group-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.group { padding-block: clamp(56px, 7vw, 100px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 60px); }
.group:last-of-type { border-bottom: 0; }
.group-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.group-aside { position: sticky; top: calc(var(--header) + 90px); }
.group-aside > * + * { margin-top: 18px; }
.group-aside img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; margin-top: 26px; }
.group-aside .big { font-family: var(--display); font-size: 84px; line-height: 1; color: var(--red); font-weight: 700; }
.item-row { padding: 26px 0; border-top: 1px solid var(--line); }
.item-row:last-child { border-bottom: 1px solid var(--line); }
.item-row h3 { margin-bottom: 10px; }
.item-row li { position: relative; padding-inline-start: 18px; color: var(--muted); font-size: 16px; }
.item-row li::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; width: 6px; height: 6px; background: var(--red); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter { min-height: 46px; padding: 0 20px; border: 1px solid var(--ink); background: transparent; font-size: 15px; font-weight: 500; transition: .2s; }
.filter:hover { background: rgba(0, 0, 0, .06); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter small { margin-inline-start: 6px; opacity: .65; }
.gallery { columns: 3 300px; column-gap: 18px; }
.gallery-item { position: relative; display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 0; overflow: hidden; background: var(--paper-2); break-inside: avoid; }
.gallery-item img { width: 100%; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--red); transition: border-width .25s; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { border-width: 5px; }
.gallery-item[hidden] { display: none; }
.gallery-empty { padding: 60px 0; text-align: center; color: var(--muted); }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 8, .97); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: rgba(8, 8, 8, .97); }
.lightbox-stage { display: grid; place-items: center; min-height: 0; padding: 80px 90px 10px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-bar { display: flex; justify-content: space-between; padding: 16px 28px 24px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.lightbox-bar strong { color: #fff; font-weight: 500; }
.lb-btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff; font-size: 22px; transition: .2s; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 18px; inset-inline-start: 18px; }
.lb-prev { top: 50%; inset-inline-end: 18px; transform: translateY(-50%); }
.lb-next { top: 50%; inset-inline-start: 18px; transform: translateY(-50%); }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 22px; background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--red); transition: transform .25s; }
a.contact-card:hover { transform: translateX(-6px); }
.contact-card small { display: block; font-size: 14px; color: var(--muted); }
.contact-card strong { font-size: 19px; font-weight: 600; }
.form { padding: clamp(24px, 3.4vw, 48px); background: var(--white); border: 1px solid var(--line); }
.form h2 { font-size: clamp(26px, 2.6vw, 36px); }
.form > p { color: var(--muted); margin: 8px 0 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid #c9c4ba; background: var(--paper); font-size: 16px; border-radius: 0; transition: border-color .2s, background .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); background: #fff; }
.form .btn { width: 100%; margin-top: 22px; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 26px; font-size: 18px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--red); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); }

.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.notfound strong { display: block; font-family: var(--display); font-size: clamp(100px, 20vw, 220px); line-height: 1; color: var(--red); }
.notfound p { margin: 12px auto 28px; max-width: 46ch; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-top: clamp(56px, 7vw, 90px); border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-grid h4 { margin-bottom: 18px; font-family: var(--display); font-size: 20px; }
.footer-grid p { margin-top: 18px; color: rgba(255, 255, 255, .7); max-width: 34ch; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a, .footer-grid li { color: rgba(255, 255, 255, .78); }
.footer-grid a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
.site-footer .brand-copy small { color: rgba(255, 255, 255, .6); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: 14.5px; color: rgba(255, 255, 255, .55); }

.wa-fab { position: fixed; z-index: 90; inset-inline-end: 22px; bottom: 22px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transition: transform .25s; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 32px; height: 32px; fill: currentColor; }
.action-bar { display: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .main-nav, .header-phone, .header-end { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .svc-layout, .group-grid, .about-grid, .contact-grid, .cta-inner { grid-template-columns: 1fr; }
  .svc-aside, .group-aside { position: static; }
  .svc-aside img { display: none; }
  .collage { max-width: 560px; margin-inline: auto; width: 100%; }
  .cta .btn-row { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
}
@media (max-width: 760px) {
  :root { --wrap: calc(100% - 36px); --header: 68px; }
  body { font-size: 16.5px; padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .brand-logo { width: 44px; }
  .brand-copy strong { font-size: 20px; }
  .brand-copy small { display: none; }
  .hero { padding-block: 32px 48px; }
  .collage { padding: 0 0 40px 30px; }
  .collage-tag { inset-inline-end: 0; top: 14px; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(3) { border-inline-start: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .reasons { grid-template-columns: 1fr; }
  .reason { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 4px; }
  .reason:first-child { border-top: 0; }
  .split-head { flex-direction: column; align-items: flex-start; }
  .svc-item { grid-template-columns: 40px 1fr; }
  .svc-item i { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -18px; padding: 0 18px 6px; scrollbar-width: none; }
  .filter { flex: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .wa-fab { display: none; }
  .action-bar { position: fixed; z-index: 95; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { display: grid; place-items: center; min-height: 60px; color: #fff; font-weight: 600; border-inline-start: 1px solid var(--line-dark); }
  .action-bar a:first-child { border-inline-start: 0; }
  .action-bar .ab-wa { color: #4fe08e; }
  .action-bar .ab-quote { background: var(--red); }
  .lightbox-stage { padding: 74px 10px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 74px; transform: none; }
}
@media (max-width: 480px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .strip-item { padding: 22px 8px; }
  .group-aside .big { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .wa-fab, .action-bar, .mobile-panel, .cta { display: none; } }

/* mobile: image first, compact collage */
@media (max-width: 1040px) {
  .collage { order: -1; padding: 0 0 34px 24px; max-width: 640px; }
  .collage-main img { aspect-ratio: 4 / 3; }
  .collage-small { width: 34%; border-width: 6px; }
  .collage-tag { top: auto; bottom: 62px; inset-inline-end: 0; padding: 8px 14px; }
  .collage-tag b { font-size: 18px; }
  .hero { padding-top: 24px; }
}
@media (max-width: 760px) {
  h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .hero-copy > * + * { margin-top: 20px; }
  .hero-meta { margin-top: 26px !important; padding-top: 20px; gap: 6px 20px; font-size: 14.5px; }
}
@media (max-width: 760px) {
  .bento span { font-size: 17px; inset-inline: 12px; bottom: 10px; line-height: 1.4; }
  .bento span small { font-size: 12px; }
}
@media (max-width: 760px) {
}

/* =========================================================
   Motion layer (disabled for prefers-reduced-motion)
   ========================================================= */
.progress { position: fixed; z-index: 120; top: 0; inset-inline: 0; height: 3px; background: var(--red); transform-origin: right; transform: scaleX(0); pointer-events: none; }
.marquee { overflow: hidden; background: var(--paper-2); border-block: 1px solid var(--line); padding-block: 16px; direction: ltr; }
.marquee-track { display: flex; width: max-content; }
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; padding-inline-end: 36px; font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; white-space: nowrap; direction: rtl; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }
.btn { position: relative; overflow: hidden; }
.btn-red::after, .btn-wa::after { content: ""; position: absolute; inset-block: 0; width: 40%; inset-inline-start: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(36px); } }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-100%); } }
  @keyframes clipUp { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
  @keyframes popIn { from { opacity: 0; transform: scale(.7) rotate(-4deg); } }
  @keyframes slideIn { from { opacity: 0; transform: translateX(40px); } }
  @keyframes draw { from { transform: scaleX(0); } }
  @keyframes underline { to { background-size: 100% 4px; } }
  @keyframes floaty { 50% { transform: translateY(-14px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes scroll { to { transform: translateX(-50%); } }
  @keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
  @keyframes shine { to { inset-inline-start: 140%; } }
  @keyframes frameIn { from { opacity: 0; transform: translate(-22px, -22px); } }

  .js .site-header { animation: dropIn .8s var(--ease) both; }

  /* hero entrance */
  .js .hero-copy > * { animation: rise 1s var(--ease) both; }
  .js .hero-copy > :nth-child(1) { animation-delay: .15s; }
  .js .hero-copy > :nth-child(2) { animation-delay: .3s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .5s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .65s; }
  .js .hero-copy > :nth-child(5) { animation-delay: .8s; }
  .hero-copy h1 em { background: linear-gradient(var(--red), var(--red)) no-repeat 100% 100% / 0 4px; padding-bottom: 4px; animation: underline 1s var(--ease) 1.2s forwards; }
  .js .collage-main img { animation: clipUp 1.3s cubic-bezier(.77, 0, .18, 1) .25s both; }
  .js .collage-main::before { animation: frameIn 1.1s var(--ease) .9s both; }
  .js .collage-small { animation: popIn .9s var(--ease) 1.1s both, floaty 7s ease-in-out 2.2s infinite; }
  .js .collage-tag { animation: slideIn .9s var(--ease) 1.3s both; }

  /* marquee */
  .marquee-track { animation: scroll 36s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  /* scroll reveals */
  .js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform 1s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal[data-anim="left"] { transform: translateX(-60px); }
  .js .reveal[data-anim="right"] { transform: translateX(60px); }
  .js .reveal[data-anim="zoom"] { transform: scale(.92); }
  .js .reveal.is-visible[data-anim] { transform: none; }
  .js .reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1); }
  .js .reveal-img.is-visible { clip-path: inset(0); }

  /* kicker line + headings */
  .js .kicker::before { transform-origin: right; transform: scaleX(0); }
  .js .is-visible .kicker::before, .js .kicker.is-visible::before, .js .hero-copy .kicker::before { transform: scaleX(1); transition: transform .9s var(--ease) .2s; }
  .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
  .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .is-in .w > span { transform: none; }

  /* strips, steps, lists */
  .strip-item { transition: background .3s; }
  .strip-item:hover { background: rgba(255, 255, 255, .06); }
  .strip-item strong { transition: transform .4s var(--ease); }
  .strip-item:hover strong { transform: translateY(-4px); color: #ff4d57; }
  .svc-item .n { transition: transform .4s var(--ease); }
  .svc-item:hover .n { transform: scale(1.25); }
  .bento a img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
  .bento a.is-visible img { transform: scale(1); }
  .bento a.is-visible:hover img { transform: scale(1.07); }
  .bento span { transform: translateY(8px); transition: transform .5s var(--ease); }
  .bento a:hover span { transform: translateY(0); }
  .timeline::before { transform-origin: right; transform: scaleX(0); transition: transform 1.8s cubic-bezier(.77, 0, .18, 1); }
  .timeline.is-visible::before { transform: scaleX(1); }
  .js .tl-step .dot { transform: scale(0); transition: transform .7s var(--ease); transition-delay: calc(var(--d, 0s) + .2s); }
  .js .tl-step.is-visible .dot { transform: scale(1); }
  .tl-step:hover .dot { animation: popIn .5s var(--ease); }
  .reason .num { transition: transform .5s var(--ease); display: inline-block; }
  .reason:hover .num { transform: translateX(-10px) scale(1.1); }
  .item-row { transition: padding .4s var(--ease), background .4s; }
  .item-row:hover { padding-inline-start: 14px; background: rgba(227, 12, 24, .04); }
  .contact-card { transition: transform .35s var(--ease), box-shadow .35s; }
  a.contact-card:hover { box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .5); }

  /* buttons & fab */
  .btn-red:hover::after, .btn-wa:hover::after { animation: shine .9s ease; }
  .wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s ease-out infinite; }
  .wa-fab { position: fixed; }
  .logo-spin { animation: spin 60s linear infinite; }

  /* watermarks drift */
  .page-hero::after, .cta::before { animation: floaty 10s ease-in-out infinite; }

  /* gallery */
  .js .gallery-item { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
  .gallery-item.re { animation: none; }
  .js .lightbox[open] .lightbox-stage img { animation: popIn .5s var(--ease); }
  .js .lightbox[open] { animation: fade .3s ease; }
  @keyframes fade { from { opacity: 0; } }

  /* parallax helpers (JS sets --py) */
  [data-parallax] { translate: 0 var(--py, 0px); will-change: translate; }
}

/* =========================================================
   Journey: scroll-driven "مسيرة" من 1 إلى 6
   Default (no JS / reduced motion) = completed path.
   ========================================================= */
.journey { background: var(--ink); color: #fff; position: relative; }
.journey-pin { position: relative; height: 320vh; }
.journey-stage { position: sticky; top: var(--header); min-height: calc(100vh - var(--header)); display: grid; align-content: center; padding-block: 28px; overflow: hidden; }
.journey-stage::before { content: ""; position: absolute; inset-inline-end: -8%; top: 50%; width: min(46vw, 560px); aspect-ratio: 1; transform: translateY(-50%); background: url("assets/logo.png") center / contain no-repeat; opacity: .05; pointer-events: none; }
.journey .section-head { margin-bottom: clamp(20px, 3vh, 40px); max-width: 760px; }
.journey .section-head h2 { font-size: clamp(26px, 3vw, 42px); }

.j-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 36px); margin-bottom: clamp(28px, 5vh, 56px); }
.j-now { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.j-now b { font-family: var(--display); font-size: clamp(60px, 8vw, 120px); line-height: .9; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.j-now i { font-style: normal; font-family: var(--display); font-size: clamp(24px, 2.8vw, 40px); font-weight: 600; white-space: nowrap; }
.j-now.swap b, .j-now.swap i { animation: jswap .55s var(--ease); }
@keyframes jswap { from { opacity: 0; transform: translateY(24px); } }
.j-bar { position: relative; height: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.j-bar span { position: absolute; inset: 0; background: var(--red); transform-origin: right; transform: scaleX(var(--p, 1)); }
.j-count { font-size: 18px; font-weight: 600; direction: ltr; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }

.j-track { position: relative; }
.j-line { position: absolute; top: 31px; inset-inline: calc(100% / 12); height: 4px; background: rgba(255, 255, 255, .16); }
.j-fill { position: absolute; inset: 0; background: linear-gradient(270deg, var(--red), #ff4d57); transform-origin: right; transform: scaleX(var(--p, 1)); }
.j-runner { position: absolute; top: 50%; inset-inline-start: calc(var(--p, 1) * 100%); width: 50px; height: 50px; margin-top: -25px; margin-inline-start: -25px; display: grid; place-items: center; background: #fff; border: 3px solid var(--red); border-radius: 50%; box-shadow: 0 0 0 7px rgba(227, 12, 24, .22), 0 14px 26px -8px rgba(0, 0, 0, .7); z-index: 3; }
.j-runner img { width: 28px; height: auto; }

.j-steps { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, 1fr); }
.j-step { text-align: center; padding-inline: 10px; }
.j-dot { width: 66px; height: 66px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--red); border: 3px solid var(--red); color: #fff; font-family: var(--display); font-size: 28px; font-weight: 700; position: relative; box-shadow: 0 0 0 8px var(--ink); transition: background .5s, border-color .5s, color .5s, transform .6s var(--ease); }
.j-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; }
.j-card { transition: opacity .6s ease, transform .7s var(--ease); }
.j-card h3 { font-size: clamp(19px, 1.7vw, 24px); margin-bottom: 6px; }
.j-card p { font-size: 15px; color: rgba(255, 255, 255, .72); }

/* JS-driven states */
.j-step.is-pending .j-dot { background: var(--ink); border-color: rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .55); }
.j-step.is-pending .j-card { opacity: .32; transform: translateY(16px); }
.j-step.is-current .j-dot { transform: scale(1.18); }
.j-step.is-current .j-dot::after { animation: jring 1.8s ease-out infinite; }
@keyframes jring { from { transform: scale(.9); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.j-step.is-current .j-card h3 { color: #ff4d57; }

/* ---- tablet / mobile: vertical path, natural scroll ---- */
@media (max-width: 1040px) {
  .journey-pin { height: auto; }
  .journey-stage { position: static; min-height: 0; padding-block: clamp(56px, 9vw, 90px); overflow: hidden; }
  .j-head { grid-template-columns: 1fr auto; row-gap: 14px; position: sticky; top: var(--header); z-index: 5; background: var(--ink); padding-block: 12px; margin-bottom: 26px; }
  .j-bar { grid-column: 1 / -1; grid-row: 2; }
  .j-line { top: 33px; bottom: 33px; inset-inline: auto; inset-inline-start: 31px; width: 4px; height: auto; }
  .j-fill { transform-origin: top; transform: scaleY(var(--p, 1)); background: linear-gradient(180deg, var(--red), #ff4d57); }
  .j-runner { top: calc(var(--p, 1) * 100%); inset-inline-start: 50%; margin-top: -25px; margin-inline-start: -25px; }
  .j-steps { grid-template-columns: 1fr; row-gap: 34px; }
  .j-step { display: grid; grid-template-columns: 66px 1fr; column-gap: 22px; align-items: center; text-align: start; padding-inline: 0; }
  .j-dot { margin: 0; }
  .j-step.is-pending .j-card { transform: translateX(18px); }
}
@media (max-width: 480px) {
  .j-now b { font-size: 56px; }
  .j-now i { font-size: 24px; }
  .j-dot { width: 60px; height: 60px; font-size: 24px; }
  .j-step { grid-template-columns: 60px 1fr; column-gap: 18px; }
  .j-line { inset-inline-start: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .j-step.is-pending .j-dot { background: var(--red); border-color: var(--red); color: #fff; }
  .j-step.is-pending .j-card { opacity: 1; transform: none; }
  .j-step.is-current .j-dot::after { animation: none; }
}

/* no sideways reveal on narrow screens + hard clip of horizontal overflow */
html, body { overflow-x: clip; }
@media (max-width: 1040px) {
  .js .reveal[data-anim="left"], .js .reveal[data-anim="right"] { transform: translateY(40px); }
}

/* =========================================================
   Journey v2: snake / zig-zag path
   ========================================================= */
.journey.has-snake .j-line { display: none; }
.j-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.j-svg .seg-base { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 10; }
.j-svg .seg-fill { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(227, 12, 24, .55)); }
.j-track > .j-runner { position: absolute; top: 0; left: 0; inset-inline-start: auto; margin: -25px 0 0 -25px; z-index: 3; will-change: transform; transition: none; }
.j-steps { align-items: start; }
.j-step:nth-child(even) { margin-top: clamp(56px, 9vh, 96px); }
.j-track { padding-bottom: 8px; }

@media (max-width: 1040px) {
  .j-steps { display: flex; flex-direction: column; gap: 38px; }
  .j-step, .j-step:nth-child(even) { margin-top: 0; display: flex; align-items: center; gap: 18px; text-align: start; padding-inline: 0; }
  .j-step:nth-child(even) { flex-direction: row-reverse; text-align: end; }
  .j-dot { flex: none; margin: 0; }
  .j-card { flex: 0 1 64%; }
  .j-step.is-pending .j-card { transform: translateY(16px); }
  .j-track { padding-inline: 4px; }
}
@media (max-width: 1040px) {
  .j-steps { gap: 62px; }
  .j-card { flex-basis: 58%; }
  .j-card p { font-size: 14.5px; }
}

/* mobile snake: centre each dot+card pair so the zig-zag sits mid-page */
@media (max-width: 1040px) {
  .j-step, .j-step:nth-child(even) { justify-content: center; }
  .j-card { flex: 0 0 min(52%, 230px); }
  .j-track { padding-inline: 0; }
}
@media (max-width: 1040px) { .j-steps { align-items: center; } .j-step { width: 100%; } }

/* mobile snake: wider swing — odd dots pushed right, even dots pushed left */
@media (max-width: 1040px) {
  .j-step, .j-step:nth-child(even) { justify-content: flex-start; padding-inline: 6px; }
  .j-card { flex: 0 0 min(56%, 250px); }
}
@media (max-width: 1040px) { .j-steps { gap: 70px; } }


/* =========================================================
   Selected works: balanced 4-column catalogue
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 19vw, 270px); gap: 14px; }
.bento .tile { position: relative; display: block; overflow: hidden; background: #111; min-height: 0; isolation: isolate; }
.bento .tile.t1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento .tile.t2 { grid-column: 3; grid-row: 1; }
.bento .tile.t3 { grid-column: 4; grid-row: 1 / 3; }
.bento .tile.t4 { grid-column: 3; grid-row: 2; }
.bento .tile.t5 { grid-column: 1 / 3; grid-row: 3; }
.bento .tile.t6 { grid-column: 3 / 5; grid-row: 3; }
.bento .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bento .tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .05) 58%); }
.tile-no { position: absolute; top: 14px; inset-inline-start: 16px; font-style: normal; font-family: var(--display); font-size: 20px; font-weight: 700; color: rgba(255, 255, 255, .9); letter-spacing: .04em; }
.tile-no::after { content: ""; display: block; width: 26px; height: 2px; margin-top: 4px; background: var(--red); transition: width .4s var(--ease); }
.tile:hover .tile-no::after { width: 54px; }
.tile-cap { position: absolute; inset-inline: 18px; bottom: 16px; display: grid; gap: 2px; color: #fff; }
.tile-cap small { font-size: 13px; color: rgba(255, 255, 255, .78); }
.tile-cap strong { font-family: var(--display); font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; line-height: 1.3; }
.tile.t1 .tile-cap strong, .tile.t3 .tile-cap strong { font-size: clamp(20px, 2vw, 30px); }
.tile-go { position: absolute; top: 12px; inset-inline-end: 12px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 22px; font-weight: 400; opacity: 0; transform: scale(.5) rotate(-45deg); transition: opacity .35s, transform .5s var(--ease); }
.tile:hover .tile-go, .tile:focus-visible .tile-go { opacity: 1; transform: none; }
@media (hover: none) { .tile-go { opacity: 1; transform: none; width: 38px; height: 38px; font-size: 18px; } }

@media (max-width: 1040px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(190px, 34vw, 280px); }
  .bento .tile.t1 { grid-column: 1 / 3; grid-row: auto; min-height: 0; }
  .bento .tile.t2, .bento .tile.t3, .bento .tile.t4, .bento .tile.t5 { grid-column: auto; grid-row: auto; }
  .bento .tile.t6 { grid-column: 1 / 3; grid-row: auto; }
  .bento .tile.t1, .bento .tile.t6 { aspect-ratio: auto; }
  .bento { grid-auto-rows: clamp(200px, 38vw, 300px); }
}
@media (max-width: 560px) {
  .bento { gap: 10px; grid-auto-rows: 200px; }
  .bento .tile.t1, .bento .tile.t6 { grid-row: span 1; }
  .tile-cap { inset-inline: 12px; bottom: 12px; }
  .tile-cap strong { font-size: 17px; }
  .tile.t1 .tile-cap strong { font-size: 21px; }
  .tile-no { font-size: 17px; top: 10px; inset-inline-start: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes tileCorner { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
  .js .bento .tile.reveal { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.77, 0, .18, 1); transition-delay: var(--d, 0s); }
  .js .bento .tile.t1.reveal { clip-path: inset(0 0 0 100%); }
  .js .bento .tile.t3.reveal { clip-path: inset(100% 0 0 0); }
  .js .bento .tile.t6.reveal { clip-path: inset(0 100% 0 0); }
  .js .bento .tile.reveal.is-visible { clip-path: inset(0); }
  .bento .tile img { transform: scale(1.3); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
  .bento .tile.is-visible img { transform: scale(1); }
  .bento .tile.is-visible:hover img { transform: scale(1.09); transition-delay: 0s; transition-duration: 1.1s; }
  .bento .tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(227, 12, 24, .55), transparent 65%); opacity: 0; transition: opacity .5s; }
  .bento .tile:hover::before { opacity: 1; }
  .tile-cap { transform: translateY(16px); transition: transform .6s var(--ease); }
  .tile:hover .tile-cap { transform: translateY(0); }
  .tile-cap small { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); }
  .tile:hover .tile-cap small, .tile:focus-visible .tile-cap small { opacity: 1; transform: none; }
  .bento .tile .tile-no { opacity: 0; transform: translateY(-10px); transition: opacity .6s .5s, transform .7s var(--ease) .5s; }
  .bento .tile.is-visible .tile-no { opacity: 1; transform: none; }
  @media (hover: none) { .tile-cap small { opacity: 1; transform: none; } .tile-cap { transform: none; } }
}

/* =========================================================
   Home — Services: interactive list + live preview
   ========================================================= */
.sv-section { background: var(--paper); }
.sv-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.sv-head h2 em { font-style: normal; color: var(--red); }
.sv-head .lead { margin-bottom: 14px; }
.sv-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: start; }

.sv-list { border-top: 1px solid var(--line); }
.sv-row { position: relative; display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: 18px; padding: 26px 8px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: padding .5s var(--ease); }
.sv-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(227, 12, 24, .09), rgba(227, 12, 24, 0)); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.sv-n { font-family: var(--display); font-size: 26px; font-weight: 700; color: rgba(18, 18, 18, .28); transition: color .4s, transform .5s var(--ease); font-variant-numeric: tabular-nums; }
.sv-t { display: grid; gap: 2px; }
.sv-t strong { font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; line-height: 1.3; transition: transform .5s var(--ease), color .3s; }
.sv-t small { font-size: 16px; color: var(--muted); max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-6px); transition: max-height .6s var(--ease), opacity .4s, transform .5s var(--ease); }
.sv-thumb { display: none; }
.sv-go { width: 50px; height: 50px; display: grid; place-items: center; border: 2px solid rgba(18, 18, 18, .2); border-radius: 50%; font-size: 22px; transition: background .35s, color .35s, border-color .35s, transform .5s var(--ease); }
.sv-bar { position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; }

.sv-row:hover, .sv-row:focus-visible, .sv-row.is-active { padding-inline-start: 22px; }
.sv-row:hover::before, .sv-row:focus-visible::before, .sv-row.is-active::before { transform: scaleX(1); }
.sv-row.is-active .sv-n, .sv-row:hover .sv-n { color: var(--red); transform: scale(1.18); }
.sv-row.is-active .sv-t strong, .sv-row:hover .sv-t strong { transform: translateX(-6px); }
.sv-row.is-active .sv-t small, .sv-row:hover .sv-t small { max-height: 60px; opacity: 1; transform: none; }
.sv-row.is-active .sv-go, .sv-row:hover .sv-go { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }
.sv-row:hover .sv-go { transform: rotate(-45deg) scale(1.08); }

/* preview */
.sv-preview { position: sticky; top: calc(var(--header) + 28px); }
.sv-frame { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--ink); box-shadow: 16px 16px 0 -2px var(--red); }
.sv-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); }
.sv-frame img.is-active { opacity: 1; transform: none; z-index: 2; }
.sv-frame::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 45%); pointer-events: none; }
.sv-cap { display: flex; align-items: baseline; gap: 14px; margin-top: 26px; padding-top: 14px; border-top: 2px solid var(--ink); }
.sv-cap-n { font-family: var(--display); font-size: 34px; color: var(--red); line-height: 1; }
.sv-cap-t { font-family: var(--display); font-size: 22px; font-weight: 600; flex: 1; }
.sv-cap-c { font-size: 15px; color: var(--muted); direction: ltr; font-variant-numeric: tabular-nums; }

@media (max-width: 1040px) {
  .sv-head { grid-template-columns: 1fr; align-items: start; }
  .sv-grid { grid-template-columns: 1fr; }
  .sv-preview { display: none; }
  .sv-row { grid-template-columns: 78px 1fr 42px; gap: 14px; padding: 16px 0; }
  .sv-row:hover, .sv-row:focus-visible, .sv-row.is-active { padding-inline-start: 0; }
  .sv-n { display: none; }
  .sv-thumb { display: block; width: 78px; height: 78px; overflow: hidden; }
  .sv-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
  .sv-row.is-active .sv-thumb img { transform: scale(1.15); }
  .sv-t strong { font-size: 19px; }
  .sv-t small { max-height: 60px; opacity: 1; transform: none; font-size: 14.5px; }
  .sv-go { width: 40px; height: 40px; font-size: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes svFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes svImg { from { clip-path: inset(100% 0 0 0); transform: scale(1.18); } to { clip-path: inset(0); transform: scale(1); } }
  @keyframes svTxt { from { opacity: 0; transform: translateY(14px); } }
  .js .sv-list .sv-row.reveal { transform: translateX(60px); }
  .js .sv-list .sv-row.reveal.is-visible { transform: none; }
  .sv-row.is-active .sv-bar { animation: svFill var(--sv-dur, 4.5s) linear forwards; }
  .sv-list.is-paused .sv-row.is-active .sv-bar { animation: none; transform: scaleX(1); }
  .sv-frame img { transition: opacity .5s; }
  .sv-frame img.is-active { animation: svImg 1s cubic-bezier(.77, 0, .18, 1) both; }
  .sv-cap.swap .sv-cap-n, .sv-cap.swap .sv-cap-t { animation: svTxt .6s var(--ease) both; }
  .sv-cap.swap .sv-cap-t { animation-delay: .08s; }
  .sv-row .sv-n, .sv-row .sv-go { will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-row.is-active .sv-bar { transform: scaleX(1); }
}
@media (max-width: 1040px) { .sv-thumb { order: -1; } .sv-t { min-width: 0; } }


/* =========================================================
   Services (home) v3 — typographic list, no imagery
   ========================================================= */
.sv-list.sv2 { border-top: 2px solid var(--ink); }
.sv-list.sv2 .sv-row { grid-template-columns: 84px 1fr 64px; gap: 22px; padding: clamp(24px, 3.2vw, 40px) 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.sv-list.sv2 .sv-row::before { background: var(--red); opacity: 1; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .7s cubic-bezier(.77, 0, .18, 1); }
.sv-list.sv2 .sv-row::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 1s var(--ease); }
.sv-list.sv2 .sv-row.is-visible::after { transform: scaleX(1); }
.sv-list.sv2 .sv-row:hover::before, .sv-list.sv2 .sv-row:focus-visible::before { transform: scaleX(1); }
.sv-list.sv2 .sv-n { font-size: clamp(20px, 2vw, 28px); color: rgba(18, 18, 18, .35); transition: color .4s, transform .5s var(--ease); }
.sv-list.sv2 .sv-row.is-lit .sv-n { color: var(--red); }
.sv-list.sv2 .sv-t { position: relative; gap: 6px; }
.sv-list.sv2 .sv-t strong { position: relative; display: inline-block; width: fit-content; font-size: clamp(26px, 3.6vw, 56px); line-height: 1.2; color: rgba(18, 18, 18, .9); transform: none !important; transition: color .4s, letter-spacing .6s var(--ease); }
.sv-list.sv2 .sv-t strong::after { content: attr(data-text); position: absolute; inset: 0; color: var(--red); clip-path: inset(0 0 0 100%); transition: clip-path .9s cubic-bezier(.77, 0, .18, 1); white-space: nowrap; }
.sv-list.sv2 .sv-row.is-lit .sv-t strong::after { clip-path: inset(0); }
.sv-list.sv2 .sv-row:hover .sv-t strong { color: #fff; }
.sv-list.sv2 .sv-row:hover .sv-t strong::after { color: #fff; clip-path: inset(0); }
.sv-list.sv2 .sv-t small { max-height: none; opacity: 1; transform: none; overflow: visible; font-size: clamp(15px, 1.2vw, 18px); color: var(--muted); transition: color .4s, transform .6s var(--ease); }
.sv-list.sv2 .sv-row:hover .sv-t small { color: rgba(255, 255, 255, .88); transform: translateX(-10px); }
.sv-list.sv2 .sv-row:hover .sv-n { color: #fff; transform: scale(1.15); }
.sv-list.sv2 .sv-go { width: 56px; height: 56px; font-size: 24px; border-color: rgba(18, 18, 18, .25); }
.sv-list.sv2 .sv-row:hover .sv-go { background: #fff; border-color: #fff; color: var(--red); transform: rotate(-45deg); }
.sv-list.sv2 .sv-row:hover { padding-inline-start: 30px; }
.sv-list.sv2 .sv-row.is-active, .sv-list.sv2 .sv-row.is-lit { padding-inline-start: 12px; }
.sv-list.sv2 .sv-row:hover.is-lit { padding-inline-start: 30px; }
.sv-list.sv2 .sv-bar { display: none; }

@media (max-width: 760px) {
  .sv-list.sv2 .sv-row { grid-template-columns: 44px 1fr 44px; gap: 12px; padding: 22px 4px; }
  .sv-list.sv2 .sv-n { display: block; font-size: 18px; }
  .sv-list.sv2 .sv-t strong { font-size: clamp(22px, 7vw, 30px); }
  .sv-list.sv2 .sv-t small { font-size: 14.5px; }
  .sv-list.sv2 .sv-go { width: 42px; height: 42px; font-size: 18px; }
  .sv-list.sv2 .sv-row:hover { padding-inline-start: 4px; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes svLit { 0% { letter-spacing: .06em; } 100% { letter-spacing: 0; } }
  .js .sv-list.sv2 .sv-row.reveal { transform: translateY(34px); }
  .js .sv-list.sv2 .sv-row.reveal.is-visible { transform: none; }
  .sv-list.sv2 .sv-row.is-lit .sv-t strong { animation: svLit .9s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .sv-list.sv2 .sv-row::after { transform: scaleX(1); }
  .sv-list.sv2 .sv-t strong::after { clip-path: inset(0); }
}

/* =========================================================
   Selected works — never clip the observed element itself
   (clip-path on an IntersectionObserver target can keep it
   "invisible" forever, which left this section empty)
   ========================================================= */
.bento .tile { background: var(--paper-2); }
@media (prefers-reduced-motion: no-preference) {
  .js .bento .tile.reveal, .js .bento .tile.t1.reveal, .js .bento .tile.t3.reveal, .js .bento .tile.t6.reveal { clip-path: none; opacity: 1; transform: none; }
  .js .bento .tile img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.77, 0, .18, 1), transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
  .js .bento .tile.t1 img { clip-path: inset(0 0 0 100%); }
  .js .bento .tile.t3 img { clip-path: inset(100% 0 0 0); }
  .js .bento .tile.t6 img { clip-path: inset(0 100% 0 0); }
  .js .bento .tile.is-visible img { clip-path: inset(0); }
  .js .bento .tile .tile-cap { opacity: 0; }
  .js .bento .tile.is-visible .tile-cap { opacity: 1; transition: opacity .6s .6s, transform .6s var(--ease); }
}
.sv-list.sv2 .sv-n { display: block; }
