@font-face {
  font-family: Cairo;
  src: url('/assets/arabic.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #070b15;
  --panel: #0c1424;
  --line: #202e44;
  --white: #f1f6ff;
  --muted: #a3b2ca;
  --cyan: #71e7ff;
  --shell: 1220px;
  --hero-glow: 31%;
  scroll-behavior: smooth;
}
:root[dir='ltr'] { --hero-glow: 69%; }
:root[lang='en'] body { font-family: system-ui, sans-serif; line-height: 1.65; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--white); font: 16px/1.85 Cairo, Tahoma, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
::selection { background: #65e1fa; color: var(--ink); }
.shell { width: min(var(--shell), calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; inset: 12px 12px auto auto; transform: translateY(-160%); z-index: 10; background: var(--white); color: var(--ink); padding: 6px 16px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
section[id] { scroll-margin-top: 74px; }

.site-header { position: sticky; top: 0; z-index: 4; background: #080d18e8; border-bottom: 1px solid #9cbaf018; backdrop-filter: blur(20px); }
.header-inner { min-height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-mark { width: 38px; height: 38px; position: relative; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 20px #60d7ff21; flex: none; }
.brand-mark img { position: absolute; width: 135%; height: 135%; max-width: none; left: -17.5%; top: -9%; clip-path: inset(0 0 33.5% 0); }
.brand-name { display: grid; gap: 5px; font: 800 19px/1 system-ui, sans-serif; letter-spacing: .085em; }
.brand-name span { font-size: 8px; font-weight: 650; letter-spacing: .27em; color: #a3b6d4; }
.main-nav { display: flex; align-items: center; gap: clamp(19px, 3.05vw, 47px); color: var(--muted); font-size: .93rem; font-weight: 650; }
.main-nav a { display: grid; place-items: center; position: relative; min-height: 76px; white-space: nowrap; transition: color .2s ease; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--white); }
.main-nav a[aria-current]::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--cyan); box-shadow: 0 -2px 13px #6bdeff65; }
.main-nav .menu-contact { display: none; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.preference-button { display: grid; place-items: center; flex: none; min-width: 42px; height: 40px; padding-inline: 9px; line-height: 1; font-size: .8rem; font-weight: 760; color: #cae7fc; background: #111e30; border: 1px solid #334e69; border-radius: 8px; transition: color .2s, background .2s, border-color .2s; }
.preference-button:hover { color: var(--white); background: #152b44; border-color: #65a6c1; }
.language-toggle span[lang='ar'] { font-family: Cairo, Tahoma, sans-serif; font-size: .89rem; }
.theme-glyph { font: 400 1.22rem/1 'Segoe UI Symbol', system-ui, sans-serif; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 23px; border: 1px solid transparent; border-radius: 9px; line-height: 1.45; text-align: center; font-size: .94rem; font-weight: 750; transition: transform .22s, background .22s, border-color .22s, box-shadow .22s; }
.button:hover { transform: translateY(-2px); }
.button-header { min-height: 40px; padding-inline: 14px; color: #beedff; border-color: #334e69; background: #111e30; white-space: nowrap; }
.button-header:hover, .button-quiet:hover { border-color: #6fe7ffc0; background: #12263d; }
.button-primary { color: #061324; background: #72ddfa; border-color: #9ceeff; box-shadow: inset 0 1px 0 #d7faff7d, 0 8px 36px #37a6df26; }
.button-primary:hover { background: #a4efff; box-shadow: 0 9px 45px #51d0ff37; }
.button-quiet { color: var(--white); border-color: #364862; background: #101a2a; }

.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at var(--hero-glow) 54%, #102142 0, #0b1326 34%, #080d19 63%, var(--ink) 89%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 135px; pointer-events: none; background: linear-gradient(transparent, var(--ink)); z-index: -1; }
.hero-layout { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; min-height: clamp(520px, 45vw, 654px); position: relative; }
.hero-copy { padding-block: 56px; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--cyan); font-size: .88rem; font-weight: 760; }
.eyebrow > span { display: block; width: 20px; height: 1px; background: var(--cyan); box-shadow: 0 0 10px #71e7ff69; }
.eyebrow > b { font-weight: inherit; }
.hero h1 { margin: 16px 0 18px; font-size: clamp(2.7rem, 4.58vw, 4.85rem); font-weight: 920; line-height: 1.26; letter-spacing: -.045em; }
:root[lang='en'] .hero h1 { font-size: clamp(2.55rem, 4.25vw, 4.45rem); font-weight: 800; line-height: 1.09; }
.hero h1 strong { display: inline-block; font-weight: inherit; color: #7ee6ff; background: linear-gradient(270deg, #b6f5ff, #66deff 49%, #83a8ff 95%); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { max-width: 480px; font-size: clamp(1.05rem, 1.42vw, 1.23rem); line-height: 1.95; color: #bac9df; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .actions { margin-top: 31px; }
.hero-visual { direction: ltr; width: min(53vw, 720px); aspect-ratio: 1; position: absolute; left: -8%; top: 50%; transform: translateY(-50%); pointer-events: none; isolation: isolate; }
:where([dir='ltr']) .hero-visual { left: auto; right: -8%; }
.hero-artwork {
  position: absolute;
  inset: 0;
  background: url('/assets/hero-yasham-logo.png') center / 89% auto no-repeat;
  filter: drop-shadow(0 22px 30px #001337ad);
}
.hero-grid { position: absolute; inset: 1%; border-radius: 100%; background-image: linear-gradient(90deg, #73aeff25 1px, transparent 1px), linear-gradient(#73aeff25 1px, transparent 1px); background-size: 45px 45px; opacity: .55; mask-image: radial-gradient(#000 24%, #0009 54%, transparent 72%); }
.hero-ring { position: absolute; border: 1px solid #81b6f82e; border-radius: 50%; }
.hero-ring-outside { inset: 7%; }
.hero-ring-inside { inset: 14%; border-style: dashed; opacity: .62; }
.cue { position: absolute; width: 24px; height: 24px; opacity: .58; border-color: #65c0fb; border-style: solid; }
.cue-tl { left: 9%; top: 15%; border-width: 1px 0 0 1px; }
.cue-br { right: 7%; bottom: 12%; border-width: 0 1px 1px 0; }

.section { padding-block: 96px; }
.work { padding-top: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 26px; margin-bottom: 29px; }
h2 { font-size: clamp(1.98rem, 3.65vw, 3.5rem); line-height: 1.25; font-weight: 880; letter-spacing: -.036em; }
.section-heading h2, .approach h2, .contact h2 { margin-top: 6px; }
.section-heading > p { max-width: 390px; padding-bottom: 3px; color: var(--muted); }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }
.filterbar button { min-height: 41px; padding: 5px 15px; border: 1px solid #223149; border-radius: 7px; background: #101829; color: #b9c8dc; font-size: .88rem; font-weight: 700; transition: color .2s, background .2s, border-color .2s; }
.filterbar button:hover, .filterbar button[aria-pressed='true'] { background: #183048; color: #a8edff; border-color: #4d95b0; }
.gallery-status { color: var(--muted); padding: 14px 0; }
.gallery-status.is-announcement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.retry-button { padding: 5px 12px; color: var(--white); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-inline-start: 10px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: linear-gradient(135deg, #101b2d, #0b1322); border-radius: 15px; overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); border-color: #47718c; box-shadow: 0 15px 40px #03060eb3; }
.project-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.84; overflow: hidden; isolation: isolate; border-bottom: 1px solid #7ba9fa28; background: radial-gradient(ellipse at 49% 60%, #2f68b6, #0d1b36 77%); }
.project-art::before { content: ''; position: absolute; inset: -75% -15% -10%; z-index: -1; transform: perspective(280px) rotateX(37deg); background-image: linear-gradient(90deg, #b6d9fa23 1px, transparent 1px), linear-gradient(#b6d9fa23 1px, transparent 1px); background-size: 25px 25px; mask-image: radial-gradient(#000, transparent 70%); }
.project-art.has-image::before { display: none; }
.project-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.project-art-commerce { background: radial-gradient(ellipse at 57% 65%, #6d4a39, #201c32 76%); }
.project-art-web { background: radial-gradient(ellipse at 52% 65%, #235b69, #13273d 76%); }
.project-art-ai { background: radial-gradient(ellipse at 52% 65%, #453f90, #191935 76%); }
.project-card:nth-child(even) .project-art-erp { background: radial-gradient(ellipse at 50% 65%, #3d5384, #171b39 77%); }
.product-preview { width: 61%; height: 72%; position: relative; border-radius: 8px; transform: perspective(430px) rotateX(10deg) rotateY(13deg) rotateZ(-7deg); border: 1px solid #bddaff7a; background: linear-gradient(145deg, #f0f5ff, #c2d8f0); box-shadow: 14px 16px 0 #16233e84, 18px 24px 38px #0008; }
.preview-sidebar { position: absolute; inset: 0 auto 0 0; width: 20%; background: repeating-linear-gradient(0deg, transparent 0 8px, #a4d4fb2e 9px 11px, transparent 11px 15px), #172e50; border-radius: 0 7px 7px 0; border: 4px solid #172e50; }
.preview-metrics { position: absolute; inset: 19% 28% auto 9%; height: 17%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.preview-metrics i { border-radius: 4px; background: #fff; border: 1px solid #a5b9d3; box-shadow: inset 0 3px #5c9bdc; }
.preview-chart { position: absolute; inset: 47% 28% 13% 9%; direction: ltr; display: flex; align-items: end; justify-content: space-evenly; padding: 5% 4% 0; border-radius: 4px; border: 1px solid #a5b9d3; background: repeating-linear-gradient(0deg, #fcfdff 0 8px, #d3e0ee 8px 9px, #fcfdff 9px 12px); }
.preview-chart i { width: 9%; border-radius: 2px 2px 0 0; background: linear-gradient(#4786d5, #79bbe1); height: 34%; }
.preview-chart i:nth-child(2n) { height: 55%; }.preview-chart i:nth-child(3n) { height: 44%; }.preview-chart i:nth-child(5) { height: 79%; }.preview-chart i:nth-child(7) { height: 67%; }
.project-art-web .product-preview { border-radius: 13px; background: linear-gradient(150deg, #f2fcfe, #bad9e6); }
.project-art-web .preview-sidebar { background-color: #15576a; border-color: #15576a; }
.project-art-web .preview-metrics i { box-shadow: inset 0 3px #46919a; }
.project-art-web .preview-chart i { background: linear-gradient(#1f8990, #68bbc1); }
.project-art-commerce .product-preview { width: 39%; height: 83%; background: #fff2e4; border-radius: 11px; box-shadow: 12px 6px 0 #543c41, 24px 16px 0 #311f2d, 24px 24px 25px #0007; }
.project-art-commerce .preview-sidebar { inset: 9% 11% auto; width: auto; height: 33%; border: 0; border-radius: 4px; background: radial-gradient(circle at 60% 70%, #8b452e, #d2986f 23%, transparent 24%), radial-gradient(circle at 21% 38%, #b36e31, #d2a16e 21%, transparent 22%), linear-gradient(135deg, #e5c1a0, #ba8764); }
.project-art-commerce .preview-metrics { inset: 49% 11% auto; height: 23%; }
.project-art-commerce .preview-metrics i { border: none; border-radius: 3px; box-shadow: none; background: linear-gradient(145deg, #ead3b4, #c58a67); }
.project-art-commerce .preview-chart { inset: 79% 11% 10%; background: #dfc1a7; border-color: #cfb397; }.project-art-commerce .preview-chart i { display: none; }
.project-art-ai .product-preview { background: linear-gradient(145deg, #182448, #2d3870); }
.project-art-ai .preview-metrics i { background: #303c6e; border-color: #5874a3; }
.project-art-ai .preview-chart { background: #202c54; border-color: #55749c; }
.project-body { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 19px 20px 16px; }
.project-category { color: var(--cyan); font-size: .84rem; font-weight: 740; }
.project-card h3 { color: var(--white); font-size: clamp(1.21rem, 1.7vw, 1.58rem); line-height: 1.45; font-weight: 850; margin-block: 2px 8px; }
.project-description { color: var(--muted); line-height: 1.75; flex: 1; }
.tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 0; list-style: none; margin: 14px 0 0; }
.tags li { color: #c2d1e8; padding: 3px 7px; border-radius: 5px; background: #172336; font: 550 .78rem/1.5 system-ui, sans-serif; }
.detail-button { min-height: 43px; padding: 3px 0 0; margin-top: 7px; color: #a6eaff; background: none; border: 0; font-size: .91rem; font-weight: 800; }
.detail-button:hover { text-decoration: underline; text-underline-offset: 5px; }

.services { background: #0a1120; border-block: 1px solid #1a273c; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.service { border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; background: linear-gradient(160deg, #111d31, #101725); }
.service h3, .steps h3 { font-size: 1.17rem; font-weight: 800; line-height: 1.5; margin: 14px 0 5px; }
.service p, .steps p, .approach header > p:last-child, .contact-panel p:last-of-type { color: var(--muted); }
.service-icon { display: block; width: 39px; height: 39px; border: 1px solid #66d7ff52; border-radius: 9px; background: #142b41; color: #82e7ff; position: relative; }
.service-icon::before, .service-icon::after { content: ''; position: absolute; border: 1px solid currentColor; }
.icon-layers::before { inset: 11px; transform: rotate(45deg); border-radius: 2px; }.icon-layers::after { inset: 15px 11px 7px; transform: rotate(45deg); border-width: 0 1px 1px 0; }
.icon-window::before { inset: 10px 8px; border-radius: 3px; }.icon-window::after { inset: 16px 9px auto; border-width: 1px 0 0; }
.icon-bag::before { inset: 14px 10px 8px; border-radius: 3px; }.icon-bag::after { inset: 8px 14px 20px; border-radius: 5px 5px 0 0; border-width: 1px 1px 0; }
.icon-scan::before { inset: 9px; border-radius: 3px; border-style: dashed; }.icon-scan::after { inset: 15px; border-radius: 50%; }
.approach-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 8vw, 105px); }
.approach header > p:last-child { max-width: 405px; margin-top: 12px; }
.steps { border-inline-start: 1px solid #314563; padding-inline-start: 26px; }
.steps article { position: relative; padding: 0 0 19px; }
.steps article:not(:last-child) { border-bottom: 1px solid #29364a; margin-bottom: 18px; }
.steps article:last-child { padding-bottom: 0; }
.steps article::before { content: ''; position: absolute; inset-inline-start: -31px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px #73e4fc70; }
.steps h3 { margin-top: 0; }
.contact { padding-top: 0; }
.contact-panel { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: center; gap: 20px; overflow: hidden; padding: clamp(27px, 5.5vw, 72px); border: 1px solid #3c6185; border-radius: 19px; background: radial-gradient(ellipse at left center, #213d64, #12233a 46%, #101c31 78%); }
.contact-panel::before { content: ''; position: absolute; z-index: -1; inset: -150% auto -150% -12%; width: 62%; transform: rotate(-30deg); background: repeating-radial-gradient(ellipse at center, transparent 0 17px, #a4ccfa24 18px 19px, transparent 20px 39px); mask-image: linear-gradient(90deg, #000, transparent 95%); }
.contact-panel h2 { margin-bottom: 9px; }
.contact-actions { justify-content: end; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 99px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .87rem; }
.footer-inner .brand-name { color: var(--white); }
.admin-link { color: #bdd5f1; }
.admin-link:hover { color: var(--cyan); text-decoration: underline; }

.project-dialog { position: fixed; width: min(660px, calc(100% - 26px)); max-height: calc(100dvh - 32px); color: var(--white); background: #101a2b; border: 1px solid #3b5776; padding: 0; border-radius: 18px; box-shadow: 0 28px 100px #000a; }
.project-dialog::backdrop { background: #04070cbd; backdrop-filter: blur(6px); }
.dialog-inner { position: relative; }
.dialog-close { position: absolute; z-index: 1; top: 13px; inset-inline-end: 13px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #6582a3; border-radius: 8px; background: #071222ea; color: white; font: 400 26px/1 system-ui; }
.dialog-art .project-art { aspect-ratio: 2.6; }
.dialog-body { padding: 22px clamp(20px, 5vw, 35px) 32px; }
.dialog-body h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-block: 3px 10px; }
#dialog-description { color: #bbc9df; white-space: pre-wrap; }
#dialog-link { margin-top: 17px; }
body:has(dialog[open]) { overflow: hidden; }

:root[data-theme='light'] {
  color-scheme: light;
  --ink: #f6faff;
  --panel: #fff;
  --line: #cfdeed;
  --white: #0e203a;
  --muted: #445e7b;
  --cyan: #005c91;
}
[data-theme='light'] .site-header { background: #f9fcffed; border-color: #c4d8ec; }
[data-theme='light'] .brand-name span { color: #3b587a; }
[data-theme='light'] .brand-mark { border: 1px solid #d3e1f0; }
[data-theme='light'] .main-nav a[aria-current]::after { box-shadow: none; }
[data-theme='light'] .button-header,
[data-theme='light'] .button-quiet,
[data-theme='light'] .preference-button { color: #153a60; background: #f8fbff; border-color: #b4cbe2; }
[data-theme='light'] .button-header:hover,
[data-theme='light'] .button-quiet:hover,
[data-theme='light'] .preference-button:hover { color: #004d83; background: #e3f2ff; border-color: #6fa9d5; }
[data-theme='light'] .button-primary { color: #fff; background: #075ba7; border-color: #075ba7; box-shadow: 0 10px 30px #0076d12b; }
[data-theme='light'] .button-primary:hover { background: #064d90; border-color: #064d90; box-shadow: 0 13px 32px #0076d13d; }
[data-theme='light'] .hero { background: radial-gradient(ellipse at var(--hero-glow) 50%, #dceeff 0, #edf5ff 39%, #f8fbff 72%); }
[data-theme='light'] .hero-artwork {
  background-image: url('/assets/hero-yasham-logo-day.png');
  filter: drop-shadow(0 18px 24px #16447e45);
}
[data-theme='light'] .hero-grid { background-image: linear-gradient(90deg, #4686c52e 1px, transparent 1px), linear-gradient(#4686c52e 1px, transparent 1px); }
[data-theme='light'] .hero-ring { border-color: #2d83bc44; }
[data-theme='light'] .cue { border-color: #1271b4; }
[data-theme='light'] .hero h1 strong { color: #005b9d; background-image: linear-gradient(270deg, #00567f, #0872a7 47%, #2255aa 95%); }
[data-theme='light'] .hero-lead { color: #365675; }
[data-theme='light'] .filterbar button { background: #f0f6ff; color: #2e4b69; border-color: #c5d8ec; }
[data-theme='light'] .filterbar button:hover,
[data-theme='light'] .filterbar button[aria-pressed='true'] { color: #004779; background: #dbeeff; border-color: #75a9d2; }
[data-theme='light'] .project-card { background: linear-gradient(135deg, #fff, #f4f8ff); }
[data-theme='light'] .project-card:hover { border-color: #87b1d6; box-shadow: 0 15px 38px #2b639a25; }
[data-theme='light'] .tags li { color: #315473; background: #e7f1fc; }
[data-theme='light'] .detail-button, [data-theme='light'] .admin-link { color: #005687; }
[data-theme='light'] .services { background: #edf5ff; border-color: var(--line); }
[data-theme='light'] .service { background: linear-gradient(160deg, #fff, #f5f9ff); }
[data-theme='light'] .service-icon { color: #00598c; border-color: #91c4e9; background: #e1f2ff; }
[data-theme='light'] .steps, [data-theme='light'] .steps article { border-color: #c8d9eb; }
[data-theme='light'] .contact-panel { border-color: #b1d3ee; background: radial-gradient(ellipse at left center, #cce8ff, #e2f1ff 46%, #f1f8ff 78%); }
[data-theme='light'] .contact-panel::before { background: repeating-radial-gradient(ellipse at center, transparent 0 17px, #75a5ce3b 18px 19px, transparent 20px 39px); }
[data-theme='light'] .project-dialog { background: #fff; border-color: #9dbfdb; box-shadow: 0 28px 100px #132b5659; }
[data-theme='light'] .project-dialog::backdrop { background: #142d5570; }
[data-theme='light'] #dialog-description { color: var(--muted); }

@media (max-width: 1080px) {
  .shell { width: calc(100% - 72px); }
  .hero-visual { left: -5%; }
  :where([dir='ltr']) .hero-visual { left: auto; right: -5%; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .site-header { backdrop-filter: blur(14px); }
  .header-inner { min-height: 65px; grid-template-columns: 1fr auto; gap: 12px; }
  .button-header { min-height: 38px; padding-inline: 12px; }
  .preference-button { height: 38px; }
  .menu-toggle { display: flex; width: 40px; align-items: center; justify-content: center; gap: 5px; flex-direction: column; padding: 0; }
  .menu-toggle span { display: block; width: 15px; height: 1px; background: currentColor; }
  .main-nav { display: none; position: absolute; inset: 100% 0 auto; border-bottom: 1px solid var(--line); padding: 6px 22px 13px; gap: 0; background: #0a1120; box-shadow: 0 20px 30px #0006; }
  [data-theme='light'] .main-nav { background: #f6faff; box-shadow: 0 20px 30px #1b51852a; }
  .main-nav.is-open { display: grid; }
  .main-nav a { justify-items: start; min-height: 50px; padding-inline: 10px; }
  .main-nav a[aria-current]::after { inset-inline: 10px auto; width: 24px; }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 44px); }
  .hero-layout { min-height: 480px; }
  .hero-visual { left: -9%; width: 63vw; }
  :where([dir='ltr']) .hero-visual { left: auto; right: -9%; }
  .hero h1 { font-size: clamp(2.25rem, 5.4vw, 3.18rem); }
  :root[lang='en'] .hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.05rem); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: 64px; }
  .work { padding-top: 27px; }
  .contact { padding-top: 0; }
  .contact-panel { align-items: start; flex-direction: column; }
}
@media (max-width: 610px) {
  .shell { width: calc(100% - 34px); }
  .brand { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 15px; }
  .brand-name span { font-size: 7px; }
  .hero-layout { min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { padding-block: 42px 0; }
  .hero h1 { font-size: clamp(2.1rem, 8.6vw, 3.25rem); margin: 12px 0 12px; }
  .hero-lead { line-height: 1.78; }
  .hero .actions { margin-top: 21px; }
  .actions .button { min-height: 46px; padding-inline: 14px; }
  :root[lang='en'] .hero h1 { font-size: clamp(2.02rem, 8.35vw, 3.1rem); }
  .hero-visual, :where([dir='ltr']) .hero-visual { position: relative; inset: auto; width: min(105%, 410px); margin: -5% auto -6%; transform: none; }
  .section-heading, .approach-layout { display: grid; gap: 10px; }
  .approach-layout { gap: 25px; }
  .section-heading { margin-bottom: 19px; }
  .filterbar { gap: 6px; }
  .filterbar button { padding-inline: 11px; }
  .project-card { border-radius: 11px; }
  .project-grid, .services-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { justify-content: space-between; padding-block: 20px; }
  .footer-inner > p { order: 3; width: 100%; }
}
@media (max-width: 490px) {
  .header-actions { gap: 6px; }
  .button-header { display: none; }
  .main-nav .menu-contact { display: grid; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-motion-active .hero-artwork {
    transform: translate3d(var(--glass-x, 0px), var(--glass-y, 0px), 0) rotate(var(--glass-angle, 0deg));
    transition: transform 440ms cubic-bezier(.22, .69, .24, 1);
    will-change: transform;
  }
  @media (hover: none), (pointer: coarse), (max-width: 610px) {
    .hero-motion-active .hero-artwork { transition-duration: 180ms; }
  }

  [data-reveal] { --reveal-distance: 22px; --reveal-delay: 0ms; }
  .section-heading[data-reveal], .contact-panel[data-reveal] { --reveal-distance: 30px; }
  .filterbar[data-reveal] { --reveal-distance: 12px; --reveal-delay: 45ms; }
  .reveal-pending:not(:focus-within) { opacity: 0; translate: 0 var(--reveal-distance); }
  .reveal-in {
    animation: reveal-content 660ms cubic-bezier(.19, .72, .29, 1) var(--reveal-delay) backwards;
  }

  @media (min-width: 611px) {
    .steps article:nth-child(2), .services-grid .service:nth-child(2n) { --reveal-delay: 70ms; }
    .steps article:nth-child(3) { --reveal-delay: 130ms; }
  }
  @media (min-width: 611px) and (max-width: 800px) {
    .project-card:nth-child(2n) { --reveal-delay: 70ms; }
  }
  @media (min-width: 801px) {
    .project-card:nth-child(3n+2) { --reveal-delay: 65ms; }
    .project-card:nth-child(3n+3) { --reveal-delay: 125ms; }
  }
  @media (min-width: 1081px) {
    .services-grid .service:nth-child(3) { --reveal-delay: 130ms; }
    .services-grid .service:nth-child(4) { --reveal-delay: 190ms; }
  }
  @media (max-width: 610px) {
    [data-reveal] { --reveal-distance: 15px; }
    .section-heading[data-reveal], .contact-panel[data-reveal] { --reveal-distance: 20px; }
  }
}

@keyframes reveal-content {
  from { opacity: 0; translate: 0 var(--reveal-distance); }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
