/* Dirwaza Studio — site styles. Signature motion: arches that draw themselves and open. */
:root {
  --sand: #F2EEE6; --sand-2: #E8E2D6; --line: #D9D1C3;
  --char: #1B1A19; --night: #2A2724; --mute: #6B645B;
  --copper: #B8743A; --copper-dk: #8A5426; --burg: #3A0E17;
  --f-head: 'Amiri', serif; --f-body: 'IBM Plex Sans Arabic', sans-serif;
  --f-label: 'Tenor Sans', sans-serif; --f-serif: 'Cormorant Garamond', serif;
  --ease: cubic-bezier(.22, .8, .18, 1);
  --pad: clamp(20px, 5vw, 80px);
  --max: 1320px;
}
html[lang="en"] { --f-head: 'Cormorant Garamond', serif; --f-body: 'IBM Plex Sans Arabic', sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--night); font-family: var(--f-body); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; color: var(--char); margin: 0; line-height: 1.22; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }
.label { font-family: var(--f-label); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--copper-dk); direction: ltr; unicode-bidi: isolate; align-self: flex-start; }
.threshold { display: block; width: 64px; height: 3px; background: var(--copper); transform-origin: right; }
html[dir="ltr"] .threshold { transform-origin: left; }
.mute { color: var(--mute); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; font-size: 15px; font-weight: 500; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px 999px 0 0; transform: translateY(101%); transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn--copper { background: var(--copper); color: var(--char); }
.btn--copper::before { background: var(--char); }
.btn--copper:hover { color: var(--sand); }
.btn--dark { background: var(--char); color: var(--sand); }
.btn--dark::before { background: var(--copper); }
.btn--dark:hover { color: var(--char); }
.link { position: relative; font-size: 15px; padding-bottom: 3px; }
.link::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
html[dir="ltr"] .link::after { transform-origin: right; }
.link:hover::after { transform: scaleX(0); }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, backdrop-filter .4s; }
.header.is-scrolled { background: rgba(242, 238, 230, .86); backdrop-filter: blur(14px); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 22px; height: auto; }
.brand img { width: 92px; height: auto; }
.nav { display: flex; gap: 34px; font-size: 15px; }
.nav a { position: relative; padding: 4px 0; color: var(--night); }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--copper); transform: scaleX(0); transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__end { display: flex; align-items: center; gap: 14px; }
.lang { font-family: var(--f-label); font-size: 12px; letter-spacing: .14em; border: 1px solid var(--line); background: transparent; color: var(--night); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: border-color .3s; }
.lang:hover { border-color: var(--char); }
html[lang="en"] .lang { font-family: var(--f-body); letter-spacing: 0; }
.header .btn { padding: 11px 22px; font-size: 14px; }
.progress { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: right; }
html[dir="ltr"] .progress { transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 12px 10px; }
.burger span { display: block; height: 2px; background: var(--char); margin: 6px 0; transition: transform .4s var(--ease); }

/* ---------- arch drawing (the signature) ---------- */
.draw path, .draw line, .draw rect { stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw.is-in path, .draw.is-in line, .draw.is-in rect { animation: draw 1.8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms + var(--d, 0ms)); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* arch window that opens from the threshold up */
.arch-open { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); transition: clip-path 1.6s var(--ease); transition-delay: var(--d, 0ms); }
.arch-open.is-in { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
.arch-open > .mock { transform: scale(1.18); transition: transform 2.2s var(--ease); transition-delay: var(--d, 0ms); }
.arch-open.is-in > .mock { transform: scale(1); }

/* text rise */
.rise { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.rise.is-in { opacity: 1; transform: none; filter: none; }
.grow { transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.grow.is-in { transform: scaleX(1); }

/* row of arches used as a section divider */
.arch-row { display: block; width: 100%; height: 56px; color: var(--copper); }
.arch-row path { stroke: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 140px 0 72px; display: flex; align-items: center; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 96px); line-height: 1.15; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: block; transform: translateY(105%); transition: transform 1.3s var(--ease); transition-delay: var(--d, 0ms); }
.hero h1.is-in .line > span { transform: none; }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); max-width: 34em; }
.hero__ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__art { position: relative; aspect-ratio: 520 / 640; width: 100%; max-width: 520px; justify-self: center; will-change: transform; }
.hero__art > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__window { position: absolute; inset: 22% 22% 0; background: var(--char); overflow: hidden; }
.hero__sym { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); width: 15%; opacity: 0; transition: opacity 1s var(--ease) 2.2s; }
.hero__sym.is-in { opacity: 1; }
.scroll-cue { position: absolute; bottom: 28px; inset-inline-start: 50%; transform: translateX(50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-label); font-size: 10px; letter-spacing: .3em; color: var(--mute); }
html[dir="ltr"] .scroll-cue { transform: translateX(-50%); }
.scroll-cue i { display: block; width: 1px; height: 44px; background: linear-gradient(var(--copper), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* mock "screens" shown inside arch windows until real work exists */
.mock { position: absolute; inset: 0; background: linear-gradient(165deg, #3A3532, var(--char) 72%); }
.mock::before { content: ""; position: absolute; top: 32%; inset-inline: 16%; height: 96px; background:
  linear-gradient(var(--sand) 0 0) right 0 top 0 / 72% 11px no-repeat,
  linear-gradient(var(--sand) 0 0) right 0 top 22px / 52% 11px no-repeat,
  linear-gradient(#6B645B 0 0) right 0 top 50px / 84% 6px no-repeat,
  linear-gradient(#6B645B 0 0) right 0 top 64px / 66% 6px no-repeat,
  linear-gradient(var(--copper) 0 0) right 0 top 84px / 32% 12px no-repeat; border-radius: 4px; opacity: .9; }
html[dir="ltr"] .mock::before { background-position: left 0 top 0, left 0 top 22px, left 0 top 50px, left 0 top 64px, left 0 top 84px; }
.mock::after { content: ""; position: absolute; inset: auto 0 0; height: 26%; background: rgba(232, 226, 214, .1); }
.mock--copper { background: linear-gradient(165deg, #C9874E, var(--copper) 60%, #9C5F2C); }
.mock--copper::before { background:
  linear-gradient(var(--char) 0 0) right 0 top 0 / 64% 11px no-repeat,
  linear-gradient(var(--char) 0 0) right 0 top 22px / 44% 11px no-repeat,
  linear-gradient(rgba(27,26,25,.45) 0 0) right 0 top 50px / 80% 6px no-repeat,
  linear-gradient(rgba(27,26,25,.45) 0 0) right 0 top 64px / 60% 6px no-repeat,
  linear-gradient(var(--sand) 0 0) right 0 top 84px / 30% 12px no-repeat; }
.mock--sand { background: linear-gradient(165deg, #FBF8F2, var(--sand-2)); }
.mock--sand::before { background:
  linear-gradient(var(--char) 0 0) right 0 top 0 / 70% 11px no-repeat,
  linear-gradient(var(--char) 0 0) right 0 top 22px / 50% 11px no-repeat,
  linear-gradient(#B7AEA2 0 0) right 0 top 50px / 84% 6px no-repeat,
  linear-gradient(#B7AEA2 0 0) right 0 top 64px / 62% 6px no-repeat,
  linear-gradient(var(--copper) 0 0) right 0 top 84px / 30% 12px no-repeat; }
.mock--burg { background: linear-gradient(165deg, #5A1A26, var(--burg) 70%); }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section--dark { background: var(--char); color: #C9C1B6; }
.section--dark h2, .section--dark h3 { color: var(--sand); }
.section__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section__head h2 { font-size: clamp(36px, 4.4vw, 64px); }

/* statement: words light up as you scroll */
.statement { font-family: var(--f-head); font-weight: 700; font-size: clamp(30px, 4.2vw, 62px); line-height: 1.45; color: var(--char); max-width: 22em; }
html[lang="en"] .statement { font-weight: 500; }
.statement .w { opacity: .14; transition: opacity .35s linear; }
.statement .w.on { opacity: 1; }

/* services rows */
.rows { border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 90px 1fr 1.1fr 40px; gap: 32px; align-items: center; padding: 38px 28px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: color .6s var(--ease); }
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--char); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: translateY(101%); transition: transform .8s var(--ease), border-radius .8s var(--ease); }
.row:hover::before { transform: none; border-radius: 0; }
.row:hover, .row:hover h3 { color: var(--sand); }
.row__n { font-family: var(--f-label); font-size: 14px; color: var(--copper); direction: ltr; }
.row h3 { font-size: clamp(30px, 3.4vw, 50px); transition: color .6s var(--ease); }
.row p { color: inherit; opacity: .8; }
.row__arrow { font-size: 22px; color: var(--copper); transition: transform .6s var(--ease); }
.row:hover .row__arrow { transform: translateX(-8px); }
html[dir="ltr"] .row:hover .row__arrow { transform: translateX(8px); }
html[dir="ltr"] .row__arrow { transform: scaleX(-1); }
html[dir="ltr"] .row:hover .row__arrow { transform: scaleX(-1) translateX(-8px); }

/* work cards */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: end; }
.work--page { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(48px, 6vw, 88px); }
.card { display: flex; flex-direction: column; gap: 18px; }
.card__frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.card:nth-child(2) .card__frame { aspect-ratio: 3 / 4.6; }
.work--page .card:nth-child(2) .card__frame { aspect-ratio: 3 / 4; }
.work--page .card:nth-child(even) { margin-top: 120px; }
.card__frame .mock { transition: transform 1.4s var(--ease); }
.card__shot { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card:hover .card__frame .mock { transform: scale(1.05); }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__meta h3 { font-size: 26px; }
.card__meta span { font-size: 14px; color: var(--mute); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.step { display: flex; flex-direction: column; gap: 16px; }
.step__arch { position: relative; width: 84px; height: 104px; }
.step__arch svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.step__arch b { position: absolute; inset: 34px 0 0; text-align: center; font-family: var(--f-head); font-size: 34px; color: var(--sand); }
.section:not(.section--dark) .step__arch b { color: var(--char); }
.step h3 { font-size: 28px; }

/* CTA */
.cta { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; padding: clamp(110px, 12vw, 170px) 24px clamp(60px, 7vw, 100px); max-width: 860px; margin-inline: auto; }
.cta > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--copper); }
.cta h2 { font-size: clamp(42px, 5.6vw, 84px); position: relative; }
.cta p { position: relative; max-width: 30em; }
.cta .btn { position: relative; }

/* page hero (inner pages) */
.page-hero { padding: 180px 0 80px; position: relative; }
.page-hero h1 { font-size: clamp(48px, 6.8vw, 104px); max-width: 12em; }
.page-hero .hero__lead { margin-top: 26px; }

/* services page */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(56px, 7vw, 100px) 0; border-top: 1px solid var(--line); }
.svc:nth-of-type(even) .svc__art { order: -1; }
.svc__copy { display: flex; flex-direction: column; gap: 22px; }
.svc__copy h2 { font-size: clamp(40px, 4.6vw, 68px); }
.svc ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.svc li { display: flex; gap: 14px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.svc li::before { content: ""; flex: 0 0 auto; width: 10px; height: 12px; border: 1.5px solid var(--copper); border-bottom: 0; border-radius: 5px 5px 0 0; transform: translateY(1px); }
.svc__art { position: relative; aspect-ratio: 4 / 5; max-width: 460px; width: 100%; justify-self: center; }
.svc__art .arch-open { position: absolute; inset: 0; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.price b { font-family: var(--f-head); font-size: 34px; color: var(--char); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 30px; }
.contact__item { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact__item a, .contact__item span.v { font-family: var(--f-head); font-size: 28px; color: var(--char); direction: ltr; unicode-bidi: isolate; align-self: flex-start; }
.form { display: grid; gap: 26px; background: #FFFDF9; border: 1px solid var(--line); border-radius: 220px 220px 24px 24px; padding: clamp(90px, 9vw, 130px) clamp(26px, 4vw, 56px) clamp(32px, 4vw, 52px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--mute); }
.field input, .field select, .field textarea { font: inherit; color: var(--char); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; outline: none; transition: border-color .3s; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); }
.field textarea { resize: vertical; min-height: 110px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--night); cursor: pointer; transition: all .3s; }
.chips input:checked + label { background: var(--char); color: var(--sand); border-color: var(--char); }
.chips input:focus-visible + label { outline: 2px solid var(--copper); outline-offset: 2px; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form__note { font-size: 14px; color: var(--copper-dk); min-height: 1.5em; }

/* ---------- footer ---------- */
.footer { background: var(--char); color: #9C948A; padding: 90px 0 36px; box-shadow: 0 -2px 0 var(--char); position: relative; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid #34302D; }
.footer__brand { display: flex; align-items: center; gap: 28px; }
.footer__brand img { width: 220px; }
.footer__brand svg { width: 56px; }
.footer__cols { display: flex; gap: 64px; font-size: 15px; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols a:hover { color: var(--sand); }
.footer__cols .label { color: var(--copper); margin-bottom: 6px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; font-size: 13px; flex-wrap: wrap; }

/* ---------- page curtain (door transition) ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--char); display: flex; align-items: center; justify-content: center; pointer-events: none; clip-path: inset(0 0 0 0 round 0); transition: clip-path 1.1s var(--ease); }
.curtain svg { width: 54px; opacity: 1; transition: opacity .4s; }
.curtain.is-open { clip-path: inset(0 0 100% 0 round 0 0 50vw 50vw); }
.curtain.is-open svg { opacity: 0; }
.curtain.is-closing { transition: none; clip-path: inset(100% 0 0 0 round 50vw 50vw 0 0); }
.curtain.is-closing.go { transition: clip-path .8s var(--ease); clip-path: inset(0 0 0 0 round 0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav, .header .btn { display: none; }
  .burger { display: block; }
  .nav.is-open { display: flex; position: fixed; inset: 84px 0 auto; flex-direction: column; gap: 0; background: var(--sand); padding: 12px var(--pad) 28px; border-bottom: 1px solid var(--line); }
  .nav.is-open a { font-family: var(--f-head); font-size: 30px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open a::after { display: none; }
  .hero__grid, .svc, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__art { max-width: 270px; }
  .svc:nth-of-type(even) .svc__art { order: 0; }
  .svc__art { max-width: 340px; }
  .row { grid-template-columns: 50px 1fr 30px; padding: 28px 8px; gap: 16px; }
  .row p { grid-column: 2 / 3; grid-row: 2; }
  .work, .work--page { grid-template-columns: 1fr; }
  .work--page .card:nth-child(even) { margin-top: 0; }
  .card:nth-child(2) .card__frame { aspect-ratio: 3 / 4; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .footer__cols { gap: 40px; flex-wrap: wrap; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .draw path, .draw line, .draw rect { stroke-dashoffset: 0; }
  .statement .w { opacity: 1; }
}
