/* نگارستان زرنقش — site styles */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --lapis-950: #081327;
  --lapis-900: #0d1b33;
  --lapis-800: #12294c;
  --lapis-700: #1a3a6b;
  --lapis-600: #24528f;
  --turq-500: #2a8f9c;
  --turq-400: #46b6c2;
  --turq-100: #e3f1f3;
  --gold-500: #c9a227;
  --gold-400: #dfb94c;
  --gold-200: #f1e2b3;
  --paper: #fbf8f1;
  --paper-2: #f4eee1;
  --white: #ffffff;
  --ink: #18202c;
  --ink-2: #3b4655;
  --muted: #6a7584;
  --line: #e6dfcf;
  --line-dark: rgba(255, 255, 255, .12);

  --shadow-sm: 0 1px 2px rgba(13, 27, 51, .06), 0 2px 8px rgba(13, 27, 51, .05);
  --shadow-md: 0 8px 28px rgba(13, 27, 51, .12);
  --shadow-lg: 0 28px 70px rgba(4, 10, 22, .45);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.3; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.06rem; }
p { margin: 0; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.ltr { direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

/* ================================================================ header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 19, 39, .94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(223, 185, 76, .18);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .75rem; flex: none; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text b { color: #fff; font-size: 1.05rem; font-weight: 700; }
.brand-text small { color: var(--gold-400); font-size: .72rem; opacity: .9; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: .25rem; }
.nav a {
  position: relative; color: #c4cfdd; font-size: .94rem;
  padding: .5rem .9rem; transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; inset-inline: .9rem; bottom: .15rem; height: 2px;
  background: var(--gold-400); border-radius: 2px;
  transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; font-weight: 500; }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }

.header-cta {
  flex: none; display: inline-flex; align-items: center; gap: .5rem;
  color: var(--gold-400); font-weight: 500; font-size: .9rem;
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(223, 185, 76, .45);
  transition: background .2s, color .2s, border-color .2s;
}
.header-cta svg { flex: none; }
.header-cta:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--lapis-900); }

.nav-toggle {
  display: none; margin-inline-start: auto;
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; inset-inline-start: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--lapis-950); padding: .5rem var(--gutter) 1.4rem;
    border-bottom: 1px solid rgba(223, 185, 76, .18);
    transform: translateY(-110%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: .95rem .2rem; font-size: 1rem; border-bottom: 1px solid var(--line-dark); }
  .nav a::after { display: none; }
  .nav a.is-active { color: var(--gold-400); }
}

/* ================================================================ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .65rem 1.45rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }
.btn-gold { background: var(--gold-500); color: var(--lapis-950); font-weight: 700; }
.btn-gold:hover { background: var(--gold-400); box-shadow: 0 8px 22px rgba(201, 162, 39, .3); }
.btn-ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .07); }
.btn-dark { background: var(--lapis-800); color: #fff; }
.btn-dark:hover { background: var(--lapis-700); }
.btn-line { border-color: var(--line); color: var(--lapis-800); background: var(--white); }
.btn-line:hover { border-color: var(--lapis-700); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.link-more {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  color: var(--lapis-700); font-weight: 500; font-size: .94rem;
  padding-bottom: .15rem; border-bottom: 1px solid currentColor;
  transition: color .2s, gap .2s var(--ease);
}
.link-more:hover { color: var(--turq-500); gap: .7rem; }

/* ================================================================ hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--lapis-950); color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
/* girih field: octagon + eight-point star (khatam) */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke-width='1' stroke-linejoin='round'%3E%3Cpath stroke='%23dfb94c' stroke-opacity='.55' d='M29.3 0H70.7L100 29.3V70.7L70.7 100H29.3L0 70.7V29.3Z'/%3E%3Cpath stroke='%23dfb94c' stroke-opacity='.8' d='M84 50 74 60 74 74 60 74 50 84 40 74 26 74 26 60 16 50 26 40 26 26 40 26 50 16 60 26 74 26 74 40Z'/%3E%3Ccircle stroke='%2346b6c2' stroke-opacity='.7' cx='50' cy='50' r='6.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(120% 90% at 20% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 20% 30%, #000 20%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 18% 40%, rgba(42, 143, 156, .22), transparent 70%),
    radial-gradient(40% 50% at 95% 100%, rgba(201, 162, 39, .1), transparent 70%);
}
.hero-grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--gold-400); font-size: .86rem; font-weight: 500; margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--gold-400); flex: none;
}
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero .lead { color: #c9d5e4; font-size: 1.08rem; line-height: 2; max-width: 50ch; }
.hero .actions { margin-top: 2rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  gap: 0; margin: 2.6rem 0 0; padding: 0;
}
.stats > div { padding-inline: 0 1.8rem; margin-inline-end: 1.8rem; border-inline-end: 1px solid var(--line-dark); }
.stats > div:last-child { border: 0; margin: 0; padding: 0; }
.stats dt { font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1.2; }
.stats dt small { color: var(--gold-400); font-size: .7em; margin-inline-start: .1em; }
.stats dd { margin: .35rem 0 0; color: #9fb0c6; font-size: .84rem; }

/* arch slideshow */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero-media { justify-self: center; width: min(100%, 440px); position: relative; isolation: isolate; }
.slider { position: relative; aspect-ratio: 3 / 4; }
/* thin gold outline at an even distance from the arch. It is the outer edge of a
   thick stroke on the photo's own arch path (a stroke is a true offset, unlike a
   scaled copy, which drifts away at the shoulders); the inner half of the ring
   sits under the photo. Same 3:4 box as the slider, so units scale uniformly. */
.arch-line {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: -1;
}
.arch-line rect { fill: rgba(223, 185, 76, .55); }
.slider-frame {
  position: absolute; inset: 0; display: block; width: 100%;
  padding: 0; border: 0; background: var(--lapis-900);
  cursor: zoom-in; overflow: hidden; clip-path: url(#zn-arch);
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active img { animation: zn-drift 8s ease-out both; }
@keyframes zn-drift { from { transform: scale(1.01); } to { transform: scale(1.07); } }

.slide-caption {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  padding: 4rem 1rem 1.1rem; text-align: center; line-height: 1.55;
  background: linear-gradient(to top, rgba(6, 13, 27, .9) 25%, transparent);
}
.slide-caption b { display: block; color: #fff; font-size: .98rem; font-weight: 500; }
.slide-caption span { display: block; color: var(--gold-400); font-size: .78rem; }

.slider-bar {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.3rem;
}
.slider-nav {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  transition: background .2s, border-color .2s, color .2s;
}
.slider-nav:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--lapis-950); }
.slider-dots { display: flex; gap: .55rem; }
.slider-dots button {
  width: 8px; height: 8px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid rgba(223, 185, 76, .6);
  transform: rotate(45deg); transition: background .2s, transform .2s;
}
.slider-dots button[aria-current='true'] {
  background: var(--gold-400); border-color: var(--gold-400); transform: rotate(45deg) scale(1.3);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { width: min(100% - 24px, 300px); }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .stats { justify-content: center; }
}
@media (max-width: 480px) {
  .stats > div { padding-inline-end: 1rem; margin-inline-end: 1rem; }
  .stats dt { font-size: 1.4rem; }
  .stats dd { font-size: .76rem; }
  .hero .actions .btn { flex: 1; }
}

/* ================================================================ services strip */
.services { background: var(--white); border-bottom: 1px solid var(--line); }
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.service-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 2rem 1.6rem;
  border-inline-start: 1px solid var(--line);
}
.service-list li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.service-list li:last-child { padding-inline-end: 0; }
.service-ico {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--turq-100); color: var(--lapis-700);
}
.service-list h3 { color: var(--lapis-800); font-size: 1rem; margin-bottom: .2rem; }
.service-list p { color: var(--muted); font-size: .88rem; line-height: 1.75; }

@media (max-width: 1000px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .service-list li { padding: 1.6rem 1.2rem; }
  .service-list li:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .service-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .service-list { grid-template-columns: 1fr; }
  .service-list li { border-inline-start: 0; padding-inline: 0; padding-block: 1.3rem; }
  .service-list li + li { border-top: 1px solid var(--line); }
}

/* ================================================================ sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--paper-2); }

.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); max-width: 640px; }
.section-head.split {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
}
.section-head.split > div { max-width: 640px; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--turq-500); font-size: .84rem; font-weight: 500; margin-bottom: .55rem;
}
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.section-head h2 { color: var(--lapis-900); margin-bottom: .55rem; }
.section-head p { color: var(--muted); }
@media (max-width: 640px) {
  .section-head.split { flex-direction: column; align-items: flex-start; }
}

/* ================================================================ inner page head */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--lapis-950); color: #fff;
  padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(2.4rem, 5vw, 3.4rem);
}
.page-head::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke-width='1' stroke-linejoin='round'%3E%3Cpath stroke='%23dfb94c' stroke-opacity='.55' d='M29.3 0H70.7L100 29.3V70.7L70.7 100H29.3L0 70.7V29.3Z'/%3E%3Cpath stroke='%23dfb94c' stroke-opacity='.8' d='M84 50 74 60 74 74 60 74 50 84 40 74 26 74 26 60 16 50 26 40 26 26 40 26 50 16 60 26 74 26 74 40Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 110px 110px;
  -webkit-mask-image: linear-gradient(to left, transparent 10%, #000 90%);
  mask-image: linear-gradient(to left, transparent 10%, #000 90%);
}
.crumbs { display: flex; gap: .5rem; font-size: .84rem; color: #8ea0b8; margin-bottom: .8rem; }
.crumbs a:hover { color: var(--gold-400); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .5rem; }
.page-head p { color: #b6c4d6; max-width: 60ch; }

/* ================================================================ filters */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.8rem;
}
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button {
  font-size: .9rem; cursor: pointer; white-space: nowrap;
  padding: .48rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  transition: border-color .2s, background .2s, color .2s;
}
.filters button:hover { border-color: var(--lapis-700); }
.filters button[aria-pressed='true'] {
  background: var(--lapis-800); border-color: var(--lapis-800); color: #fff;
}
.filters .count { opacity: .55; font-size: .85em; margin-inline-start: .35em; }
.result-count { color: var(--muted); font-size: .88rem; flex: none; }

@media (max-width: 760px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(to left, #000 88%, transparent);
    mask-image: linear-gradient(to left, #000 88%, transparent);
  }
  .filters::-webkit-scrollbar { display: none; }
  .result-count { font-size: .82rem; }
}

/* ================================================================ product cards */
.product-grid {
  display: grid; gap: clamp(.8rem, 2vw, 1.4rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1050px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; text-align: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; cursor: pointer; padding: 0;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent;
}
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.badge {
  position: absolute; inset-block-start: .7rem; inset-inline-start: .7rem;
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(8, 19, 39, .72); color: #fff; backdrop-filter: blur(4px);
  font-size: .72rem; padding: .18rem .6rem; border-radius: 999px;
}
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { color: var(--turq-500); font-size: .76rem; font-weight: 500; margin-bottom: .2rem; }
.card-body h3 { color: var(--lapis-900); font-size: 1rem; margin-bottom: .35rem; }
.card-body p {
  color: var(--muted); font-size: .86rem; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 560px) {
  .card-body { padding: .75rem .8rem .9rem; }
  .card-body h3 { font-size: .9rem; }
  .card-body p { display: none; }
}

/* ================================================================ portfolio grid */
.work-grid {
  display: grid; gap: clamp(.5rem, 1.4vw, 1rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1050px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.work {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
  background: var(--paper-2); cursor: zoom-in;
}
.work img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), opacity .4s;
}
.work:hover img, .work:focus-visible img { transform: scale(1.05); }
/* panoramic shots (long signs, friezes) would lose most of the work to a crop */
.work.is-wide img { object-fit: contain; background: var(--lapis-900); }
.work-cap {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  display: flex; flex-direction: column; text-align: start; line-height: 1.5;
  padding: 3rem 1rem .9rem; color: #fff;
  background: linear-gradient(to top, rgba(6, 13, 27, .85), rgba(6, 13, 27, 0));
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--ease);
}
.work-cap b { font-weight: 500; font-size: .92rem; }
.work-cap small { color: var(--gold-400); font-size: .76rem; }
.work:hover .work-cap, .work:focus-visible .work-cap { opacity: 1; transform: none; }
@media (hover: none) {
  .work-cap { opacity: 1; transform: none; padding: 2.2rem .7rem .6rem; }
  .work-cap b { font-size: .8rem; }
  .work-cap small { display: none; }
}

/* home: curated bento */
.bento {
  display: grid; gap: clamp(.5rem, 1.4vw, 1rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 230px);
  grid-template-areas:
    "a a b c"
    "a a b d"
    "e f g g";
}
.bento .work { aspect-ratio: auto; height: 100%; }
.bento .work:nth-child(1) { grid-area: a; }
.bento .work:nth-child(2) { grid-area: b; }
.bento .work:nth-child(3) { grid-area: c; }
.bento .work:nth-child(4) { grid-area: d; }
.bento .work:nth-child(5) { grid-area: e; }
.bento .work:nth-child(6) { grid-area: f; }
.bento .work:nth-child(7) { grid-area: g; }
@media (max-width: 760px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 44vw;
    grid-template-areas: "a a" "a a" "b c" "b d" "e f" "g g";
  }
}

.more-row {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  margin-top: 2.4rem;
}
.more-row .progress {
  width: 180px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden;
}
.more-row .progress i { display: block; height: 100%; background: var(--gold-500); border-radius: 3px; }
.more-row small { color: var(--muted); font-size: .84rem; }

.empty { text-align: center; color: var(--muted); padding: 3rem 0; grid-column: 1 / -1; }

.note {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.4rem; padding: 1.1rem 1.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink-2); font-size: .94rem;
}

/* ================================================================ cta band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--lapis-900); color: #fff;
  padding: clamp(2.8rem, 6vw, 4.2rem) 0;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 120% at 0% 50%, rgba(42, 143, 156, .25), transparent 70%),
    radial-gradient(40% 100% at 100% 0%, rgba(201, 162, 39, .12), transparent 70%);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-inner h2 { color: #fff; margin-bottom: .45rem; }
.cta-inner p { color: #b6c4d6; max-width: 54ch; }
.cta-inner .actions { flex: none; }
@media (max-width: 860px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ================================================================ contact */
.contact-grid {
  display: grid; gap: clamp(1rem, 3vw, 1.8rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: stretch;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.info-card h2 { font-size: 1.25rem; color: var(--lapis-900); margin-bottom: .3rem; }
.info-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li + li { border-top: 1px solid var(--line); }
.info-list a {
  display: flex; align-items: center; gap: .95rem; padding: .95rem 0;
  transition: color .2s;
}
.info-list a:hover .val { color: var(--turq-500); }
.info-list a:hover .go { transform: translateX(-4px); color: var(--turq-500); }
.info-list .ico {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--turq-100); color: var(--lapis-700);
}
.info-list .txt { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.info-list .lbl { font-size: .78rem; color: var(--muted); }
.info-list .val { font-weight: 500; color: var(--lapis-900); font-size: 1.02rem; transition: color .2s; }
.info-list .go { margin-inline-start: auto; color: #b4bcc7; transition: transform .2s var(--ease), color .2s; }

.map-frame {
  border-radius: var(--r-lg); overflow: hidden; min-height: 420px;
  border: 1px solid var(--line); background: var(--white);
}
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ================================================================ footer */
.site-footer { background: var(--lapis-950); color: #94a6bd; font-size: .92rem; }
.footer-grid {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  padding: clamp(2.8rem, 6vw, 4rem) 0 2.4rem;
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; line-height: 1.9; }
.site-footer h4 { color: #fff; font-size: .95rem; font-weight: 500; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--gold-400); }
.footer-social { display: flex; gap: .55rem; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: #cfdbea;
  transition: border-color .2s, color .2s, background .2s;
}
.footer-social a:hover { border-color: var(--gold-400); color: var(--gold-400); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.3rem 0 1.5rem; border-top: 1px solid var(--line-dark);
  font-size: .82rem; color: #6d7f96;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ================================================================ lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(5, 11, 22, .96);
  align-items: center; justify-content: center; padding: 4.5rem 5rem 3.5rem;
}
.lb.is-open { display: flex; animation: lb-in .25s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-figure {
  margin: 0; max-width: min(1200px, 100%); max-height: 100%;
  display: flex; flex-direction: column; gap: .9rem; align-items: center;
}
.lb-figure img {
  max-width: 100%; max-height: calc(100vh - 12rem);
  width: auto; object-fit: contain; border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
}
.lb-caption { color: #c9d5e4; text-align: center; line-height: 1.6; }
.lb-caption b { display: block; color: #fff; font-weight: 500; font-size: 1.04rem; }
.lb-caption span { font-size: .84rem; color: var(--gold-400); }

.lb-btn {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  transition: background .2s, border-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); }
.lb-close { inset-block-start: 1rem; inset-inline-end: 1rem; }
.lb-prev { inset-inline-start: 1.2rem; }
.lb-next { inset-inline-end: 1.2rem; }
.lb-prev, .lb-next { inset-block-start: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute; inset-block-start: 1.6rem; inset-inline-start: 1.4rem;
  color: #8496ad; font-size: .84rem;
}
.lb-thumbs { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.lb-thumbs img {
  width: 54px; height: 54px; object-fit: cover; border-radius: 6px; box-shadow: none;
  cursor: pointer; opacity: .45; border: 2px solid transparent; transition: opacity .2s;
}
.lb-thumbs img:hover { opacity: .85; }
.lb-thumbs img.is-current { opacity: 1; border-color: var(--gold-400); }
@media (max-width: 680px) {
  .lb { padding: 4rem .75rem 5.5rem; }
  .lb-prev, .lb-next { inset-block-start: auto; inset-block-end: 1rem; transform: none; }
  .lb-figure img { max-height: calc(100vh - 13rem); }
}

/* ================================================================ floating call (mobile) */
.fab {
  position: fixed; inset-block-end: 1rem; inset-inline-start: 1rem; z-index: 50;
  display: none; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold-500); color: var(--lapis-950);
  box-shadow: 0 10px 26px rgba(8, 19, 39, .3);
}
@media (max-width: 900px) { .fab { display: flex; } }

/* ================================================================ reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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