@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Markazi Text";
  src: url("fonts/markazi-text-arabic-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Markazi Text";
  src: url("fonts/markazi-text-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d5;
  --ink: #23180f;
  --ink-soft: #5d4d3e;
  --walnut: #3a2618;
  --walnut-deep: #2a1b10;
  --brass: #a07a44;
  --brass-light: #cfae78;
  --line: rgba(35, 24, 15, 0.14);
  --line-light: rgba(244, 239, 230, 0.16);

  --serif: "Markazi Text", "Vazirmatn", serif;
  --sans: "Vazirmatn", Tahoma, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 11vw, 9rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.95;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
p { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }

::selection { background: var(--walnut); color: var(--paper); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--walnut);
  color: var(--paper);
  padding: .5rem 1rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--brass);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

/* Header */
.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.brand svg { width: 1.6rem; height: auto; color: var(--brass); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  padding-top: .2rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  font-size: .9375rem;
  color: var(--ink-soft);
}
.nav a { position: relative; padding-block: .25rem; transition: color .25s; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .55rem 1.5rem;
  border: 1px solid var(--walnut);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn-solid { background: var(--walnut); color: var(--paper); }
.btn-solid:hover { background: var(--walnut-deep); }
.btn-ghost { color: var(--walnut); background: transparent; }
.btn-ghost:hover { background: var(--walnut); color: var(--paper); }
.nav .btn { min-height: 2.6rem; padding-inline: 1.15rem; color: var(--walnut); }
.nav .btn:hover { color: var(--paper); }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 6rem) var(--section); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  line-height: 1.3;
  margin-block: 1.5rem 1.75rem;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .soft { color: var(--brass); font-weight: 500; }
.hero .lead {
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.5rem;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2.25rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-soft);
}
.hero-facts li { display: flex; align-items: center; gap: .6rem; }
.hero-facts li::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
}

.hero-art { margin: 0; }
.arch-frame {
  position: relative;
  aspect-ratio: 400 / 540;
  border-radius: 999px 999px 0 0;
  background: var(--walnut);
  color: var(--brass-light);
  overflow: hidden;
  box-shadow: 0 2.5rem 4rem -2.5rem rgba(42, 27, 16, .55);
}
.arch-frame .grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch-frame .panel {
  position: absolute;
  inset: 9% 9% 7%;
  border-radius: 999px 999px 2px 2px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .35),
    inset 2px 3px 0 rgba(255, 236, 205, .07),
    inset -3px -4px 10px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(255, 236, 205, .06);
}
.arch-frame .pull {
  position: absolute;
  inset-inline-end: 5%;
  top: 46%;
  width: .45rem;
  height: 22%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a6a3a, #e6c891 45%, #a8854f 70%, #6f5229);
  box-shadow: -3px 4px 8px rgba(0, 0, 0, .45);
}

/* Drawings */
.drawing { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.drawing * { vector-effect: non-scaling-stroke; }
.drawing .fine { stroke-opacity: .5; }
.drawing .faint { stroke-opacity: .28; }
.drawing text {
  fill: currentColor;
  stroke: none;
  font-family: var(--sans);
  font-size: 11px;
  opacity: .75;
}

/* Statement */
.statement {
  padding-block: var(--section);
  border-block: 1px solid var(--line);
  text-align: center;
}
.statement .mark { width: 2.25rem; margin: 0 auto 2rem; color: var(--brass); }
.statement p {
  max-width: 46rem;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  font-weight: 500;
  line-height: 1.6;
  text-wrap: balance;
}

/* Section heads */
.section { padding-block: var(--section); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2,
.services h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.25;
  margin-top: .75rem;
}
.section-head p { max-width: 26rem; color: var(--ink-soft); }

/* Services */
.services .wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.services-intro { position: sticky; top: 2.5rem; }
.services-intro p { margin-top: 1.5rem; max-width: 22rem; color: var(--ink-soft); }
.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0 1.5rem;
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--line);
}
.service .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--brass);
  line-height: 1.5;
}
.service h3 {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.4;
}
.service p { margin-top: .5rem; color: var(--ink-soft); max-width: 34rem; }

/* Gallery */
.gallery-section { background: var(--paper-2); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.work { display: flex; flex-direction: column; }
.work:first-child { grid-row: span 2; }
.plate {
  position: relative;
  flex: 1;
  min-height: 15rem;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.plate.dark { background: var(--walnut); color: var(--brass-light); }
.work:first-child .plate { border-radius: 999px 999px 0 0; }
.plate svg {
  width: 100%;
  height: 100%;
  max-height: 22rem;
  transition: transform .9s cubic-bezier(.2, .7, .1, 1);
}
.work:first-child .plate svg { max-height: 34rem; }
.work:hover .plate svg { transform: scale(1.035); }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
}
.work h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.4; }
.work .tag { font-size: .8125rem; color: var(--ink-soft); white-space: nowrap; }
.gallery-more { margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step { padding-top: 1.5rem; border-top: 1px solid var(--walnut); }
.step .num {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 1.25rem;
}
.step h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.4; }
.step p { margin-top: .5rem; font-size: .975rem; color: var(--ink-soft); }

/* Contact */
.contact {
  position: relative;
  background: var(--walnut);
  color: var(--paper);
  padding-block: var(--section);
  overflow: hidden;
  isolation: isolate;
}
.contact-arches {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 0;
  width: min(62rem, 140%);
  transform: translateX(-50%);
  color: var(--brass-light);
  opacity: .22;
  z-index: -1;
}
[dir="rtl"] .contact-arches { transform: translateX(50%); }
.contact .wrap { text-align: center; }
.contact .eyebrow { color: var(--brass-light); }
.contact h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 1.25rem auto 1.25rem;
  max-width: 44rem;
  text-wrap: balance;
}
.contact p { max-width: 32rem; margin-inline: auto; color: rgba(244, 239, 230, .72); }
.ig-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  margin-top: 3rem;
}
.ig-link .btn {
  min-height: 3.5rem;
  padding-inline: 2rem;
  font-size: 1rem;
  background: var(--brass-light);
  border-color: var(--brass-light);
  color: var(--walnut-deep);
}
.ig-link:hover .btn { background: var(--paper); border-color: var(--paper); }
.ig-handle {
  font-family: var(--sans);
  font-size: .9375rem;
  letter-spacing: .02em;
  color: rgba(244, 239, 230, .6);
}

/* Footer */
.site-footer {
  background: var(--walnut-deep);
  color: rgba(244, 239, 230, .6);
  font-size: .875rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 2rem;
}
.site-footer .brand-name { font-size: 1.4rem; color: var(--paper); }
.site-footer a:hover { color: var(--paper); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 26rem; width: 100%; margin-inline: auto; }
  .services .wrap { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .work:first-child { grid-column: span 2; grid-row: auto; }
  .work:first-child .plate { min-height: 30rem; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .brand-name { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: 1fr; }
  .work:first-child { grid-column: auto; }
  .work:first-child .plate { min-height: 26rem; }
  .steps { grid-template-columns: 1fr; }
  .service { grid-template-columns: 2.75rem 1fr; gap: 0 1rem; }
  .service h3 { font-size: 1.6rem; }
  .hero-art figcaption { flex-direction: column; gap: 0; }
}
