:root {
  --ink: #111111;
  --charcoal: #252525;
  --paper: #ffffff;
  --mist: #f5f5f3;
  --stone: #e8e3dc;
  --warm: #d8d0c6;
  --purple: #7357a7;
  --line: rgba(17, 17, 17, 0.16);
  --ease: cubic-bezier(.2,.8,.2,1);
  --gutter: clamp(20px, 5vw, 84px);
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
html[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { color: #fff; background: var(--purple); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }

.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 9999; padding: 10px 16px; background: #fff; color: #111; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; inset: 0 auto auto 0; width: 0; height: 2px; z-index: 1000; background: var(--purple); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 900; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 20px var(--gutter); color: #fff; transition: padding .45s var(--ease), background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .site-header.on-light { padding-block: 13px; background: rgba(255,255,255,.92); color: var(--ink); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; width: clamp(118px, 10vw, 158px); }
.brand svg { width: 100%; height: auto; overflow: visible; }
.brand .logo-main, .brand .logo-sub { fill: currentColor; }
.brand .logo-accent { fill: var(--purple); }
.nav { justify-self: center; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 42px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.nav a { position: relative; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; inset: auto 0 2px; height: 1px; background: var(--purple); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switch { direction: ltr; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid currentColor; border-radius: 999px; }
.language-switch a { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .08em; transition: background .3s, color .3s; }
.language-switch a:hover, .language-switch a[aria-current="page"] { background: var(--purple); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; height: 1px; margin: 6px 0; background: currentColor; transition: transform .3s, opacity .3s; }

.hero { min-height: 100svh; position: relative; display: grid; align-items: end; color: #fff; overflow: hidden; background: #151515; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 54% center; animation: heroZoom 18s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.78) 0%, rgba(8,8,8,.34) 48%, rgba(8,8,8,.06) 80%), linear-gradient(0deg, rgba(8,8,8,.62), transparent 54%); }
.hero-content { position: relative; z-index: 2; width: min(900px, 86vw); padding: 170px var(--gutter) clamp(72px, 9vw, 130px); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--purple); }
.hero h1 { max-width: 840px; margin: 0; font-family: var(--display); font-size: clamp(48px, 7.2vw, 112px); line-height: .92; font-weight: 400; letter-spacing: -.045em; text-wrap: balance; }
html[dir="rtl"] .hero h1, html[dir="rtl"] .display-title { font-family: Tahoma, Arial, sans-serif; letter-spacing: -.025em; }
.hero-copy { max-width: 620px; margin: 28px 0 0; color: rgba(255,255,255,.82); font-size: clamp(16px, 1.35vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; overflow: hidden; cursor: pointer; transition: color .35s, border-color .35s, background .35s; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--purple); transform: translateY(102%); transition: transform .38s var(--ease); z-index: -1; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--purple); color: #fff; }
.btn-solid { background: #fff; border-color: #fff; color: #111; }
.btn-dark { background: #111; border-color: #111; color: #fff; }
.btn-dark::before, .btn-solid::before { z-index: 0; }
.btn-dark span, .btn-solid span { position: relative; z-index: 1; }
.hero-index { position: absolute; z-index: 2; inset-inline-end: var(--gutter); bottom: 44px; display: grid; grid-template-columns: auto 80px; gap: 14px; align-items: center; font-size: 10px; letter-spacing: .18em; }
.hero-index i { display: block; height: 1px; background: rgba(255,255,255,.5); }

.section { padding: clamp(84px, 11vw, 170px) var(--gutter); }
.section-head { display: grid; grid-template-columns: minmax(220px, .65fr) 1.5fr; gap: clamp(40px, 8vw, 140px); align-items: start; margin-bottom: clamp(52px, 7vw, 110px); }
.kicker { margin: 0; color: var(--purple); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.display-title { margin: 0; max-width: 1000px; font-family: var(--display); font-size: clamp(42px, 6vw, 88px); line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.lead { max-width: 720px; margin: 28px 0 0; font-size: clamp(17px, 1.5vw, 22px); color: #5b5b5b; }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(30px, 6vw, 100px); align-items: end; }
.about-visual { position: relative; }
.about-visual img { height: min(72vw, 820px); object-fit: cover; }
.about-note { position: absolute; inset-inline-end: -20px; bottom: -34px; width: min(320px, 68%); padding: 28px; background: var(--charcoal); color: #fff; }
.about-note small { display: block; margin-bottom: 10px; color: #bca8e8; letter-spacing: .12em; text-transform: uppercase; }
.about-copy { max-width: 620px; padding-bottom: 10%; }
.about-copy p { margin: 0 0 24px; font-size: clamp(17px, 1.35vw, 21px); color: #444; }
.director { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.director strong { font-weight: 600; }

.services { padding-inline: 0; background: var(--mist); }
.services .section-head { padding-inline: var(--gutter); }
.service-list { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 90px minmax(220px, .65fr) 1.3fr; gap: clamp(22px, 5vw, 80px); min-height: 390px; padding: 58px var(--gutter); border-bottom: 1px solid var(--line); align-items: center; transition: background .35s; }
.service:hover { background: #fff; }
.service-number { align-self: start; color: var(--purple); font-family: var(--display); font-size: 26px; }
.service-copy h3 { margin: 0 0 22px; font-family: var(--display); font-size: clamp(34px, 4vw, 62px); line-height: 1; font-weight: 400; }
.service-copy p { max-width: 520px; margin: 0; color: #666; }
.service-media { overflow: hidden; height: 290px; }
.service-media img { height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service-media img { transform: scale(1.045); }

.portfolio { background: #151515; color: #fff; }
.portfolio .lead { color: rgba(255,255,255,.62); }
.filter-bar { display: flex; gap: 8px; overflow-x: auto; margin: -36px 0 50px; padding-bottom: 8px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn { flex: 0 0 auto; min-height: 42px; padding: 0 17px; border: 1px solid rgba(255,255,255,.26); background: transparent; color: #fff; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; cursor: pointer; transition: background .3s, border-color .3s; }
.filter-btn:hover, .filter-btn.is-active { background: var(--purple); border-color: var(--purple); }
.gallery { columns: 3 300px; column-gap: 18px; }
.gallery-card { break-inside: avoid; margin: 0 0 18px; position: relative; overflow: hidden; background: #222; cursor: zoom-in; }
.gallery-card[hidden] { display: none; }
.gallery-card picture, .gallery-card img { width: 100%; }
.gallery-card img { aspect-ratio: var(--ratio, 4/3); object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.gallery-card:hover img { transform: scale(1.035); filter: brightness(.7); }
.gallery-meta { position: absolute; inset: auto 0 0; padding: 50px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.78)); transform: translateY(12px); opacity: 0; transition: opacity .4s, transform .4s; }
.gallery-card:hover .gallery-meta, .gallery-card:focus-visible .gallery-meta { opacity: 1; transform: translateY(0); }
.gallery-meta strong { display: block; font-family: var(--display); font-size: 23px; font-weight: 400; line-height: 1.2; }
.gallery-meta span { display: block; margin-top: 7px; color: #c5b1eb; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.concept-disclaimer { display: flex; align-items: flex-start; gap: 14px; max-width: 820px; margin: 42px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.65); font-size: 13px; }
.concept-disclaimer::before { content: "i"; display: grid; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; border: 1px solid var(--purple); border-radius: 50%; color: #c5b1eb; }

.process { background: var(--stone); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(17,17,17,.16); border: 1px solid rgba(17,17,17,.16); }
.process-step { min-height: 290px; padding: 34px 28px; background: var(--stone); display: flex; flex-direction: column; }
.process-step span { color: var(--purple); font-family: var(--display); font-size: 24px; }
.process-step h3 { margin: auto 0 16px; font-family: var(--display); font-size: 29px; font-weight: 400; line-height: 1.1; }
.process-step p { margin: 0; color: #5f5b56; font-size: 14px; }
.process-strip { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 18px; }
.process-strip picture:first-child img { height: 560px; }
.process-strip picture:last-child img { height: 560px; }
.process-strip img { object-fit: cover; }

.cta { min-height: 72vh; position: relative; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.cta picture, .cta img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta img { object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(12,12,12,.64); }
.cta-inner { position: relative; z-index: 1; width: min(980px, 88vw); padding: 90px 0; }
.cta h2 { margin: 0; font-family: var(--display); font-size: clamp(46px, 7.4vw, 104px); line-height: .98; font-weight: 400; letter-spacing: -.045em; }
.cta p { max-width: 620px; margin: 24px auto 34px; color: rgba(255,255,255,.76); font-size: 18px; }

.contact-page { padding-top: 150px; min-height: 100vh; }
.page-hero { padding: 70px var(--gutter) 95px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 1100px; margin: 12px 0 0; font-family: var(--display); font-size: clamp(52px, 8vw, 116px); line-height: .94; font-weight: 400; letter-spacing: -.05em; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 150px); padding: clamp(70px, 9vw, 130px) var(--gutter); }
.contact-details h2 { margin: 0 0 30px; font-family: var(--display); font-size: 42px; font-weight: 400; }
.contact-list { display: grid; gap: 22px; margin: 0; }
.contact-list div { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-list dt { color: #777; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.contact-list dd { margin: 6px 0 0; font-size: 17px; }
.contact-list a:hover { color: var(--purple); }
.whatsapp-link { display: inline-flex; margin-top: 30px; align-items: center; gap: 10px; color: var(--purple); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.whatsapp-link::after { content: "↗"; font-size: 18px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid #999; border-radius: 0; padding: 12px 0; background: transparent; color: var(--ink); outline: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; color: #5b5b5b; font-size: 13px; }
.check input { margin-top: 4px; accent-color: var(--purple); }
.form-note { grid-column: 1 / -1; margin: 0; color: #777; font-size: 12px; }
.form-status { grid-column: 1 / -1; min-height: 24px; color: var(--purple); font-size: 13px; }
.contact-form .btn { justify-self: start; }

.projects-page { padding-top: 110px; background: #151515; color: #fff; min-height: 100vh; }
.projects-page .page-hero { border-color: rgba(255,255,255,.16); }
.projects-page .portfolio { padding-top: 70px; }

.site-footer { padding: 70px var(--gutter) 30px; background: #0f0f0f; color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.1fr .7fr .7fr; gap: 50px; padding-bottom: 70px; }
.footer-brand { width: 190px; }
.footer-brand p { max-width: 440px; margin: 24px 0 0; color: rgba(255,255,255,.54); }
.footer-col h3 { margin: 0 0 20px; color: #ac95dc; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.footer-col a { display: block; width: fit-content; margin: 8px 0; color: rgba(255,255,255,.76); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.46); font-size: 11px; }
.footer-bottom a { color: rgba(255,255,255,.68); }

.lightbox { position: fixed; inset: 0; z-index: 3000; display: none; background: rgba(8,8,8,.96); color: #fff; }
.lightbox.is-open { display: grid; grid-template-rows: 1fr auto; }
.lightbox-stage { min-height: 0; display: grid; place-items: center; padding: 76px clamp(20px, 6vw, 90px) 20px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; user-select: none; }
.lightbox-caption { padding: 16px var(--gutter) 26px; text-align: center; color: rgba(255,255,255,.72); }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.15); color: #fff; cursor: pointer; }
.lightbox-close { inset-block-start: 20px; inset-inline-end: 20px; font-size: 28px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 24px; }
.lightbox-prev { inset-inline-start: 20px; }
.lightbox-next { inset-inline-end: 20px; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.1); } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 100px var(--gutter); background: #111; color: #fff; font-size: 18px; transform: translateY(-105%); transition: transform .5s var(--ease); }
  .site-header.menu-open .nav { transform: translateY(0); }
  .site-header.menu-open { color: #fff; }
  .site-header.menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { padding: 40px 0 0; }
  .service { grid-template-columns: 52px 1fr; min-height: 0; }
  .service-media { grid-column: 2; height: 340px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header { gap: 8px; padding: 12px 14px; }
  .brand { width: 104px; }
  .header-actions { gap: 4px; }
  .language-switch { gap: 0; padding: 2px; }
  .language-switch a { min-width: 28px; height: 30px; padding: 0 4px; font-size: 9px; }
  .menu-toggle { width: 38px; height: 38px; padding: 7px; }
  .hero-content { padding-inline: 20px; padding-bottom: 100px; width: 100%; }
  .hero h1 { font-size: clamp(44px, 14vw, 68px); }
  .hero-copy { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-index { display: none; }
  .section { padding: 80px 20px; }
  .display-title { font-size: 43px; }
  .about-visual img { height: 118vw; }
  .about-note { inset-inline-end: -10px; bottom: -28px; padding: 20px; }
  .director { display: grid; }
  .services .section-head { padding-inline: 20px; }
  .service { grid-template-columns: 40px 1fr; gap: 14px; padding: 42px 20px; }
  .service-copy h3 { font-size: 38px; }
  .service-media { height: 240px; }
  .gallery { columns: 1; }
  .gallery-meta { opacity: 1; transform: none; }
  .process-grid { grid-template-columns: 1fr; }
  .process-strip { grid-template-columns: 1fr; }
  .process-strip picture:first-child img, .process-strip picture:last-child img { height: 360px; }
  .page-hero { padding-inline: 20px; }
  .contact-grid { padding-inline: 20px; }
  .contact-form { grid-template-columns: 1fr; }
  .field { grid-column: 1; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .lightbox-nav { top: auto; bottom: 72px; }
}

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