:root {
  --bg: #dfdedb;
  --surface: #d3d2ce;
  --ink: #26251e;
  --muted: #45433b;
  --accent: #2456d6;
  --accent-deep: #1b44b3;
  --accent-ink: #ffffff;
  --step-s: 16px;
  --step-b: 17px;
  --step-l: 22px;
  --step-h: clamp(26px, 2.5vw, 36px);
  --step-d: clamp(30px, 4vw, 56px);
  --pad: clamp(20px, 5.5vw, 88px);
  --gap: clamp(16px, 2vw, 28px);
  --font: "Switzer", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-b);
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-weight: 400;
}

[lang="ar"] body { line-height: 1.8; letter-spacing: 0; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
p, li { max-inline-size: 64ch; }
.statement, .hero h1 { max-inline-size: none; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 { font-size: var(--step-d); }
h2 { font-size: var(--step-h); }
h3 { font-size: var(--step-l); }

[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 {
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

img { display: block; max-width: 100%; height: auto; }

.wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--pad);
}

.small { font-size: var(--step-s); color: var(--muted); line-height: 1.5; }
.soft { color: var(--muted); }
.statement { font-size: var(--step-h); line-height: 1.15; letter-spacing: -0.02em; }
[lang="ar"] .statement { letter-spacing: 0; line-height: 1.5; }

/* header */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 22px;
  padding-inline: var(--pad);
  background: var(--bg);
}
.wordmark-link { font-size: 20px; text-decoration: none; letter-spacing: -0.02em; font-weight: 500; }
[lang="ar"] .wordmark-link { letter-spacing: 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; font-size: var(--step-s); }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav .lang { font-weight: 500; }
.bar .btn { font-size: var(--step-s); padding: 10px 16px; }

/* buttons: one shape, square, one fill */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 0;
  padding: 14px 22px;
  font: inherit;
  font-size: var(--step-b);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.hero :focus-visible { outline-color: var(--bg); }

/* hero */
.hero { background: var(--ink); color: var(--bg); }
.hero .wrap {
  min-height: calc(100svh - 92px);
  align-items: end;
  padding-block: 8px 56px;
  row-gap: 40px;
}
.hero .bar { background: var(--ink); color: var(--bg); }
.hero-text { grid-column: 1 / span 6; grid-row: 1; align-self: end; display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(30px, 3.5vw, 50px); }
.hero .lead { font-size: var(--step-l); line-height: 1.35; color: #c4c2b9; }
.hero figure { grid-column: 7 / span 6; grid-row: 1; }
.hero figure img {
  width: 100%;
  height: min(74svh, 720px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 60% 40%;
  transform-origin: 50% 60%;
}

/* intro */
.intro { padding-block: clamp(96px, 11vw, 160px); background: var(--surface); }
.intro .wrap > .statement { grid-column: 1 / span 9; }
.intro .wrap > .facts { grid-column: 1 / span 5; grid-row: 2; margin-block-start: 56px; display: grid; gap: 14px; font-size: var(--step-b); }
.intro .facts li { max-inline-size: 36ch; }

/* projects: scattered photographs */
.work { padding-block: clamp(96px, 10vw, 150px) 40px; }
.work .wrap > h2 { grid-column: 1 / span 6; }
.work .wrap > .caption { grid-column: 1 / span 7; margin-block: 18px 0; }
.work .item { display: grid; gap: 12px; margin-block-start: clamp(110px, 16vh, 200px); }
.work .item img { width: 100%; object-fit: cover; }
.work .item .name { font-size: var(--step-s); color: var(--muted); }
.work .item p.desc { font-size: var(--step-b); }
.work .item--a { grid-column: 1 / span 6; }
.work .item--a img { aspect-ratio: 3 / 2; }
.work .item--b { grid-column: 8 / span 5; margin-block-start: 80px; }
.work .item--b img { aspect-ratio: 4 / 5; }
.work .item--c { grid-column: 3 / span 7; }
.work .item--c img { aspect-ratio: 16 / 9; }
.work .item--d { grid-column: 1 / span 5; }
.work .item--d img { aspect-ratio: 4 / 5; }
.work .item--e { grid-column: 6 / span 7; }
.work .item--e img { aspect-ratio: 16 / 10; }
.work .item--f { grid-column: 2 / span 4; }
.work .item--f img { aspect-ratio: 1 / 1; }

/* process: one photograph beside four stages */
.process { padding-block: clamp(96px, 10vw, 150px); }
.process .wrap > h2 { grid-column: 1 / -1; margin-block-end: 64px; }
.row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 56px;
  align-items: start;
}
.row > article:first-child { grid-column: 1 / span 5; grid-row: 1 / span 4; display: grid; gap: 18px; }
.row > article:not(:first-child) { grid-column: 7 / span 6; display: grid; gap: 14px; }
.row > article:first-child h3 { margin-block-start: 6px; }
.row > article img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.row > article p { font-size: var(--step-b); }
.row > article h3 { font-weight: 500; }

/* prices */
.prices { padding-block: clamp(96px, 10vw, 150px); }
.prices .wrap > h2 { grid-column: 1 / span 4; }
.menu { grid-column: 6 / span 7; display: grid; gap: 0; }
.menu .group { margin-block-start: 48px; display: grid; gap: 22px; }
.menu .group:first-child { margin-block-start: 0; }
.menu .group h3 { font-weight: 500; }
.menu .item { display: grid; gap: 6px; }
.menu .row-line { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-size: var(--step-l); font-variant-numeric: tabular-nums; }
.menu .row-line span:last-child { text-align: end; white-space: nowrap; }
.menu .item p { font-size: var(--step-b); color: var(--muted); max-inline-size: 36ch; }
.menu .note { margin-block-start: 48px; font-size: var(--step-b); }

.estimate { grid-column: 6 / span 7; margin-block-start: 96px; background: var(--surface); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.estimate h3 { font-weight: 500; }
.estimate .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.estimate .fields .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: var(--step-s); color: var(--muted); }
input, select, textarea {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: var(--step-b);
}
textarea { min-block-size: 110px; resize: vertical; }
.result { font-size: var(--step-l); line-height: 1.35; min-block-size: 3em; }
.result small { display: block; font-size: var(--step-s); color: var(--muted); margin-block-start: 8px; }
.estimate .btn { justify-self: start; }
.fallback { font-size: var(--step-s); color: var(--muted); }

/* faq */
.faq { padding-block: clamp(96px, 10vw, 150px); background: var(--surface); }
.faq .wrap > h2 { grid-column: 1 / span 5; }
.faq .facts-list { grid-column: 1 / span 4; margin-block-start: 40px; display: grid; gap: 12px; font-size: var(--step-b); }
.faq .qa { grid-column: 7 / span 6; display: grid; gap: 28px; }
.faq details summary {
  cursor: pointer;
  font-size: var(--step-l);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  line-height: 1.3;
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after { content: "+"; font-size: var(--step-l); line-height: 1; flex: 0 0 auto; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-block-start: 14px; font-size: var(--step-b); color: var(--muted); max-inline-size: 52ch; }

/* contact */
.contact { padding-block: clamp(140px, 16vw, 220px) clamp(120px, 12vw, 180px); }
.contact input, .contact select, .contact textarea { background: var(--surface); }
.contact .wrap > .statement { grid-column: 1 / span 5; }
.contact .side { grid-column: 7 / span 6; display: grid; gap: 40px; align-content: start; }
.contact .links { display: grid; gap: 14px; font-size: var(--step-l); }
.contact .links a { width: max-content; }
.contact .links .primary { font-weight: 500; }
.contact .place { font-size: var(--step-b); color: var(--muted); }
.contact form { display: grid; gap: 14px; }
.contact form h3 { font-weight: 500; }
.contact form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.contact form .wide { grid-column: 1 / -1; }
.contact form .btn { justify-self: start; }
.contact form .fine { font-size: var(--step-s); color: var(--muted); }

/* footer */
.foot { padding-block: 64px 0; background: var(--bg); }
.foot .cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; }
.foot .cols > div:nth-child(1) { grid-column: 1 / span 4; }
.foot .cols > div:nth-child(2) { grid-column: 6 / span 3; }
.foot .cols > div:nth-child(3) { grid-column: 9 / span 4; }
.foot ul { display: grid; gap: 10px; font-size: var(--step-b); }
.foot .credits { grid-column: 1 / -1; font-size: var(--step-s); color: var(--muted); display: grid; gap: 6px; }
.foot .credits li { max-inline-size: 64ch; overflow-wrap: anywhere; }
.wordmark {
  grid-column: 1 / -1;
  font-size: clamp(44px, 11.2vw, 210px);
  min-width: 0;
  max-width: 100%;
  line-height: 0.8;
  letter-spacing: -0.05em;
  margin-block: 56px 28px;
  white-space: nowrap;
  overflow: hidden;
}
[lang="ar"] .wordmark { letter-spacing: 0; line-height: 1; }
.legal { grid-column: 1 / -1; font-size: var(--step-s); color: var(--muted); padding-block-end: 28px; }

/* motion: content is visible unless the script runs; reduced motion keeps content, drops travel */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero figure img { animation: settle 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.drift { will-change: transform; }
@media (max-width: 900px) { .drift { transform: none !important; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }

@media (max-width: 900px) {
  .row > article:first-child, .row > article:not(:first-child) { grid-column: 1 / -1; grid-row: auto; }
  .row > article:first-child img { aspect-ratio: 4 / 4.4; }
  .hero-text, .hero figure { grid-column: 1 / -1; }
  .hero figure { grid-row: 1; }
  .hero-text { grid-row: 2; }
  .hero figure img { height: auto; aspect-ratio: 4 / 4.4; }
  .hero .wrap { min-height: 0; padding-block: 8px 56px; }
  .intro .wrap > .statement, .intro .wrap > .facts { grid-column: 1 / -1; }
  .work .wrap > h2, .work .wrap > .caption { grid-column: 1 / -1; }
  .work .item--a, .work .item--b, .work .item--c, .work .item--d, .work .item--e, .work .item--f { grid-column: 1 / -1; }
  .work .item--a { width: 100%; }
  .work .item--b { width: 72%; justify-self: end; }
  .work .item--c { width: 92%; justify-self: start; }
  .work .item--d { width: 80%; justify-self: end; }
  .work .item--e { width: 100%; }
  .work .item--f { width: 60%; justify-self: start; }
  .prices .wrap > h2, .menu, .estimate, .faq .wrap > h2, .faq .facts-list, .faq .qa, .contact .wrap > .statement, .contact .side { grid-column: 1 / -1; }
  .menu { margin-block-start: 40px; }
  .faq .facts-list { margin-block-start: 24px; }
  .faq .qa { margin-block-start: 40px; }
  .contact .side { margin-block-start: 48px; }
  .foot .cols > div { grid-column: 1 / -1 !important; }
}

@media (max-width: 560px) {
  .statement { font-size: 24px; }
  .estimate .fields, .contact form .fields { grid-template-columns: 1fr; }
  .menu .row-line { font-size: var(--step-b); }
  .bar { padding-block: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero figure img { animation: none; }
  .drift { transform: none !important; }
  .btn { transition: none; }
}
