/* ============ IROVAST — public site ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #edeae2;
  --ink: #161513;
  --accent: #ff5a1f;
  --muted: color-mix(in srgb, var(--ink) 55%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 14%, var(--bg));
  --card: color-mix(in srgb, #ffffff 45%, var(--bg));
  --radius: 18px;
  --font-head: 'Space Grotesk', 'Tajawal', sans-serif;
  --font-body: 'Inter', 'Tajawal', sans-serif;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[dir="rtl"] body, .lang-ar { font-family: 'Tajawal', var(--font-body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: 'Tajawal', var(--font-head); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--header-h); padding: 0 clamp(16px, 4vw, 40px);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.logo { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.logo-dot { color: var(--accent); }

.nav-pills {
  display: flex; gap: 2px; padding: 5px;
  background: color-mix(in srgb, var(--ink) 6%, var(--bg));
  border: 1px solid var(--line); border-radius: 999px;
}
.nav-pills a {
  padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: color-mix(in srgb, var(--ink) 75%, var(--bg)); transition: all .2s;
  white-space: nowrap;
}
.nav-pills a:hover, .nav-pills a.active { background: var(--ink); color: var(--bg); }

.header-right { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--ink) 6%, var(--bg));
}
.lang-switch a { padding: 6px 11px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .2s; }
.lang-switch a.on { background: var(--accent); color: #fff; }
.lang-switch a:not(.on):hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 9px 18px; font-size: 13.5px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--ink) 60%, transparent); }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 25%, var(--bg)); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { box-shadow: 0 12px 32px -10px color-mix(in srgb, var(--accent) 70%, transparent); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 90px clamp(24px, 8vw, 60px) 40px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu > a {
  font-family: var(--font-head); font-size: clamp(30px, 8vw, 44px); font-weight: 600;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  transform: translateY(14px); opacity: 0; transition: .4s;
}
.mobile-menu.open > a { transform: none; opacity: 1; }
.mobile-menu > a:hover { color: var(--accent); }
.mobile-langs { display: flex; gap: 16px; margin-top: 28px; }
.mobile-langs a { font-size: 15px; color: var(--muted); font-weight: 600; }
.mobile-langs a.on { color: var(--accent); }

/* ---------- hero (pinned: the section stays on screen while you scroll
   through .hero-wrap, driving the particle morph / video scrub) ---------- */
.hero-wrap { height: 280vh; }
.hero {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 20px) clamp(16px, 4vw, 40px) 90px;
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-video-tint {
  position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 88%, transparent) 0%, transparent 45%);
}
.hero-line2 {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 clamp(16px, 6vw, 60px);
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(26px, 5vw, 54px); letter-spacing: .04em;
  opacity: 0; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 65%, transparent); backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); } }

.hero-headline {
  font-size: clamp(42px, 8.5vw, 96px); font-weight: 600;
  margin-bottom: 22px; max-width: 15ch;
}
.hl-accent { font-style: italic; font-weight: 500; color: var(--accent); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 52ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 28px; inset-inline-end: clamp(16px, 4vw, 40px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hero-scroll i { width: 1px; height: 48px; background: var(--muted); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ''; position: absolute; top: -50%; width: 100%; height: 50%; background: var(--accent); animation: drip 1.8s infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 16px 0; overflow: hidden; background: color-mix(in srgb, var(--ink) 4%, var(--bg)); }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: .22em; white-space: nowrap; }
.marquee-track b { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) clamp(16px, 4vw, 40px); max-width: 1200px; margin: 0 auto; }
.section-head { margin-bottom: clamp(34px, 5vw, 60px); }
.section-index { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .25em; }
.section-head h2, .contact-title { font-size: clamp(32px, 5.4vw, 58px); font-weight: 600; margin-top: 8px; }
.section-sub { color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); margin-top: 12px; max-width: 55ch; }

/* reveal on scroll (hidden state only applies when JS is running) */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--stagger, 0) * 70ms); }
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.about-body { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.7; }
.skills { margin-top: 38px; display: flex; flex-direction: column; gap: 20px; }
.skill-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.skill-pct { color: var(--accent); }
.skill-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, var(--bg)); overflow: hidden; }
.skill-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--ink), var(--accent)); transition: width 1.2s cubic-bezier(.2,.7,.2,1) .3s; }
.js .skill-bar i { width: 0; }
.js .in .skill-bar i { width: var(--w); }
.about-img { border-radius: var(--radius); margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.stat-value { font-family: var(--font-head); font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--ink) 35%, transparent); }
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.service-icon { font-size: 30px; }
.service-num { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: color-mix(in srgb, var(--ink) 30%, var(--bg)); letter-spacing: .1em; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- projects ---------- */
.projects-list { display: flex; flex-direction: column; gap: 18px; }
.project-row {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(20px, 4vw, 50px);
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 4vw, 44px); align-items: center;
  transition: border-color .3s, box-shadow .3s;
}
.project-row:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 35%, transparent); }
.project-name-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.project-name { font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
.project-tagline { color: var(--accent); font-weight: 600; font-size: clamp(15px, 2vw, 18px); margin-top: 6px; }
.project-desc { color: var(--muted); margin-top: 12px; max-width: 60ch; }
.project-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 5%, var(--bg));
}
.chip-status { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); border-color: color-mix(in srgb, var(--accent) 35%, var(--bg)); color: var(--accent); }
.project-visual { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; }
.project-visual-empty {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 30%, var(--bg)), color-mix(in srgb, var(--ink) 88%, var(--accent)));
}
.project-visual-empty span { font-family: var(--font-head); font-size: clamp(40px, 6vw, 72px); font-weight: 700; color: var(--bg); opacity: .9; }

/* ---------- portfolio ---------- */
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.pill {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all .2s;
}
.pill:hover { border-color: var(--ink); }
.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: transform .3s, box-shadow .3s; }
.work-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px color-mix(in srgb, var(--ink) 40%, transparent); }
.work-card.hide { display: none; }
.work-card.featured { grid-column: span 2; }
.work-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.work-card.featured .work-thumb { aspect-ratio: 16/8; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-thumb img { transform: scale(1.05); }
.work-thumb-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ink) 90%, var(--accent)), color-mix(in srgb, var(--ink) 60%, var(--accent)));
}
.work-thumb-empty span { font-family: var(--font-head); font-size: 64px; font-weight: 700; color: color-mix(in srgb, var(--bg) 80%, transparent); }
.work-play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(6px);
  border-radius: 50%; font-size: 18px; color: var(--ink); padding-inline-start: 4px;
  transition: transform .3s, background .3s;
}
.work-card:hover .work-play { transform: scale(1.12); background: var(--accent); color: #fff; }
.work-info { padding: 16px 18px 18px; }
.work-info h3 { font-size: 16.5px; margin-bottom: 8px; }
.work-meta { display: flex; align-items: center; gap: 10px; }
.work-desc { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--ink) 90%, transparent);
  display: none; align-items: center; justify-content: center; padding: 4vmin;
}
.lightbox.open { display: flex; }
.lightbox-body { width: min(1000px, 100%); aspect-ratio: 16/9; }
.lightbox-body iframe, .lightbox-body video { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #000; }
.lightbox-body .ig-embed { aspect-ratio: auto; height: min(80vh, 700px); width: min(400px, 92vw); margin: 0 auto; display: block; background: #fff; }
.lightbox-close {
  position: absolute; top: 18px; inset-inline-end: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--ink); font-size: 17px; cursor: pointer;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); }
.contact-direct { display: flex; flex-direction: column; gap: 10px; margin-top: 34px; }
.contact-direct-label { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 4px; }
.contact-line { font-size: 16.5px; font-weight: 500; transition: color .2s; }
a.contact-line:hover { color: var(--accent); }
.contact-socials { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.contact-socials a { font-weight: 600; font-size: 14.5px; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: all .2s; }
.contact-socials a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 3vw, 36px); }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  background: var(--bg); color: var(--ink); font-family: inherit; font-size: 15px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.contact-form .btn { align-self: flex-start; }
.form-sent {
  background: color-mix(in srgb, #23a55a 14%, var(--bg)); border: 1px solid color-mix(in srgb, #23a55a 40%, var(--bg));
  color: #1c7a44; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; font-weight: 600;
}

/* ---------- text / custom ---------- */
.text-body p { max-width: 70ch; font-size: clamp(16px, 2vw, 18px); margin-bottom: 16px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 4%, var(--bg)); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 70px) clamp(16px, 4vw, 40px); display: flex; flex-direction: column; gap: 26px; }
.footer-brand p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-weight: 600; font-size: 14.5px; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- 404 ---------- */
.nf-wrap { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.nf-code { font-family: var(--font-head); font-size: clamp(80px, 18vw, 160px); font-weight: 700; color: var(--accent); line-height: 1; }
.nf-text { color: var(--muted); margin-bottom: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card.featured { grid-column: span 2; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 1fr; }
  .project-visual { order: -1; aspect-ratio: 16/7; }
}
@media (max-width: 700px) {
  .hero-wrap { height: 230vh; }
  .nav-pills, .header-cta { display: none; }
  .burger { display: block; }
  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .work-card.featured { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding-bottom: 110px; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01s !important; transition-duration: .01s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-wrap { height: auto; }
  .hero { position: relative; }
}

/* ---------- rich lightbox (video or gallery + info) ---------- */
.lightbox-body { display: flex; flex-direction: column; gap: 0; width: min(1000px, 100%); aspect-ratio: auto; }
.lb-media { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 14px 14px 0 0; overflow: hidden; }
.lb-media iframe, .lb-media video, .lb-media > img { width: 100%; height: 100%; border: 0; object-fit: contain; display: block; }
.lb-media .ig-embed { aspect-ratio: auto; height: 100%; width: min(400px, 92vw); margin: 0 auto; background: #fff; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--bg) 90%, transparent); color: var(--ink);
  font-size: 26px; line-height: 1; transition: .2s;
}
.lb-nav:hover { background: var(--accent); color: #fff; }
.lb-prev { inset-inline-start: 14px; }
.lb-next { inset-inline-end: 14px; }
.lb-count {
  position: absolute; bottom: 12px; inset-inline-end: 16px;
  background: color-mix(in srgb, var(--ink) 65%, transparent); color: var(--bg);
  padding: 4px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
}
.lb-info { background: var(--bg); border-radius: 0 0 14px 14px; padding: 18px 22px; }
.lb-info h3 { font-size: 20px; margin: 8px 0 4px; }
.lb-info p { color: var(--muted); font-size: 14.5px; }

/* ---------- work detail page ---------- */
.backlink-public { display: inline-block; font-weight: 600; color: var(--muted); margin-bottom: 18px; transition: color .2s; }
.backlink-public:hover { color: var(--accent); }
.work-detail { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 70px)); }
.detail-media { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 22px; }
.detail-media iframe, .detail-media video { width: 100%; height: 100%; border: 0; }
.detail-media .ig-embed { height: 100%; width: min(400px, 92vw); margin: 0 auto; display: block; background: #fff; }
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.detail-gallery img { border-radius: var(--radius); width: 100%; }

/* ---------- extra motion ---------- */
.js .about-img { clip-path: inset(8% 8% 8% 8% round var(--radius)); transition: clip-path 1s cubic-bezier(.2,.7,.2,1); }
.js .in .about-img, .js .about-side.in .about-img { clip-path: inset(0 0 0 0 round var(--radius)); }
.service-card, .work-card, .project-row { will-change: transform; }
a.work-card { color: inherit; }
