:root {
  /* palette: logo blue and its tints/shades only */
  --blue: #2F35D6;
  --blue-deep: #1E24A8;
  --blue-900: #0B0D3D;
  --blue-700: #1A1F85;
  --blue-400: #5C63E3;
  --blue-300: #8D92EE;
  --blue-200: #B9BDF6;
  --blue-100: #DDE0FB;
  --blue-50: #F0F1FE;
  --ink: var(--blue-900);
  --white: #FFFFFF;
  --muted: rgba(11, 13, 61, 0.6);
  --line: rgba(47, 53, 214, 0.18);
  --font: 'Outfit', system-ui, sans-serif;
  --pad: clamp(1rem, 4vw, 2rem);
  --max: min(1440px, calc(100% - 2 * var(--pad)));
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-pad: clamp(4rem, 10vw, 7rem);

  --case-peach: var(--blue-100);
  --case-teal: var(--blue-700);
  --case-sage: var(--blue-200);
  --case-blue: var(--blue);
  --case-cream: var(--blue-300);
  --case-slate: var(--blue-900);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; border: none; background: none; }
button { cursor: pointer; }
ul { list-style: none; }

.shell { width: var(--max); margin-inline: auto; }

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: gap 0.25s var(--ease);
}

.link-arrow:hover { gap: 0.6rem; color: var(--blue); }

/* ═══ NAV ═══ */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  padding: 1rem var(--pad);
  pointer-events: none;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.site-nav__logo {
  height: clamp(36px, 5vw, 48px);
  width: auto;
  display: block;
}

.site-nav__logo-link { display: block; line-height: 0; }

.nav-menu-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.25s var(--ease), background 0.25s;
}

.nav-menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-menu-btn.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--pad) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.nav-panel.is-open { opacity: 1; visibility: visible; }

.nav-panel__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-panel__links a {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  padding: 0.35rem 0;
  transition: color 0.2s, transform 0.3s var(--ease);
}

.nav-panel__links a:hover { color: var(--blue); transform: translateX(0.5rem); }

.nav-panel__meta {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ═══ HERO ═══ */
.main-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
}

.main-hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.canvas-card {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(11, 13, 61, 0.12);
  will-change: transform;
}

.canvas-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.canvas-card:nth-child(1) { width: 18vw; min-width: 100px; left: 5%; top: 12%; }
.canvas-card:nth-child(2) { width: 14vw; min-width: 80px; left: 18%; top: 28%; }
.canvas-card:nth-child(3) { width: 16vw; min-width: 90px; right: 8%; top: 10%; }
.canvas-card:nth-child(4) { width: 12vw; min-width: 70px; right: 22%; top: 35%; }
.canvas-card:nth-child(5) { width: 15vw; min-width: 85px; left: 8%; bottom: 18%; }
.canvas-card:nth-child(6) { width: 13vw; min-width: 75px; right: 12%; bottom: 22%; }
.canvas-card:nth-child(7) { width: 11vw; min-width: 65px; left: 35%; top: 8%; }
.canvas-card:nth-child(8) { width: 10vw; min-width: 60px; right: 35%; bottom: 12%; }

.main-hero__heading {
  position: relative;
  z-index: 2;
  font-size: clamp(4rem, 18vw, 14rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-align: center;
  color: var(--ink);
}

.main-hero__logo {
  position: relative;
  z-index: 2;
  width: min(85vw, 900px);
  height: auto;
  filter: none;
}

.scroll-pill {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.65rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.scroll-pill:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 13, 61, 0.08);
}

/* ═══ WORD TICKER ═══ */
.word-ticker {
  padding: clamp(3rem, 8vw, 5rem) var(--pad);
  text-align: center;
  background: var(--white);
}

.word-ticker__line {
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.word-ticker__brand { font-weight: 700; }

.word-ticker__phrase {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  min-width: 12ch;
  transition: opacity 0.3s var(--ease);
}

.word-ticker__phrase.is-fading { opacity: 0; }

/* ═══ SECTIONS ═══ */
.section { padding-block: var(--section-pad); }

.section.is-dark {
  background: var(--ink);
  color: var(--white);
}

.section.is-dark .section-label { color: rgba(255, 255, 255, 0.5); }
.section.is-dark .link-arrow { color: var(--white); }
.section.is-dark .link-arrow:hover { color: var(--blue-200); }

.section.is-light { background: var(--white); color: var(--ink); }

.intro-block {
  max-width: 52rem;
}

.intro-block p {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 42rem;
  line-height: 1.65;
}

.intro-block .link-arrow { margin-top: 2rem; color: var(--white); }

/* ═══ CASE CARDS ═══ */
.cases-section { padding-bottom: clamp(2rem, 6vw, 4rem); }

.cases-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
}

.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  min-height: clamp(280px, 45vw, 420px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: sticky;
  top: calc(5.5rem + var(--i, 0) * 0.9rem);
  margin-top: 1.25rem;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 -12px 40px rgba(11, 13, 61, 0.08);
}

.case-card:first-child { margin-top: 0; }

.case-card:hover { box-shadow: 0 -16px 50px rgba(11, 13, 61, 0.16); }
.case-card:hover .case-card__arc img { transform: scale(1.05); }
.case-card__arc img { transition: transform 0.6s var(--ease); }
.case-card__cta {
  position: absolute; top: clamp(2rem, 5vw, 3.5rem); right: clamp(2rem, 5vw, 3.5rem);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor;
  display: grid; place-items: center; font-size: 1.25rem;
  transition: transform 0.3s var(--ease), background 0.25s;
}
.case-card:hover .case-card__cta { transform: rotate(-45deg); background: rgba(255,255,255,0.35); }

.case-card--peach { background: var(--case-peach); color: var(--blue-900); }
.case-card--teal { background: var(--case-teal); color: var(--white); }
.case-card--sage { background: var(--case-sage); color: var(--blue-900); }
.case-card--blue { background: var(--case-blue); color: var(--white); }
.case-card--cream { background: var(--case-cream); color: var(--blue-900); }
.case-card--slate { background: var(--case-slate); color: var(--white); }

.case-card__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.case-tags li {
  padding: 0.35rem 0.85rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

.case-card__arc {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 480px);
  height: clamp(100px, 20vw, 180px);
  background: var(--white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.case-card__arc img {
  width: 85%;
  height: 90%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.5rem 0.5rem 0 0;
}

.projects-cta {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) var(--pad) var(--section-pad);
}

.projects-cta a {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.projects-cta a:hover { color: var(--blue); }

/* ═══ TEAM SLIDER ═══ */
.team-section .section-heading { max-width: 28ch; margin-bottom: 2.5rem; }

.team-slider {
  position: relative;
}

.team-slider__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.team-slider__track::-webkit-scrollbar { display: none; }

.team-card {
  flex: 0 0 min(280px, 75vw);
  scroll-snap-align: start;
}

.team-card__photo {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-size: 1.125rem;
  font-weight: 600;
}

.team-slider__controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.team-slider__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s, border-color 0.2s;
}

.team-slider__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.team-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.team-cta-row a {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s, color 0.2s;
}

.team-cta-row a:hover {
  background: var(--white);
  color: var(--ink);
}

/* ═══ WHY YOU ═══ */
.why-you {
  padding-block: var(--section-pad);
  background: var(--white);
}

.why-you__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.why-you__text {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  max-width: 36ch;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s var(--ease);
}

.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ═══ JOURNAL ═══ */
.journal-section { padding-bottom: var(--section-pad); }

.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.journal-track-wrap { position: relative; }

.journal-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.journal-track::-webkit-scrollbar { display: none; }

.journal-track.is-expanded {
  flex-wrap: wrap;
  overflow: visible;
}

.journal-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.25s;
}

.journal-track.is-expanded .journal-card {
  flex: 1 1 min(280px, calc(33.333% - 0.67rem));
}

.journal-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(47, 53, 214, 0.08);
}

.journal-card__cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.journal-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.journal-card__excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.journal-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
}

.journal-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.journal-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.journal-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

.journal-show-all {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: clamp(3rem, 8vw, 5rem) var(--pad) 0;
}

.site-footer__logo-wrap {
  padding: 0 0 clamp(2rem, 5vw, 3rem);
  line-height: 0;
  display: flex;
  justify-content: center;
}

.site-footer__logo {
  width: min(100%, 1200px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: clamp(2rem, 5vw, 3rem);
}

.site-footer__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.site-footer__contact p,
.site-footer__contact a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.site-footer__contact a:hover { color: var(--white); }

.site-footer__links h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.site-footer__links ul { display: flex; flex-direction: column; gap: 0.35rem; }

.site-footer__links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.site-footer__links a:hover { color: var(--white); }

.newsletter-block {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.newsletter-block h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.newsletter-block > p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
  max-width: 40ch;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

.newsletter-form input {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.35); }

.newsletter-form button {
  padding: 0.85rem 1.5rem;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--blue-deep); }

.form-success-msg {
  padding: 1rem;
  background: rgba(47, 53, 214, 0.2);
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══ PAGE HERO (subpages) ═══ */
.page-hero {
  padding: clamp(7rem, 15vw, 10rem) var(--pad) clamp(2rem, 5vw, 3rem);
  background: var(--white);
}

.page-hero__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-content { padding-bottom: var(--section-pad); }

/* ═══ WORK GRID ═══ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.work-grid .cases-stack { margin-top: 0; }

.case-card.hidden { display: none; }

/* ═══ SERVICES PAGE ═══ */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem 2rem;
  align-items: start;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.service-row:first-child { border-top: 1px solid var(--line); }

.service-row__num {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
}

.service-row__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.service-row__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 42ch;
}

.service-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.service-row__tags li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
}

.purpose-block {
  max-width: 52rem;
}

.purpose-block p {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

/* ═══ BOOKING ═══ */
.book-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 0 var(--pad) var(--section-pad);
  max-width: var(--max);
  margin: 0 auto;
}

.book-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.book-info p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.book-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.book-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.book-step.is-active { color: var(--ink); font-weight: 600; }

.book-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.book-step.is-active .book-step__num {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.book-summary {
  padding: 1rem 1.25rem;
  background: rgba(47, 53, 214, 0.06);
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.book-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2rem);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.calendar-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.calendar-nav,
.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.calendar-nav:hover,
.cal-nav:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

.cal-day:not(.cal-day--empty):not(:disabled):hover { background: rgba(47, 53, 214, 0.1); }

.cal-day.is-selected,
.cal-day--selected {
  background: var(--blue);
  color: var(--white);
}

.cal-day:disabled,
.cal-day--disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-day--today {
  box-shadow: inset 0 0 0 1px var(--blue);
}

.cal-day--empty { pointer-events: none; }

.time-slots { margin-top: 1.5rem; }

.time-slots h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.4rem;
}

.time-slot {
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.15s;
}

.time-slot:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }

.time-slot.is-selected,
.time-slot--selected {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.time-slot:disabled,
.time-slot--taken {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.book-form { margin-top: 1.5rem; }

.book-form .form-field,
.book-form .form-row .form-field { margin-bottom: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.book-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-desc {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.book-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.book-form input,
.book-form textarea,
.book-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.book-form input:focus,
.book-form textarea:focus,
.book-form select:focus {
  outline: none;
  border-color: var(--blue);
}

.book-form textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  padding: 0.85rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-weight: 600;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--blue); }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.show { display: block; }

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.book-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.book-success {
  text-align: center;
  padding: 3rem 1rem;
}

.book-success h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cta-band {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) var(--pad);
}

.cta-band h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

/* ═══ REVEAL ANIMATION BASE ═══ */
.gsap-ready .reveal-up {
  opacity: 0;
  transform: translateY(32px);
}

.gsap-ready .reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .canvas-card:nth-child(n) { width: 22vw; min-width: 60px; }

  .site-footer__grid { grid-template-columns: 1fr; }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .book-layout { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .service-row__tags { justify-content: flex-start; }

  .journal-track.is-expanded .journal-card {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .main-hero__heading { font-size: clamp(3rem, 16vw, 5rem); }

  .canvas-card:nth-child(n) { width: 28vw; min-width: 50px; }

  .case-card { min-height: 260px; top: calc(4.75rem + var(--i, 0) * 0.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-up { opacity: 1; transform: none; }
  .canvas-card { will-change: auto; }
}

/* ═══ IMPROVEMENTS ═══ */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.is-dark :focus-visible, .site-footer :focus-visible, .process-section :focus-visible { outline-color: var(--blue-200); }
::selection { background: var(--blue); color: var(--white); }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 400;
  background: var(--blue); color: var(--white); padding: 0.6rem 1rem;
  border-radius: var(--radius-pill); font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.site-nav { transition: transform 0.45s var(--ease), background 0.3s, padding 0.3s; }
.site-nav.is-hidden { transform: translateY(-110%); }
.site-nav.is-scrolled { background: rgba(255,255,255,0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 0.6rem; }
body.nav-open .site-nav { transform: none; background: transparent; backdrop-filter: none; }
.nav-panel__links a[aria-current="page"] { color: var(--blue); }
.nav-panel__links a { display: flex; align-items: baseline; gap: 1rem; }
.nav-panel__links a small { font-size: 0.8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.nav-menu-btn:hover { transform: scale(1.08); background: var(--blue); }

.main-hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1.75rem; padding-inline: var(--pad); }
.main-hero__logo { width: min(80vw, 880px); }
.main-hero__sub { font-size: clamp(1rem, 2vw, 1.375rem); font-weight: 500; letter-spacing: -0.01em; text-align: center; max-width: 34ch; background: rgba(255,255,255,0.75); backdrop-filter: blur(8px); padding: 0.4rem 1rem; border-radius: var(--radius); }
.main-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn-primary--blue { background: var(--blue); }
.btn-primary--blue:hover { background: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: clamp(2rem, 5vw, 3.5rem); border-block: 1px solid var(--line); }
.stat__num { font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.stat__label { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); font-weight: 500; }

.process-section { background: var(--blue); color: var(--white); }
.process-section .section-label { color: rgba(255,255,255,0.65); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.process-step { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); padding: 1.75rem; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; transition: background 0.3s, transform 0.4s var(--ease); }
.process-step:hover { background: rgba(255,255,255,0.16); transform: translateY(-6px); }
.process-step:nth-child(1) { border-radius: var(--radius-lg) 6rem var(--radius-lg) var(--radius-lg); }
.process-step:nth-child(2) { border-radius: 6rem var(--radius-lg) var(--radius-lg) var(--radius-lg); }
.process-step:nth-child(3) { border-radius: var(--radius-lg) var(--radius-lg) 6rem var(--radius-lg); }
.process-step:nth-child(4) { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 6rem; }
.process-step__num { font-size: 0.875rem; font-weight: 700; opacity: 0.7; }
.process-step h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9375rem; opacity: 0.8; line-height: 1.55; }

.mega-cta { position: relative; overflow: hidden; margin: 0 var(--pad) var(--pad); border-radius: var(--radius-lg); min-height: clamp(360px, 55vw, 560px); display: grid; place-items: center; text-align: center; color: var(--white); isolation: isolate; padding: 2rem var(--pad); }
.mega-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle at 12% 85%, var(--blue-300) 0 9%, transparent 9.2%),
  radial-gradient(circle at 90% 18%, var(--blue-700) 0 7%, transparent 7.2%),
  radial-gradient(circle at 80% 90%, var(--blue-deep) 0 11%, transparent 11.2%),
  radial-gradient(circle at 8% 12%, var(--blue-200) 0 6%, transparent 6.2%),
  var(--blue); }
.mega-cta h2 { font-size: clamp(2rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; max-width: 14ch; margin: 0 auto 1.75rem; }
.mega-cta .btn-primary { background: var(--white); color: var(--ink); }
.mega-cta .btn-primary { color: var(--blue); }
.mega-cta .btn-primary:hover { background: var(--blue-900); color: var(--white); }
.mega-cta + .site-footer { padding-top: clamp(2rem, 5vw, 3rem); }

.journal-card { display: flex; flex-direction: column; }
.journal-card__excerpt { flex: 1; }

.case-card { animation: cardIn 0.5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

.cal-day:disabled, .time-slot:disabled { cursor: not-allowed; }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }

@media (max-width: 900px) {
  .stats, .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stats, .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 200px; }
}

/* duotone: every photo rendered in the logo blue */
.canvas-card, .team-card__photo, .case-card__arc { background: var(--blue); isolation: isolate; }
.canvas-card img, .team-card__photo img, .case-card__arc img { filter: grayscale(1) contrast(1.1) brightness(1.08); mix-blend-mode: multiply; }
.case-card__arc { background: var(--blue-100); }
.case-card__arc img { border-radius: 0.5rem 0.5rem 0 0; }
.team-card__photo { background: var(--blue-300); }
.team-card__photo img { transition: filter 0.4s; }
.process-step:hover, .process-step { color: var(--white); }
.section.is-dark { background: var(--blue-900); }
.site-footer { background: var(--blue-900); }
.btn-primary:hover, .form-submit:hover { background: var(--blue); }

/* hero: light blue tint so the logo stays readable */
.canvas-card { background: var(--blue-200); }
.canvas-card img { filter: grayscale(1) contrast(0.9) brightness(1.2); }
.main-hero__actions .btn-outline { background: var(--white); }
.main-hero__sub { background: var(--white); }

/* ═══════════════════════════════════════════════════════════
   PERSIAN TILE THEME — logo blue + alubalui (sour-cherry) crimson
   patterns: khatam star tile, border strip, mehrab arch frames
   ═══════════════════════════════════════════════════════════ */
:root {
  --cherry: #7A1233;
  --cherry-900: #3F0A1C;
  --cherry-700: #5E0F29;
  --cherry-300: #C0607B;
  --cherry-200: #E3B5C2;
  --cherry-100: #F6E6EB;
  --cherry-50: #FBF3F5;
  --case-peach: var(--cherry-100);
  --case-teal: var(--cherry);
  --case-sage: var(--blue-200);
  --case-blue: var(--blue);
  --case-cream: var(--cherry-200);
  --case-slate: var(--cherry-900);
  --pat-blue: url("../assets/pattern-blue.svg");
  --pat-cherry: url("../assets/pattern-cherry.svg");
  --pat-white: url("../assets/pattern-white.svg");
}

/* lowercase voice */
.section-heading, .page-hero__title, .case-card__title, .mega-cta h2, .why-you__text, .cta-band h2, .service-row__title, .process-step h3 { text-transform: lowercase; }
.section-label, .page-hero__label { color: var(--cherry); }
.is-dark .section-label, .process-section .section-label { color: var(--cherry-200); }

/* floating glass pill nav */
.site-nav.is-scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding-block: 1rem; }
.site-nav__inner.shell {
  width: min(var(--max), 640px);
  margin-inline: auto;
  gap: 0.75rem;
  padding: 0.45rem 0.5rem 0.45rem 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 40px rgba(47, 53, 214, 0.12);
}
.site-nav__logo { height: 34px; }
.site-nav__logo-link { margin-right: auto; }
.nav-cta { padding: 0.6rem 1.25rem; background: var(--blue); color: var(--white); border-radius: var(--radius-pill); font-size: 0.875rem; font-weight: 600; transition: background 0.25s; }
.nav-cta:hover { background: var(--cherry); }
.nav-menu-btn { width: 44px; height: 44px; background: var(--cherry); }
.nav-menu-btn:hover { background: var(--blue); }
.nav-panel { background: var(--cherry-900); color: var(--white); }
.nav-panel__links a:hover, .nav-panel__links a[aria-current="page"] { color: var(--cherry-200); }
.nav-panel__links a small, .nav-panel__meta { color: rgba(255,255,255,0.55); }
.nav-panel::before { content: ""; position: absolute; inset: 0; background: var(--pat-white) center / 80px; opacity: 0.05; pointer-events: none; }
body.nav-open .nav-menu-btn { background: var(--white); }
body.nav-open .nav-menu-btn span { background: var(--cherry-900); }
body.nav-open .nav-cta { display: none; }
body.nav-open .site-nav__inner.shell { background: transparent; border-color: transparent; box-shadow: none; }
body.nav-open .site-nav__logo { filter: brightness(0) invert(1); }

/* hero: tiled field + mehrab (arch) frames */
.main-hero::before { content: ""; position: absolute; inset: 0; background: var(--pat-blue) center / 80px; opacity: 0.14; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 75%); }
.canvas-card, .team-card__photo { border-radius: 999px 999px var(--radius) var(--radius); }
.canvas-card:nth-child(even) { background: var(--cherry-300); }
.team-card:nth-child(even) .team-card__photo { background: var(--cherry-300); }
.main-hero__sub { text-transform: lowercase; border: 1px solid var(--line); }
.btn-primary { background: var(--cherry); }
.btn-primary:hover, .form-submit:hover { background: var(--blue); }
.btn-primary--blue { background: var(--blue); }
.btn-primary--blue:hover { background: var(--cherry); }
.link-arrow:hover { color: var(--cherry); }

/* border strip (hashiye) */
.strip { height: 28px; background-repeat: repeat-x; background-position: center; background-size: 48px 28px; }
.strip--blue { background-image: url("../assets/strip-blue.svg"); }
.strip--cherry { background-image: url("../assets/strip-cherry.svg"); }
.strip--white { background-image: url("../assets/strip-white.svg"); }
.footer-strip { background-color: var(--white); }

/* marquee */
.marquee { background: var(--blue); color: var(--white); overflow: hidden; padding: 1.1rem 0; }
.marquee__track { display: flex; width: max-content; align-items: center; animation: marq 32s linear infinite; font-size: clamp(1.5rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; text-transform: lowercase; }
.marquee__track > * { margin-right: 2rem; white-space: nowrap; }
.marquee__track i { width: 0.7em; height: 0.7em; background: var(--cherry-200); flex: none; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes marq { to { transform: translateX(-25%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* dark sections */
.section.is-dark { background: var(--blue-900); }
#intro.section.is-dark { background: var(--cherry-900); position: relative; overflow: hidden; }
#intro::before { content: ""; position: absolute; inset: 0 0 0 40%; background: var(--pat-white) center / 80px; opacity: 0.07; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
#intro .shell { position: relative; }

/* accordion */
.what-we-do { background: var(--cherry-50); }
.what-we-do .section-heading { max-width: 18ch; }
.acc { margin-top: 2.5rem; border-top: 1px solid var(--cherry); }
.acc__item { border-bottom: 1px solid var(--cherry); }
.acc summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 1.5rem 0; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc__num { color: var(--cherry); font-weight: 700; font-size: 0.875rem; }
.acc__title { font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; transition: color 0.2s, transform 0.3s var(--ease); }
.acc summary:hover .acc__title { color: var(--blue); transform: translateX(0.5rem); }
.acc__icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cherry); position: relative; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--cherry); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc__body { padding: 0 0 2rem 3.5rem; max-width: 50rem; }
.acc__body p { color: var(--muted); margin-bottom: 1rem; line-height: 1.65; }
.acc__body .case-tags li { color: var(--cherry); }

/* case cards */
.case-card--peach, .case-card--cream { color: var(--cherry-900); }
.case-card--teal, .case-card--slate { color: var(--white); }
.case-card--sage { color: var(--blue-900); }
.case-card::before { content: ""; position: absolute; inset: 0; background-image: var(--pat, var(--pat-white)); background-size: 80px; opacity: 0.1; mask-image: linear-gradient(110deg, transparent 35%, #000); -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000); pointer-events: none; }
.case-card--peach, .case-card--cream { --pat: var(--pat-cherry); }
.case-card--sage { --pat: var(--pat-blue); }
.case-card__title, .case-tags { position: relative; }
.case-card--peach .case-card__arc, .case-card--cream .case-card__arc { background: var(--cherry-200); }
.case-card--teal .case-card__arc, .case-card--slate .case-card__arc { background: var(--cherry-300); }

/* process / journal / footer / cta */
.process-section { background: var(--cherry); position: relative; overflow: hidden; }
.process-section::before { content: ""; position: absolute; inset: 0; background: var(--pat-white) center / 80px; opacity: 0.06; pointer-events: none; }
.process-section .shell { position: relative; }
.journal-card { border-color: var(--cherry-200); }
.journal-card:hover { border-color: var(--cherry); box-shadow: 0 12px 40px rgba(122, 18, 51, 0.1); }
.journal-card__cat, .journal-card__link, .journal-show-all, .service-row__num { color: var(--cherry); }
.journal-btn:hover { background: var(--cherry); border-color: var(--cherry); }
.service-row, .service-row:first-child { border-color: var(--cherry-200); }
.service-row__tags li { border-color: var(--cherry-200); color: var(--cherry); }
.filter-pill:hover, .filter-pill.active { background: var(--cherry); border-color: var(--cherry); }
.site-footer { background: var(--cherry-900); position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--pat-white) center / 80px; opacity: 0.04; pointer-events: none; }
.site-footer > * { position: relative; }
.newsletter-form button { background: var(--blue); }
.page-hero { position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: url("../assets/strip-cherry.svg") repeat-x center / 48px 28px; opacity: 0.9; }

.mega-cta { border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 38% 38% var(--radius-lg) var(--radius-lg); padding-top: clamp(4rem, 10vw, 8rem); }
.mega-cta::before { background: radial-gradient(ellipse at center, var(--blue) 0 30%, transparent 72%), var(--pat-white) center / 80px, var(--blue); }

@media (max-width: 600px) {
  .site-nav__inner.shell { width: var(--max); }
  .acc__body { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ═══════════════════════════════════════════════════════════
   REDESIGN v2 — unified tiled paper, vivid alubalui red,
   mehrab (arch) hero, kashi-panel cards
   ═══════════════════════════════════════════════════════════ */
:root {
  --cherry: #C4163F;
  --cherry-900: #5E0A22;
  --cherry-700: #9A0F32;
  --cherry-300: #EE6B88;
  --cherry-200: #F8BCCB;
  --cherry-100: #FDE6EC;
  --cherry-50: #FFF5F8;
  --paper: #FBF8FF;
  --star8: polygon(50% 0, 61% 18%, 85% 15%, 82% 39%, 100% 50%, 82% 61%, 85% 85%, 61% 82%, 50% 100%, 39% 82%, 15% 85%, 18% 61%, 0 50%, 18% 39%, 15% 15%, 39% 18%);
  --lat-blue: url("../assets/lattice-blue.svg");
  --lat-cherry: url("../assets/lattice-cherry.svg");
  --lat-white: url("../assets/lattice-white.svg");
  --sham-blue: url("../assets/shamseh-blue.svg");
  --sham-cherry: url("../assets/shamseh-cherry.svg");
  --sham-white: url("../assets/shamseh-white.svg");
}

/* one continuous tiled paper for the whole site */
body { background: var(--paper); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--pat-blue) center top / 96px; opacity: 0.055; }
.section.is-light, .word-ticker, .why-you, .page-hero, .main-hero, .what-we-do, .journal-section, .cases-section, .projects-cta, .cta-band { background: transparent; }
.footer-strip { background-color: transparent; }
.section.is-dark { background: var(--blue); position: relative; overflow: hidden; }
.section.is-dark::before { content: ""; position: absolute; inset: 0; background: var(--lat-white) center / 64px; opacity: 0.12; pointer-events: none; }
.section.is-dark > .shell { position: relative; }
.section.is-dark .section-label { color: var(--cherry-200); }
.section-label { color: var(--cherry); }
.section-head { margin-bottom: 0; }

/* ───────── HERO: mehrab arch with the logo ───────── */
.main-hero { min-height: 100svh; padding: 7.5rem var(--pad) 5rem; justify-content: flex-start; }
.main-hero::before { content: none; }
.hero-arch { position: relative; z-index: 2; width: min(calc(100vw - 7rem), 580px); margin-inline: auto; }
.hero-arch__inner {
  position: relative; text-align: center; background: var(--white);
  border-radius: 999px 999px 1.5rem 1.5rem;
  padding: clamp(4.5rem, 14vw, 7.5rem) clamp(1.25rem, 5vw, 3rem) 2.75rem;
  box-shadow: 0 0 0 9px var(--paper), 0 0 0 12px var(--blue), 0 0 0 22px var(--paper), 0 0 0 25px var(--cherry), 0 0 0 35px var(--paper), 0 0 0 37px var(--blue), 0 30px 80px rgba(47, 53, 214, 0.18);
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem; overflow: hidden;
}
.hero-arch__inner::before { content: ""; position: absolute; inset: 0; background: var(--pat-blue) center / 80px; opacity: 0.1; mask-image: radial-gradient(ellipse at 50% 30%, transparent 25%, #000 90%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, transparent 25%, #000 90%); pointer-events: none; }
.hero-arch__inner > * { position: relative; }
.hero-star { width: 46px; height: 46px; background: var(--cherry); clip-path: var(--star8); animation: spin 24s linear infinite; }
.hero-arch__title { line-height: 0; width: 100%; }
.main-hero__logo { width: 100%; max-width: 430px; margin-inline: auto; }
.main-hero__sub { background: transparent; border: 0; backdrop-filter: none; padding: 0; max-width: 28ch; font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--blue-900); }
.hero-rosette { position: absolute; z-index: 1; width: clamp(240px, 34vw, 480px); height: auto; pointer-events: none; animation: spin 90s linear infinite; }
.hero-rosette--l { left: -9%; top: 16%; }
.hero-rosette--r { right: -9%; bottom: 6%; animation-direction: reverse; }
.scroll-pill { background: var(--white); }
@keyframes spin { to { rotate: 360deg; } }
@media (max-width: 700px) { .hero-rosette { opacity: 0.35; } .hero-arch { width: calc(100vw - 5.5rem); } }

/* ───────── INTRO: framed kashi panel ───────── */
.intro-section { padding-block: clamp(3rem, 8vw, 6rem); }
.panel-frame { position: relative; text-align: center; background: var(--white); border: 2px solid var(--blue); border-radius: var(--radius-lg); padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 6vw, 5rem); overflow: hidden; }
.panel-frame::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid var(--cherry); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.panel-frame::after { content: ""; position: absolute; inset: 0; background: var(--sham-blue) no-repeat 50% 130% / min(70%, 520px); opacity: 0.07; pointer-events: none; }
.panel-frame > *:not(.panel-star) { position: relative; z-index: 1; }
.panel-frame .section-heading { margin-inline: auto; max-width: 22ch; }
.panel-frame__text { margin: 1.5rem auto 0; max-width: 44ch; font-size: clamp(1rem, 2vw, 1.125rem); color: var(--muted); line-height: 1.65; }
.panel-frame .link-arrow { margin-top: 1.75rem; color: var(--blue); }
.panel-star { position: absolute; width: 28px; height: 28px; background: var(--cherry); clip-path: var(--star8); z-index: 2; }
.panel-star--tl { top: 4px; left: 4px; } .panel-star--tr { top: 4px; right: 4px; }
.panel-star--bl { bottom: 4px; left: 4px; } .panel-star--br { bottom: 4px; right: 4px; }

/* stats */
.stats { border-block: 0; padding-block: 0 clamp(2rem, 5vw, 3.5rem); }
.stats > div { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; overflow: hidden; }
.stats > div::after { content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; background: var(--cherry-200); clip-path: var(--star8); opacity: 0.6; }
.stat__num { color: var(--blue); }

/* ───────── WHAT WE DO: mehrab niches ───────── */
.what-we-do .section-head { text-align: center; }
.what-we-do .section-heading { margin: 0 auto; max-width: 18ch; }
.wwd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin-top: 3.5rem; align-items: start; }
.wwd-card { position: relative; text-align: center; border-radius: 999px 999px 1.5rem 1.5rem; padding: 5.5rem 1.75rem 2.25rem; min-height: 430px; display: flex; flex-direction: column; align-items: center; transition: transform 0.5s var(--ease), box-shadow 0.4s; overflow: hidden; }
.wwd-card:nth-child(even) { margin-top: 2.5rem; }
.wwd-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(47, 53, 214, 0.2); }
.wwd-card::before { content: ""; position: absolute; inset: 0; background: var(--lat-white) center / 64px; opacity: 0.14; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.wwd-card::after { content: ""; position: absolute; inset: 10px; border: 1.5px solid currentColor; opacity: 0.35; border-radius: 999px 999px 1rem 1rem; pointer-events: none; }
.wwd-card > * { position: relative; z-index: 1; }
.wwd-card__star { width: 64px; height: 64px; display: grid; place-items: center; background: var(--white); clip-path: var(--star8); margin-bottom: 1.75rem; }
.wwd-card__star b { font-size: 1rem; font-weight: 700; }
.wwd-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; text-transform: lowercase; margin-bottom: 0.75rem; }
.wwd-card p { font-size: 0.9375rem; line-height: 1.55; margin-bottom: 1.5rem; flex: 1; opacity: 0.88; }
.wwd-card .case-tags { justify-content: center; }
.wwd-card--blue { background: var(--blue); color: var(--white); } .wwd-card--blue .wwd-card__star b { color: var(--blue); }
.wwd-card--cherry { background: var(--cherry); color: var(--white); } .wwd-card--cherry .wwd-card__star b { color: var(--cherry); }
.wwd-card--soft-blue { background: var(--blue-100); color: var(--blue-900); } .wwd-card--soft-blue::before { background-image: var(--lat-blue); opacity: 0.2; } .wwd-card--soft-blue .wwd-card__star { background: var(--blue); } .wwd-card--soft-blue .wwd-card__star b { color: var(--white); }
.wwd-card--soft-cherry { background: var(--cherry-100); color: var(--cherry-900); } .wwd-card--soft-cherry::before { background-image: var(--lat-cherry); opacity: 0.2; } .wwd-card--soft-cherry .wwd-card__star { background: var(--cherry); } .wwd-card--soft-cherry .wwd-card__star b { color: var(--white); }
@media (max-width: 700px) { .wwd-card:nth-child(even) { margin-top: 0; } .wwd-card { min-height: 380px; } }

/* ───────── CASES: tile cards with arch window ───────── */
.cases-stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 1.5rem; margin-top: 2.5rem; counter-reset: c; }
.case-card { position: relative; top: auto; margin-top: 0; min-height: 0; padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; counter-increment: c; box-shadow: 0 10px 30px rgba(47, 53, 214, 0.08); transition: transform 0.45s var(--ease), box-shadow 0.4s; border-radius: var(--radius-lg); overflow: hidden; }
.case-card:first-child { margin-top: 0; }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(47, 53, 214, 0.2); }
.case-card::after { content: ""; position: absolute; inset: 9px; border: 1.5px solid currentColor; opacity: 0.3; border-radius: calc(var(--radius-lg) - 6px); pointer-events: none; }
.case-card::before { mask-image: linear-gradient(180deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); opacity: 0.12; }
.case-card__arc { position: relative; order: -1; left: auto; bottom: auto; transform: none; width: 100%; height: clamp(210px, 26vw, 270px); border-radius: 999px 999px 1rem 1rem; margin-bottom: 1.5rem; display: block; }
.case-card__arc img { width: 100%; height: 100%; border-radius: 0; object-position: center; }
.case-card__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.case-card__title::before { content: "0" counter(c); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; background: var(--fg); color: var(--bg); clip-path: var(--star8); }
.case-card__title { position: relative; }
.case-card__cta { top: auto; bottom: 1.35rem; right: 1.35rem; width: 44px; height: 44px; }
.case-card--peach { --bg: var(--white); --fg: var(--blue-900); background: var(--white); color: var(--blue-900); --pat: var(--pat-blue); }
.case-card--teal { --bg: var(--cherry); --fg: var(--white); background: var(--cherry); color: var(--white); --pat: var(--pat-white); }
.case-card--sage { --bg: var(--blue-100); --fg: var(--blue-900); background: var(--blue-100); color: var(--blue-900); --pat: var(--pat-blue); }
.case-card--blue { --bg: var(--blue); --fg: var(--white); background: var(--blue); color: var(--white); --pat: var(--pat-white); }
.case-card--cream { --bg: var(--cherry-100); --fg: var(--cherry-900); background: var(--cherry-100); color: var(--cherry-900); --pat: var(--pat-cherry); }
.case-card--slate { --bg: var(--white); --fg: var(--cherry-900); background: var(--white); color: var(--cherry-900); --pat: var(--pat-cherry); }
.case-card--peach .case-card__arc { background: var(--blue-100); }
.case-card--teal .case-card__arc { background: var(--cherry-200); }
.case-card--sage .case-card__arc { background: var(--blue-200); }
.case-card--blue .case-card__arc { background: var(--blue-200); }
.case-card--cream .case-card__arc { background: var(--cherry-200); }
.case-card--slate .case-card__arc { background: var(--cherry-200); }

/* ───────── WHY WABLE: tile mosaic, no stock photos ───────── */
.why-section { background: transparent; }
.why-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; }
.why-head .section-heading { max-width: 24ch; }
.team-cta-row { margin-top: 0; }
.team-cta-row a { border: 1.5px solid var(--blue); color: var(--blue); }
.team-cta-row a:hover { background: var(--blue); color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.why-tile { position: relative; min-height: 320px; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; transition: transform 0.45s var(--ease); }
.why-tile:hover { transform: translateY(-5px); }
.why-tile::before { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -90px; background-size: contain; background-repeat: no-repeat; z-index: -1; opacity: 0.9; transition: rotate 1.2s var(--ease); }
.why-tile:hover::before { rotate: 45deg; }
.why-tile::after { content: ""; position: absolute; inset: 9px; border: 1.5px solid currentColor; opacity: 0.28; border-radius: calc(var(--radius-lg) - 6px); pointer-events: none; }
.why-tile__no { width: 56px; height: 56px; display: grid; place-items: center; font-weight: 700; background: var(--white); clip-path: var(--star8); }
.why-tile h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; margin-bottom: 0.6rem; }
.why-tile p { max-width: 34ch; line-height: 1.6; opacity: 0.9; }
.why-tile--blue { background: var(--blue) var(--lat-white) center / 64px; color: var(--white); } .why-tile--blue::before { background-image: var(--sham-white); opacity: 0.55; } .why-tile--blue .why-tile__no { color: var(--blue); }
.why-tile--cherry { background: var(--cherry) var(--lat-white) center / 64px; color: var(--white); } .why-tile--cherry::before { background-image: var(--sham-white); opacity: 0.55; } .why-tile--cherry .why-tile__no { color: var(--cherry); }
.why-tile--cherry-soft { background: var(--cherry-100) var(--lat-cherry) center / 64px; color: var(--cherry-900); } .why-tile--cherry-soft::before { background-image: var(--sham-cherry); opacity: 0.7; } .why-tile--cherry-soft .why-tile__no { background: var(--cherry); color: var(--white); }
.why-tile--blue-soft { background: var(--blue-100) var(--lat-blue) center / 64px; color: var(--blue-900); } .why-tile--blue-soft::before { background-image: var(--sham-blue); opacity: 0.7; } .why-tile--blue-soft .why-tile__no { background: var(--blue); color: var(--white); }
.why-tile > div { position: relative; }
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } .why-tile { min-height: 260px; } }

/* why-you → bold cherry banner */
.why-you.shell { position: relative; overflow: hidden; margin-block: clamp(2rem, 6vw, 4rem); padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4rem); background: var(--cherry); color: var(--white); border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 22% 22% var(--radius-lg) var(--radius-lg); text-align: center; }
.why-you.shell::before { content: ""; position: absolute; inset: 0; background: var(--lat-white) center / 64px; opacity: 0.12; pointer-events: none; }
.why-you.shell > * { position: relative; }
.why-you__label { color: var(--cherry-200); }
.why-you__text { margin-inline: auto; max-width: 30ch; text-transform: none; }
.why-you .btn-primary { background: var(--white); color: var(--cherry); }
.why-you .btn-primary:hover { background: var(--blue); color: var(--white); }

/* process → framed panel, not a full-bleed band */
.process-section { background: transparent; color: inherit; overflow: visible; }
.process-section::before { content: none; }
.process-section > .shell { position: relative; overflow: hidden; background: var(--blue); color: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 4.5rem); }
.process-section > .shell::before { content: ""; position: absolute; inset: 0; background: var(--lat-white) center / 64px; opacity: 0.1; pointer-events: none; }
.process-section > .shell > * { position: relative; }
.process-step { background: rgba(255, 255, 255, 0.1); }

/* journal + misc on the unified paper */
.journal-card { background: var(--white); }
.service-row { background: transparent; }
.marquee { background: var(--cherry); }
.marquee__track i { background: var(--white); }
.btn-primary { background: var(--cherry); }
.btn-primary--blue { background: var(--blue); }
.mega-cta::before { background: radial-gradient(ellipse at center, var(--blue) 0 30%, transparent 72%), var(--pat-white) center / 80px, var(--blue); }
.site-footer { background: var(--cherry-900); }
.nav-panel, .nav-panel::before { background-color: var(--cherry-900); }
.nav-menu-btn { background: var(--cherry); }
.nav-cta:hover { background: var(--cherry); }

/* why tiles: calm the pattern behind the text */
.why-tile--blue { background: linear-gradient(0deg, var(--blue) 38%, transparent 85%), var(--lat-white) center / 64px, var(--blue); }
.why-tile--cherry { background: linear-gradient(0deg, var(--cherry) 38%, transparent 85%), var(--lat-white) center / 64px, var(--cherry); }
.why-tile--cherry-soft { background: linear-gradient(0deg, var(--cherry-100) 38%, transparent 85%), var(--lat-cherry) center / 64px, var(--cherry-100); }
.why-tile--blue-soft { background: linear-gradient(0deg, var(--blue-100) 38%, transparent 85%), var(--lat-blue) center / 64px, var(--blue-100); }
.why-tile p { font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════
   v3 — calmer: cobalt blue + vermilion accent, fewer ornaments,
   work cards that put the project image first
   ═══════════════════════════════════════════════════════════ */
:root {
  --cherry: #E4472B;
  --cherry-900: #5B1D10;
  --cherry-700: #BF3219;
  --cherry-300: #F2866F;
  --cherry-200: #F9C7BA;
  --cherry-100: #FDECE7;
  --cherry-50: #FFF7F4;
}

/* quieter paper */
body::before { opacity: 0.03; }

/* ───────── hero: one arch, two rings, nothing else ───────── */
.hero-rosette, .hero-star, .panel-star { display: none; }
.hero-arch__inner { box-shadow: 0 0 0 10px var(--paper), 0 0 0 12px var(--blue), 0 0 0 24px var(--paper), 0 0 0 26px var(--cherry), 0 30px 80px rgba(47, 53, 214, 0.14); padding-top: clamp(5rem, 15vw, 8.5rem); }
.hero-arch__inner::before { opacity: 0.05; }

/* ───────── intro panel: calm ───────── */
.panel-frame::before, .panel-frame::after { content: none; }
.panel-frame { border-width: 1.5px; }

/* stats: no star */
.stats > div::after { content: none; }

/* marquee */
.marquee { background: var(--blue); }
.marquee__track i { background: var(--cherry); width: 0.45em; height: 0.45em; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* ───────── what we do: no stars, no inner patterns ───────── */
.wwd-card::before { content: none; }
.wwd-card::after { opacity: 0.22; }
.wwd-card__star { clip-path: none; border-radius: 50%; width: 52px; height: 52px; margin-bottom: 1.5rem; }
.wwd-card--soft-cherry { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.wwd-card--soft-cherry .wwd-card__star { background: var(--blue); }

/* ───────── cases: the project image leads ───────── */
.cases-stack { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 2.75rem 1.75rem; }
.cases-stack .case-card { padding: 0; background: transparent; color: var(--ink); border-radius: 0; box-shadow: none; overflow: visible; }
.cases-stack .case-card::before, .cases-stack .case-card::after { content: none; }
.cases-stack .case-card:hover { transform: none; box-shadow: none; }
.cases-stack .case-card .case-card__arc { order: -1; position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); margin: 0 0 1.15rem; overflow: hidden; background: var(--blue-100); box-shadow: 0 16px 44px rgba(47, 53, 214, 0.14); transition: box-shadow 0.4s var(--ease), transform 0.5s var(--ease); }
.cases-stack .case-card:hover .case-card__arc { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(47, 53, 214, 0.24); }
.cases-stack .case-card__arc img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: none; mix-blend-mode: normal; border-radius: 0; }
.cases-stack .case-card:hover .case-card__arc img { transform: scale(1.05); }
.cases-stack .case-card__title { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 0 0 0.7rem; gap: 0.75rem; text-transform: none; letter-spacing: -0.03em; }
.cases-stack .case-card__title::before { content: "0" counter(c); width: auto; height: auto; background: none; clip-path: none; color: var(--cherry); font-size: 0.8125rem; font-weight: 700; display: inline; }
.cases-stack .case-tags li { border-color: var(--line); color: var(--muted); opacity: 1; }
.cases-stack .case-card__cta { top: 1rem; right: 1rem; bottom: auto; width: 46px; height: 46px; background: var(--white); color: var(--blue); border: 0; box-shadow: 0 6px 18px rgba(11, 13, 61, 0.18); }
.cases-stack .case-card:hover .case-card__cta { background: var(--blue); color: var(--white); transform: rotate(-45deg); }

/* ───────── why wable: solid tiles, one soft corner motif ───────── */
.why-tile--blue { background: var(--blue); }
.why-tile--cherry { background: var(--cherry); }
.why-tile--cherry-soft { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.why-tile--blue-soft { background: var(--blue-100); color: var(--blue-900); }
.why-tile::before { width: 100%; height: 60%; right: 0; top: 0; background-image: var(--lat-white); background-size: 64px; background-repeat: repeat; opacity: 0.2; mask-image: linear-gradient(200deg, #000, transparent 55%); -webkit-mask-image: linear-gradient(200deg, #000, transparent 55%); }
.why-tile:hover::before { rotate: 0deg; }
.why-tile--cherry-soft::before { background-image: var(--lat-blue); opacity: 0.18; }
.why-tile--blue-soft::before { background-image: var(--lat-blue); opacity: 0.22; }
.why-tile::after { opacity: 0.2; }
.why-tile__no { clip-path: none; border-radius: 50%; width: 48px; height: 48px; font-size: 0.9375rem; }
.why-tile--cherry-soft .why-tile__no { background: var(--blue); color: var(--white); }

/* banners & panels, quieter */
.why-you.shell::before { opacity: 0.07; }
.process-section > .shell::before { opacity: 0.06; }
.mega-cta::before { background: var(--blue); }
.mega-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat-white) center / 96px; opacity: 0.14; mask-image: radial-gradient(ellipse at center, transparent 25%, #000 90%); -webkit-mask-image: radial-gradient(ellipse at center, transparent 25%, #000 90%); pointer-events: none; }
.section.is-dark::before { opacity: 0.07; }

/* navy footer & menu: less red mass */
.site-footer, .nav-panel, .nav-panel::before { background-color: var(--blue-900); }
.site-footer::before { opacity: 0.03; }
.nav-panel::before { opacity: 0.04; }
.nav-panel__links a:hover, .nav-panel__links a[aria-current="page"] { color: var(--blue-200); }
.is-dark .section-label, .process-section .section-label { color: var(--blue-200); }
.cases-stack { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }

/* ═══════════════════════════════════════════════════════════
   v4 — single-hue Persian blue (cobalt + indigo), ornaments back,
   GSAP ScrollSmoother-driven motion
   ═══════════════════════════════════════════════════════════ */
:root {
  --cherry: #1A1F85;          /* deep indigo, the accent now lives inside the blue family */
  --cherry-900: #0B0D3D;
  --cherry-700: #232AA0;
  --cherry-300: #8D92EE;
  --cherry-200: #B9BDF6;
  --cherry-100: #DDE0FB;
  --cherry-50: #F0F1FE;
}
html { scroll-behavior: auto; }
body::before { opacity: 0.04; }
.section-label, .page-hero__label { color: var(--blue); }
.is-dark .section-label, .process-section .section-label { color: var(--blue-200); }
.mega-cta, .marquee { overflow: hidden; }
.gsap-ready .marquee__track { animation: none; }

/* ───────── hero ornaments back ───────── */
.hero-rosette { display: block; }
.hero-star { display: block; background: var(--blue); animation: spin 24s linear infinite; }
.hero-arch__inner { box-shadow: 0 0 0 9px var(--paper), 0 0 0 12px var(--blue), 0 0 0 22px var(--paper), 0 0 0 25px var(--cherry), 0 0 0 35px var(--paper), 0 0 0 37px var(--blue), 0 30px 80px rgba(47, 53, 214, 0.16); }
.hero-arch__inner::before { opacity: 0.08; }
.float-star { position: absolute; z-index: 1; pointer-events: none; background: var(--blue-300); clip-path: var(--star8); }
.float-star--1 { width: 34px; height: 34px; left: 17%; top: 24%; }
.float-star--2 { width: 22px; height: 22px; right: 19%; top: 20%; background: var(--blue); }
.float-star--3 { width: 28px; height: 28px; left: 24%; bottom: 17%; background: var(--cherry); }
.float-star--4 { width: 18px; height: 18px; right: 25%; bottom: 24%; }

/* scroll-driven page ornaments */
.deco { position: absolute; z-index: 0; pointer-events: none; opacity: 0.55; height: auto; }
.deco--a { width: clamp(140px, 18vw, 240px); left: -4%; top: 6%; }
.deco--b { width: clamp(160px, 20vw, 280px); right: -5%; top: 4%; }
.deco--c { width: clamp(130px, 16vw, 220px); left: -4%; top: 14%; }
.deco--d { width: clamp(170px, 22vw, 300px); right: -6%; top: -3%; }
.intro-section, .what-we-do, .cases-section, .why-section { position: relative; overflow-x: clip; }
.intro-section > .shell, .what-we-do > .shell, .cases-section > .shell, .why-section > .shell { position: relative; z-index: 1; }

/* ───────── intro panel: ornaments back ───────── */
.panel-star { display: block; background: var(--blue); }
.panel-frame::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid var(--blue-300); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.panel-frame::after { content: ""; position: absolute; inset: 0; background: var(--sham-blue) no-repeat 50% 130% / min(70%, 520px); opacity: 0.07; pointer-events: none; }
.stats > div::after { content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; background: var(--blue-200); clip-path: var(--star8); opacity: 0.6; }

/* ───────── service niches: stars + lattice back ───────── */
.wwd-card::before { content: ""; position: absolute; inset: 0; background: var(--lat-white) center / 64px; opacity: 0.14; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.wwd-card::after { opacity: 0.35; }
.wwd-card__star { clip-path: var(--star8); border-radius: 0; width: 64px; height: 64px; margin-bottom: 1.75rem; }
.wwd-card--soft-cherry::before { background-image: var(--lat-blue); opacity: 0.14; }
.wwd-card--cherry { background: var(--cherry); color: var(--white); }
.wwd-card--cherry .wwd-card__star b { color: var(--cherry); }

/* ───────── cases: image-first inside an arched frame ───────── */
.cases-stack .case-card { padding: 10px 10px 1.5rem; background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); box-shadow: 0 14px 40px rgba(47, 53, 214, 0.08); transition: border-color 0.3s, box-shadow 0.4s; animation: none; }
.cases-stack .case-card:hover { border-color: var(--blue); box-shadow: 0 26px 60px rgba(47, 53, 214, 0.2); }
.cases-stack .case-card .case-card__arc { border-radius: 50% 50% 1rem 1rem / 34% 34% 1rem 1rem; aspect-ratio: 5 / 4; margin: 0 0 1.25rem; box-shadow: none; transform: none !important; }
.cases-stack .case-card:hover .case-card__arc { box-shadow: none; }
.cases-stack .case-card:hover .case-card__arc img { transform: none; }
.cases-stack .case-card__title, .cases-stack .case-tags { padding-inline: 0.9rem; }
.cases-stack .case-card__title::before { color: var(--blue); }
.cases-stack .case-card__cta { top: auto; bottom: 1.25rem; right: 1.25rem; box-shadow: none; border: 1.5px solid var(--blue-200); }
.cases-stack .case-card:nth-child(3n+2) { background: var(--blue-50); }

/* ───────── why tiles: rotating shamseh ───────── */
.why-tile__sham { position: absolute; z-index: -1; right: -80px; top: -80px; width: 320px; height: 320px; opacity: 0.5; pointer-events: none; }
.why-tile--cherry-soft .why-tile__sham, .why-tile--blue-soft .why-tile__sham { opacity: 0.55; }
.why-tile__no { clip-path: var(--star8); border-radius: 0; width: 58px; height: 58px; }
.why-tile::before { opacity: 0.16; }

/* banners & panels in the single hue */
.why-you.shell, .process-section > .shell { background: var(--cherry); }
.marquee__track i { background: var(--blue-200); }
.btn-primary { background: var(--cherry); }
.btn-primary:hover, .form-submit:hover { background: var(--blue); }
.why-you .btn-primary { color: var(--cherry); }
.nav-menu-btn { background: var(--cherry); }
.nav-menu-btn:hover { background: var(--blue); }
.nav-cta:hover { background: var(--cherry); }
.filter-pill:hover, .filter-pill.active { background: var(--cherry); border-color: var(--cherry); }
.journal-card:hover { border-color: var(--blue); box-shadow: 0 12px 40px rgba(47, 53, 214, 0.1); }
.journal-btn:hover { background: var(--cherry); border-color: var(--cherry); }
.link-arrow:hover { color: var(--blue); }

@media (max-width: 700px) {
  .hero-rosette { opacity: 0.35; }
  .float-star--1, .float-star--3 { display: none; }
  .deco { opacity: 0.3; }
}

/* ═══════════════ HERO: kashi tile wall ═══════════════ */
.hero-wall {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: grid; justify-content: center; align-content: center;
  grid-template-columns: repeat(var(--cols, 12), var(--tile, 120px));
  grid-template-rows: repeat(var(--rows, 8), var(--tile, 120px));
  perspective: 1100px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.tile { padding: 2px; perspective: 700px; will-change: transform; }
.tile__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.tile__face { position: absolute; inset: 0; border-radius: 7px; display: grid; place-items: center; padding: 9%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tile__face svg { width: 100%; height: 100%; display: block; }
.tile__back { transform: rotateY(180deg); }
.tf--light { background: var(--blue-50); color: var(--blue-300); }
.tf--white { background: var(--white); color: var(--blue); }
.tf--pale { background: var(--blue-100); color: var(--blue); }
.tf--blue { background: var(--blue); color: var(--white); }
.tf--indigo { background: var(--cherry); color: var(--blue-200); }

/* arch window sits on the wall */
.main-hero { background: transparent; }
.hero-arch { z-index: 3; }
.hero-arch__inner { box-shadow: 0 0 0 9px var(--paper), 0 0 0 12px var(--blue), 0 0 0 22px var(--paper), 0 0 0 25px var(--cherry), 0 0 0 36px var(--paper), 0 40px 90px rgba(11, 13, 61, 0.35); }
.scroll-pill { z-index: 4; }

/* rotating ceramic plates */
.hero-rosette { z-index: 2; border-radius: 50%; box-sizing: border-box; padding: 7%; width: clamp(180px, 25vw, 370px); box-shadow: 0 24px 60px rgba(11, 13, 61, 0.3); }
.hero-rosette--l { background: var(--blue); left: -5%; top: 16%; }
.hero-rosette--r { background: var(--white); border: 4px solid var(--blue); right: -5%; bottom: 6%; }
@media (max-width: 700px) { .hero-rosette { display: none; } }

/* ═══════════════════════════════════════════════════════════
   v5 — hero-style tiles everywhere (clusters + bands), new intro,
   stats, journal cards and footer
   ═══════════════════════════════════════════════════════════ */

/* tile clusters & bands (same tile faces as the hero wall) */
.tile-cluster { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); width: min(100%, calc(var(--cols, 2) * var(--tile, 80px))); aspect-ratio: var(--cols, 2) / var(--rows, 2); perspective: 900px; }
.tile-band { display: grid; grid-template-columns: repeat(var(--cols, 20), var(--tile, 84px)); grid-template-rows: var(--tile, 84px); justify-content: center; overflow: hidden; perspective: 900px; margin-block: clamp(1.5rem, 4vw, 3rem) 0; }
.tile-cluster--arch { justify-self: center; border-radius: 999px 999px 22px 22px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 9px var(--paper), 0 0 0 12px var(--blue), 0 0 0 22px var(--paper), 0 0 0 25px var(--cherry), 0 36px 80px rgba(47, 53, 214, 0.22); }
.tile-cluster--arch .tile { padding: 3px; }

/* ───────── intro ───────── */
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.intro-copy .section-heading { max-width: 20ch; }
.intro-copy .panel-frame__text { margin: 1.5rem 0 0; max-width: 44ch; font-size: clamp(1rem, 2vw, 1.125rem); color: var(--muted); line-height: 1.65; }
.intro-copy .link-arrow { margin-top: 1.75rem; color: var(--blue); }
@media (max-width: 800px) { .intro-grid { grid-template-columns: 1fr; } .tile-cluster--arch { width: min(100%, 340px); margin-top: 1.5rem; } }

/* ───────── stats as coloured tiles ───────── */
.stats { gap: 1.25rem; }
.stats > div { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; border: 0; border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--blue-200); }
.stats > div::after { content: ""; position: absolute; inset: 0; right: 0; top: 0; width: auto; height: auto; clip-path: none; background: var(--lat-blue) right top / 60px; opacity: 0.2; mask-image: linear-gradient(210deg, #000, transparent 58%); -webkit-mask-image: linear-gradient(210deg, #000, transparent 58%); pointer-events: none; }
.stats > div:nth-child(1) { background: var(--blue); color: var(--white); box-shadow: none; }
.stats > div:nth-child(3) { background: var(--blue-100); box-shadow: none; }
.stats > div:nth-child(4) { background: var(--cherry); color: var(--white); box-shadow: none; }
.stats > div:nth-child(1)::after, .stats > div:nth-child(4)::after { background-image: var(--lat-white); opacity: 0.25; }
.stat__num { color: inherit; position: relative; z-index: 1; }
.stat__label { color: inherit; opacity: 0.8; position: relative; z-index: 1; }

/* section headers with a tile cluster */
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.section-head--split .tile-cluster { width: min(100%, calc(var(--cols, 3) * 78px)); flex: none; }
.section-head--split .section-heading { max-width: 22ch; }
.projects-cta { padding-top: 2.5rem; }

/* why tiles: a small strip of tiles instead of the huge rosette */
.why-tile__cluster { position: absolute; right: 1.4rem; top: 1.4rem; z-index: 2; }
.why-tile::before { opacity: 0.12; }
@media (max-width: 520px) { .why-tile__cluster { transform: scale(0.8); transform-origin: top right; } }

/* ───────── journal: image-led blog cards ───────── */
.journal-card { flex: 0 0 min(360px, 86vw); padding: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); transition: border-color 0.3s, box-shadow 0.4s; }
.journal-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin: 10px 10px 0; border-radius: 50% 50% 1rem 1rem / 20% 20% 1rem 1rem; background: var(--blue-100); }
.journal-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.journal-card:hover .journal-card__media img { transform: scale(1.07); }
.journal-card__media .journal-card__cat { position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%); margin: 0; padding: 0.4rem 0.9rem; background: var(--white); color: var(--blue); border-radius: var(--radius-pill); box-shadow: 0 6px 18px rgba(11, 13, 61, 0.15); white-space: nowrap; }
.journal-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.5rem 1.6rem; }
.journal-card__meta { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: 0.55rem; letter-spacing: 0.02em; }
.journal-card__title { font-size: 1.25rem; letter-spacing: -0.025em; margin-bottom: 0.55rem; }
.journal-card__title a { transition: color 0.2s; }
.journal-card__title a:hover { color: var(--blue); }
.journal-card__link { margin-top: auto; color: var(--blue); }

/* ───────── footer ───────── */
.site-footer { padding: clamp(3rem, 8vw, 6rem) 0 0; background: var(--blue-900); color: var(--white); position: relative; overflow: hidden; }
.site-footer::before { opacity: 0.045; }
.sf-cta { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sf-cta .section-label { color: var(--blue-200); }
.sf-cta__title { font-size: clamp(2.25rem, 7vw, 6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; max-width: 16ch; text-transform: lowercase; }
.sf-cta__mail { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2rem; padding-bottom: 0.3rem; font-size: clamp(1.25rem, 3.4vw, 2.25rem); font-weight: 500; letter-spacing: -0.03em; border-bottom: 2px solid var(--blue-300); transition: gap 0.3s var(--ease), color 0.2s, border-color 0.2s; }
.sf-cta__mail:hover { gap: 1rem; color: var(--blue-200); border-color: var(--white); }
.sf-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1.5fr; gap: 2rem; padding-block: clamp(2rem, 5vw, 3rem); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.sf-logo { width: 120px; height: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.sf-col h3 { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; margin-bottom: 1rem; }
.sf-col p, .sf-col a { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.7); line-height: 1.7; }
.sf-col p + p { margin-top: 0.5rem; }
.sf-col a { transition: color 0.2s; }
.sf-col a:hover { color: var(--white); }
.sf-col ul { display: flex; flex-direction: column; gap: 0.3rem; }
.sf-news { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.sf-news input { flex: 1 1 160px; min-width: 0; padding: 0.8rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.07); color: var(--white); }
.sf-news input::placeholder { color: rgba(255, 255, 255, 0.4); }
.sf-news button { padding: 0.8rem 1.3rem; border-radius: var(--radius-pill); background: var(--blue); color: var(--white); font-weight: 600; transition: background 0.2s, color 0.2s; }
.sf-news button:hover { background: var(--white); color: var(--blue-900); }
.sf-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5); }
.sf-bottom a:hover { color: var(--white); }
@media (max-width: 900px) { .sf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sf-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   v6 — pointed arch hero, merged intro, calmer spacing,
   square "why" tiles, light footer with a blue arch panel
   ═══════════════════════════════════════════════════════════ */
:root { --section-pad: clamp(3.25rem, 7vw, 5.5rem); }

/* ───────── hero: pointed (jenaghi) arch ───────── */
.main-hero { padding: 11rem var(--pad) 5rem; }
.hero-arch { width: clamp(300px, calc((100svh - 16rem) * 0.714), min(460px, calc(100vw - 6rem))); aspect-ratio: 400 / 560; margin-inline: auto; position: relative; z-index: 3; }
.hero-arch__frame { position: absolute; left: calc(-70 / 400 * 100%); top: calc(-90 / 560 * 100%); width: calc(540 / 400 * 100%); height: calc(650 / 560 * 100%); overflow: visible; pointer-events: none; filter: drop-shadow(0 30px 44px rgba(11, 13, 61, 0.28)); }
.af { stroke: none; }
.af--paper { fill: var(--paper); }
.af--white { fill: var(--white); }
.as { fill: none; stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.as--blue { stroke: var(--blue); }
.as--indigo { stroke: var(--cherry); }
.hero-arch__inner { position: absolute; inset: 0; z-index: 1; padding: 24% 9% 8%; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; justify-content: center; gap: 1.1rem; }
.hero-arch__inner::before { content: none; }
.hero-star { width: 36px; height: 36px; flex: none; }
.main-hero__logo { max-width: 340px; }
.main-hero__sub { font-size: clamp(0.9375rem, 1.8vw, 1.125rem); max-width: 26ch; }
@media (max-width: 520px) { .main-hero { padding-top: 9.5rem; } }

/* ───────── hello + numbers ───────── */
.intro-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.25rem 2.5rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1.5px solid var(--blue-200); }
.intro-stats .stat__num { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.intro-stats .stat__label { margin-top: 0.4rem; font-size: 0.8125rem; color: var(--muted); font-weight: 500; opacity: 1; }
@media (max-width: 560px) { .intro-stats { grid-template-columns: repeat(2, 1fr); } }
.intro-section { padding-bottom: 0; }

/* tighter rhythm between sections */
.tile-band { margin-block: clamp(1.25rem, 3vw, 2rem) 0; }
.cases-section { padding-bottom: 0; }
.projects-cta { padding: clamp(1.75rem, 4vw, 2.5rem) var(--pad) 0; }
.journal-section { padding-top: clamp(3rem, 7vw, 5rem); }

/* ───────── why wable ───────── */
.why-section { padding-top: clamp(3rem, 7vw, 5rem); }
.why-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.why-copy .section-heading { max-width: 16ch; }
.why-copy .team-cta-row { margin-top: 2rem; }
.why-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.why-tile { min-height: 0; aspect-ratio: 1 / 1; padding: clamp(1.1rem, 2.2vw, 1.6rem); justify-content: space-between; }
.why-tile::before { content: none; }
.why-tile__icon { width: 56px; height: 56px; padding: 11px; border-radius: 16px; background: rgba(255, 255, 255, 0.16); flex: none; display: block; }
.why-tile__icon svg { width: 100%; height: 100%; display: block; }
.why-tile .why-tile__no, .why-tile--cherry-soft .why-tile__no, .why-tile--blue-soft .why-tile__no { display: block; width: auto; height: auto; clip-path: none; border-radius: 0; background: none; font-size: 0.75rem; letter-spacing: 0.06em; opacity: 0.65; margin-bottom: 0.35rem; color: inherit; }
.why-tile h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin-bottom: 0.4rem; }
.why-tile p { font-size: 0.9375rem; max-width: 24ch; line-height: 1.5; }
.why-tile--cherry-soft .why-tile__icon, .why-tile--blue-soft .why-tile__icon { background: var(--blue); color: var(--white); }
@media (max-width: 900px) { .why-layout { grid-template-columns: 1fr; } .why-copy .section-heading { max-width: 22ch; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } .why-tile { aspect-ratio: auto; min-height: 220px; gap: 1.5rem; } }

/* ───────── footer: light, blue arch panel ───────── */
.site-footer { background: transparent; color: var(--ink); padding: clamp(2.5rem, 6vw, 4rem) 0 0; overflow: visible; }
.site-footer::before { content: none; }
.sf-arch__inner { position: relative; overflow: hidden; isolation: isolate; text-align: center; background: var(--blue); color: var(--white); border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 30% 30% var(--radius-lg) var(--radius-lg); padding: clamp(5rem, 12vw, 9rem) var(--pad) clamp(3rem, 7vw, 5rem); }
.sf-arch__inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat-white) center / 96px; opacity: 0.13; mask-image: radial-gradient(ellipse at center, transparent 22%, #000 88%); -webkit-mask-image: radial-gradient(ellipse at center, transparent 22%, #000 88%); }
.sf-arch .section-label { color: var(--blue-200); }
.sf-arch__title { font-size: clamp(2rem, 6vw, 4.75rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; max-width: 15ch; margin: 0 auto 2rem; text-transform: lowercase; }
.sf-arch__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.sf-arch .btn-primary { background: var(--white); color: var(--blue); }
.sf-arch .btn-primary:hover { background: var(--blue-900); color: var(--white); }
.btn-ghost { display: inline-flex; align-items: center; padding: 0.85rem 1.5rem; border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: var(--radius-pill); color: var(--white); font-size: 0.875rem; font-weight: 600; transition: background 0.25s, color 0.25s; }
.btn-ghost:hover { background: var(--white); color: var(--blue); }
.sf-grid { grid-template-columns: 1.3fr 0.8fr 1fr 1.5fr; padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 4vw, 2.5rem); border-top: 0; }
.sf-logo { filter: none; width: 110px; }
.sf-col h3 { color: var(--blue); opacity: 1; }
.sf-col p, .sf-col a { color: var(--muted); }
.sf-col a:hover { color: var(--blue); }
.sf-news input { border: 1.5px solid var(--blue-200); background: var(--white); color: var(--ink); }
.sf-news input::placeholder { color: rgba(11, 13, 61, 0.4); }
.sf-news button:hover { background: var(--blue-900); color: var(--white); }
.sf-bottom { border-top: 1.5px solid var(--blue-200); color: var(--muted); }
.sf-bottom a:hover { color: var(--blue); }
.form-success-msg { background: var(--blue-100); color: var(--blue-900); }

/* hero arch proportions v6.1 */
.hero-arch { width: clamp(320px, calc((100svh - 14rem) * 0.77), min(480px, calc(100vw - 6rem))); aspect-ratio: 400 / 520; }
.hero-arch__frame { top: calc(-90 / 520 * 100%); height: calc(610 / 520 * 100%); }
.hero-arch__inner { padding: 21% 8% 8%; }

/* perf: no mask on the 3D tile wall, fade with a gradient layer instead */
.hero-wall { -webkit-mask-image: none; mask-image: none; }
.hero-wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--paper) 100%); pointer-events: none; }
.tile { will-change: auto; }

/* ═══ v7 — blog cards: full-bleed "poster" cards (distinct from the framed case cards) ═══ */
.journal-card { position: relative; flex: 0 0 min(340px, 82vw); aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 1.75rem; background: var(--blue-900); overflow: hidden; isolation: isolate; box-shadow: 0 16px 40px rgba(11, 13, 61, 0.18); transition: transform 0.5s var(--ease), box-shadow 0.4s; }
.journal-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 28px 60px rgba(11, 13, 61, 0.32); }
.journal-card__media { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; z-index: 0; background: var(--blue-900); }
.journal-card__media img { transition: transform 1s var(--ease); }
.journal-card:hover .journal-card__media img { transform: scale(1.08); }
.journal-card__media .journal-card__cat { top: 1.1rem; left: 1.1rem; bottom: auto; transform: none; background: var(--white); color: var(--blue); }
.journal-card__body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem; color: var(--white); background: linear-gradient(180deg, rgba(11, 13, 61, 0) 28%, rgba(11, 13, 61, 0.55) 58%, rgba(11, 13, 61, 0.94) 100%); }
.journal-card__meta { position: absolute; top: 1.1rem; right: 1.1rem; margin: 0; padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); background: rgba(11, 13, 61, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--white); font-size: 0.75rem; }
.journal-card__title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.12; letter-spacing: -0.035em; margin-bottom: 0.6rem; color: var(--white); }
.journal-card__title a:hover { color: var(--blue-200); }
.journal-card__title a::after { content: ""; position: absolute; inset: 0; }
.journal-card__excerpt { color: rgba(255, 255, 255, 0.82); font-size: 0.9375rem; line-height: 1.5; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.journal-card__link { display: inline-flex; align-items: center; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.28); color: var(--white); }
.journal-card::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--lat-white) right top / 58px; opacity: 0.2; -webkit-mask-image: linear-gradient(215deg, #000, transparent 38%); mask-image: linear-gradient(215deg, #000, transparent 38%); }
@media (hover: hover) {
  .journal-card__excerpt { max-height: 0; opacity: 0; transition: max-height 0.5s var(--ease), opacity 0.4s; }
  .journal-card:hover .journal-card__excerpt { max-height: 4.5em; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   v8 — mehrab hero (rings), compact why-wable, manuscript-style blog cards
   ═══════════════════════════════════════════════════════════ */

/* ───────── hero: rounded mehrab with three coloured rings ───────── */
.main-hero { padding: 8rem var(--pad) 4.5rem; justify-content: center; }
.hero-arch { width: min(calc(100vw - 7rem), 560px); aspect-ratio: auto; }
.hero-arch__frame { display: none; }
.hero-arch__inner {
  position: relative; inset: auto; z-index: 1; overflow: hidden; text-align: center;
  background: var(--white); border-radius: 999px 999px 1.5rem 1.5rem;
  padding: clamp(5rem, 14vw, 8rem) clamp(1.25rem, 5vw, 3rem) 2.75rem;
  box-shadow: 0 0 0 9px var(--paper), 0 0 0 12px var(--blue), 0 0 0 22px var(--paper), 0 0 0 25px var(--cherry), 0 0 0 35px var(--paper), 0 0 0 37px var(--blue), 0 40px 90px rgba(11, 13, 61, 0.32);
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}
.hero-arch__inner::before { content: ""; position: absolute; inset: 0; background: var(--pat-blue) center / 80px; opacity: 0.09; -webkit-mask-image: radial-gradient(ellipse at 50% 38%, transparent 22%, #000 92%); mask-image: radial-gradient(ellipse at 50% 38%, transparent 22%, #000 92%); pointer-events: none; }
.hero-arch__inner > * { position: relative; }
.hero-star { width: 46px; height: 46px; }
.main-hero__logo { max-width: 430px; }
.main-hero__sub { max-width: 28ch; font-size: clamp(1rem, 2.2vw, 1.25rem); }
.scroll-pill { display: none; }
@media (max-width: 520px) { .main-hero { padding-top: 7rem; } }

/* ───────── why wable: compact one-row layout ───────── */
.why-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.why-layout { display: block; }
.why-copy { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.why-copy .section-label { flex-basis: 100%; margin-bottom: 0; }
.why-copy .section-heading { max-width: 24ch; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.why-copy .team-cta-row { margin: 0; }
.why-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.why-tile { aspect-ratio: auto; min-height: 0; gap: 1.75rem; padding: 1.25rem 1.3rem 1.4rem; justify-content: flex-start; }
.why-tile__icon { width: 46px; height: 46px; padding: 9px; border-radius: 13px; }
.why-tile h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.why-tile p { font-size: 0.875rem; max-width: none; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } .why-tile { gap: 1.1rem; } }
.journal-section { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ───────── blog: manuscript-page cards ───────── */
.journal-card {
  position: relative; aspect-ratio: auto; flex: 0 0 min(330px, 84vw); overflow: hidden; isolation: auto;
  padding: 1.1rem 1.1rem 1.5rem; border: 1.5px solid var(--blue-200); border-radius: 1.5rem;
  background: var(--white); box-shadow: none; text-align: center;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.4s, background 0.3s;
}
.journal-card:nth-child(even) { background: var(--blue-50); }
.journal-card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 22px 50px rgba(47, 53, 214, 0.16); }
/* tazhib line frame + eight-point stars in the corners */
.journal-card::before { content: ""; position: absolute; inset: 7px; border: 1.5px solid var(--blue-300); border-radius: 1.2rem; pointer-events: none; z-index: 2; }
.journal-card::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 1; -webkit-mask-image: none; mask-image: none;
  background-image: var(--jstar), var(--jstar), var(--jstar), var(--jstar);
  background-repeat: no-repeat;
  background-size: 15px 15px;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  --jstar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolygon points='10,0 12.2,3.6 17,3 16.4,7.8 20,10 16.4,12.2 17,17 12.2,16.4 10,20 7.8,16.4 3,17 3.6,12.2 0,10 3.6,7.8 3,3 7.8,3.6' fill='%232F35D6'/%3E%3C/svg%3E");
}
/* image in a turanj (cartouche) window */
.journal-card__media { position: relative; inset: auto; margin: 0.5rem 0 0; aspect-ratio: 5 / 4; border-radius: 0; z-index: 1; background: var(--blue-100); clip-path: url(#cartouche); }
.journal-card__media img { transition: transform 0.9s var(--ease); }
.journal-card:hover .journal-card__media img { transform: scale(1.08); }
.journal-card__body { position: static; inset: auto; display: flex; flex-direction: column; align-items: center; padding: 1.15rem 0.6rem 0; background: none; color: var(--ink); }
.journal-card__cat { order: 0; margin: 0 0 0.6rem; padding: 0; position: static; background: none; box-shadow: none; transform: none; color: var(--blue); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.6rem; }
.journal-card__cat::before, .journal-card__cat::after { content: ""; width: 7px; height: 7px; background: var(--blue); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.journal-card__title { order: 1; color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.journal-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.journal-card__title a:hover { color: var(--blue); }
.journal-card__excerpt { order: 2; color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin-bottom: 0.9rem; opacity: 1; max-height: none; -webkit-line-clamp: 3; }
.journal-card__meta { order: 3; position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; margin: 0 0 0.7rem; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.journal-card__link { order: 4; margin: 0; padding: 0.55rem 1.1rem; border: 1.5px solid var(--blue-200); border-radius: var(--radius-pill); color: var(--blue); font-size: 0.8125rem; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.journal-card:hover .journal-card__link { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (hover: hover) {
  .journal-card__excerpt { max-height: none; opacity: 1; }
  .journal-card:hover .journal-card__excerpt { max-height: none; }
}

/* ═══════════════════════════════════════════════════════════
   Lead-generation section
   ═══════════════════════════════════════════════════════════ */
.lead-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.lead-panel { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(1.5rem, 4.5vw, 3.5rem); background: var(--blue); color: var(--white); border-radius: var(--radius-lg); }
.lead-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lat-white) center / 64px; opacity: 0.1; -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%); mask-image: linear-gradient(120deg, #000, transparent 70%); }
.lead-copy .section-label { color: var(--blue-200); }
.lead-copy .section-heading { max-width: 15ch; font-size: clamp(1.9rem, 4vw, 3.1rem); }
.lead-points { display: grid; gap: 1.1rem; margin-top: 2rem; }
.lead-points li { position: relative; padding-left: 2.4rem; display: grid; gap: 0.15rem; }
.lead-points li::before { content: ""; position: absolute; left: 0; top: 0.1rem; width: 1.5rem; height: 1.5rem; background: var(--blue-200); clip-path: var(--star8); }
.lead-points b { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.lead-points span { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); }
.lead-alt { margin-top: 2rem; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.78); }
.lead-alt a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.lead-card { position: relative; background: var(--white); color: var(--ink); border-radius: calc(var(--radius-lg) - 4px); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 30px 70px rgba(11, 13, 61, 0.35); }
.lead-card::before { content: ""; position: absolute; inset: 6px; border: 1.5px solid var(--blue-200); border-radius: calc(var(--radius-lg) - 10px); pointer-events: none; }
.lead-form { position: relative; display: grid; gap: 1rem; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lead-field { display: grid; gap: 0.4rem; min-width: 0; border: 0; padding: 0; }
.lead-field label, .lead-field legend { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 0; }
.lead-field input[type="text"], .lead-field input[type="email"], .lead-field select, .lead-field textarea { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--blue-200); border-radius: 0.9rem; background: var(--white); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.lead-field textarea { resize: vertical; min-height: 84px; }
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 53, 214, 0.14); }
.lead-field ::placeholder { color: rgba(11, 13, 61, 0.35); }
.lead-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lead-chips legend { flex-basis: 100%; margin-bottom: 0.1rem; float: none; }
.chip { position: relative; cursor: pointer; text-transform: none; letter-spacing: 0; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span { display: inline-block; padding: 0.5rem 1rem; border: 1.5px solid var(--blue-200); border-radius: var(--radius-pill); font-size: 0.875rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover span { border-color: var(--blue); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.lead-submit { justify-content: center; width: 100%; padding-block: 1rem; font-size: 0.9375rem; }
.lead-note { text-align: center; font-size: 0.75rem; color: var(--muted); }
.lead-success { position: relative; text-align: center; padding: 2rem 0.5rem; }
.lead-success[hidden] { display: none; }
.lead-success__star { display: block; width: 56px; height: 56px; margin: 0 auto 1.25rem; background: var(--blue); clip-path: var(--star8); }
.lead-success h3 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.lead-success p { color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.lead-success p strong { color: var(--ink); }

@media (max-width: 900px) { .lead-panel { grid-template-columns: 1fr; } .lead-copy .section-heading { max-width: 20ch; } }
@media (max-width: 520px) { .lead-row { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   v9 — Iranian red arch lines, consultation section, project pages
   ═══════════════════════════════════════════════════════════ */
:root { --red: #D91A3A; }

/* the dark ring lines on the arches become a sharp Persian red */
.hero-arch__inner { box-shadow: 0 0 0 9px var(--paper), 0 0 0 12px var(--blue), 0 0 0 22px var(--paper), 0 0 0 26px var(--red), 0 0 0 36px var(--paper), 0 0 0 38px var(--blue), 0 40px 90px rgba(11, 13, 61, 0.28); }
.tile-cluster--arch { box-shadow: 0 0 0 9px var(--paper), 0 0 0 12px var(--blue), 0 0 0 22px var(--paper), 0 0 0 26px var(--red), 0 36px 80px rgba(47, 53, 214, 0.22); }

/* ───────── consultation section ───────── */
.consult-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.consult-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.consult-copy .section-heading { max-width: 14ch; }
.consult-text { margin-top: 1.25rem; max-width: 44ch; font-size: clamp(1rem, 2vw, 1.125rem); line-height: 1.65; color: var(--muted); }
.consult-steps { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0 2rem; counter-reset: s; }
.consult-steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 1rem 0.4rem 0.45rem; border: 1.5px solid var(--blue-200); border-radius: var(--radius-pill); font-size: 0.875rem; font-weight: 600; background: var(--white); }
.consult-steps li::before { content: counter(s); width: 1.65rem; height: 1.65rem; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 0.75rem; }

.mini-cal { position: relative; background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: 0 24px 60px rgba(47, 53, 214, 0.12); max-width: 460px; justify-self: center; width: 100%; }
.mini-cal::before { content: ""; position: absolute; inset: 6px; border: 1.5px solid var(--blue-100); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.mini-cal > * { position: relative; }
.mini-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mini-cal__head h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; }
.mini-cal__head button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--blue-200); color: var(--blue); transition: background 0.2s, color 0.2s; }
.mini-cal__head button:hover:not(:disabled) { background: var(--blue); color: var(--white); border-color: var(--blue); }
.mini-cal__head button:disabled { opacity: 0.3; cursor: not-allowed; }
.mini-cal__week, .mini-cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35rem; }
.mini-cal__week { margin-bottom: 0.4rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-align: center; }
.mini-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font-size: 0.9rem; font-weight: 600; background: var(--blue-50); color: var(--blue); transition: background 0.2s, color 0.2s, transform 0.25s var(--ease); }
a.mini-day:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }
.mini-day.is-off { background: transparent; color: rgba(11, 13, 61, 0.25); font-weight: 500; }
.mini-day.is-empty { background: transparent; }
.mini-day.is-today { box-shadow: inset 0 0 0 2px var(--red); }
.mini-cal__note { margin-top: 1rem; text-align: center; font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 900px) { .consult-grid { grid-template-columns: 1fr; } .consult-copy .section-heading { max-width: 20ch; } }

/* ───────── project pages ───────── */
.project-hero { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.project-back { display: inline-flex; margin-bottom: 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--blue); transition: transform 0.25s var(--ease); }
.project-back:hover { transform: translateX(-4px); }
.project-lead { margin-top: 1.25rem; max-width: 46ch; font-size: clamp(1.0625rem, 2.2vw, 1.375rem); line-height: 1.5; color: var(--muted); }
.project-tags { margin-top: 1.5rem; }
.project-tags li { border-color: var(--blue-200); color: var(--blue); opacity: 1; }
.project-hero::after { content: none; }
.project-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; background: var(--blue-100); box-shadow: 0 30px 70px rgba(47, 53, 214, 0.18); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
.project-meta > div { padding: 1.1rem 1.25rem; border: 1.5px solid var(--blue-200); border-radius: var(--radius); background: var(--white); }
.project-meta dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.3rem; }
.project-meta dd { font-size: 0.9375rem; font-weight: 500; }
.project-body { padding-block: clamp(2rem, 5vw, 4rem); }
.project-row { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(1rem, 5vw, 4rem); padding: clamp(1.5rem, 3.5vw, 2.5rem) 0; border-top: 1.5px solid var(--blue-200); }
.project-row:last-child { border-bottom: 1.5px solid var(--blue-200); }
.project-row h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; color: var(--blue); }
.project-row p { font-size: clamp(1rem, 1.8vw, 1.125rem); line-height: 1.7; color: var(--ink); max-width: 56ch; }
.project-results { display: grid; gap: 0.8rem; }
.project-results li { position: relative; padding-left: 2rem; font-size: clamp(1rem, 1.8vw, 1.125rem); line-height: 1.5; }
.project-results li::before { content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.2rem; height: 1.2rem; background: var(--red); clip-path: var(--star8); }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.project-gallery figure { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue-100); }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project-gallery figure:hover img { transform: scale(1.05); }
.project-next { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.project-next__card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--blue); color: var(--white); transition: transform 0.4s var(--ease), background 0.3s; }
.project-next__card::before { content: ""; position: absolute; inset: 0; background: var(--lat-white) center / 64px; opacity: 0.1; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); }
.project-next__card:hover { transform: translateY(-4px); background: var(--cherry); }
.project-next__card > * { position: relative; }
.project-next__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.project-next__title { flex: 1; font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.04em; text-transform: lowercase; }
.project-next__arrow { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.5); font-size: 1.5rem; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s; }
.project-next__card:hover .project-next__arrow { background: var(--white); color: var(--blue); transform: rotate(-45deg); }
@media (max-width: 800px) {
  .project-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .project-meta { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-next__label { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   v10 — about (hello + why) section, work header copy,
   one "start a project" block, hero eyebrow
   ═══════════════════════════════════════════════════════════ */

/* hero: eyebrow replaces the star */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.hero-eyebrow::before, .hero-eyebrow::after { content: ""; width: 8px; height: 8px; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* about: one clear focus, then four quiet values */
.intro-section { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.intro-grid { align-items: center; }
.intro-copy .section-heading { max-width: 14ch; font-size: clamp(2.1rem, 4.8vw, 3.75rem); }
.intro-copy .panel-frame__text { max-width: 40ch; }
.intro-grid .tile-cluster--arch { width: min(100%, 372px); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1.5px solid var(--blue-200); }
.values li { display: grid; gap: 0.5rem; align-content: start; }
.values__icon { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--blue-100); color: var(--blue); margin-bottom: 0.4rem; }
.values__icon svg { width: 100%; height: 100%; display: block; }
.values h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.025em; text-transform: lowercase; }
.values p { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); max-width: 26ch; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* selected work header */
.section-sub { margin-top: 1rem; max-width: 40ch; font-size: clamp(1rem, 1.8vw, 1.125rem); line-height: 1.55; color: var(--muted); }

/* start a project: two paths, one block */
.start-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.start-panel { grid-template-columns: 1fr 1.05fr; align-items: start; }
.start-intro { margin-top: 1rem; font-size: 1.0625rem; color: rgba(255, 255, 255, 0.82); max-width: 34ch; }
.start-options { display: grid; gap: 0.8rem; margin-top: 2rem; }
.start-option { display: grid; gap: 0.3rem; text-align: left; padding: 1.1rem 1.3rem; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 1.25rem; color: var(--white); background: rgba(255, 255, 255, 0.06); transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.start-option b { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; }
.start-option > span:last-child { font-size: 0.9375rem; line-height: 1.45; opacity: 0.8; }
.start-option__tag { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.start-option:hover { background: rgba(255, 255, 255, 0.14); transform: translateX(4px); }
.start-option.is-active { background: var(--white); color: var(--blue-900); border-color: var(--white); transform: none; }
.start-option.is-active > span:last-child { opacity: 0.7; }
.start-option.is-active .start-option__tag { color: var(--blue); opacity: 1; }
.start-pane[hidden] { display: none; }
.start-pane { position: relative; display: grid; gap: 1rem; }
.start-pane__title { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.start-card .mini-cal { max-width: none; padding: 0; border: 0; box-shadow: none; background: transparent; }
.start-card .mini-cal::before { content: none; }
.start-card .mini-cal__head { margin-bottom: 0.8rem; }
.start-card .lead-submit { margin-top: 0.25rem; }
.start-card .lead-form { gap: 0.9rem; }
@media (max-width: 900px) { .start-panel { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   v11 — limited Persian-red accents, structured project pages,
   shared start-a-project block above the footer
   ═══════════════════════════════════════════════════════════ */

/* ───────── limited red accents ───────── */
.section-label::before, .page-hero__label::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.55rem; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); vertical-align: 0.06em; }
.lead-copy .section-label::before, .is-dark .section-label::before, .sf-arch .section-label::before { background: var(--white); }
.link-arrow:hover { color: var(--red); }

/* case cards: a fine red line around the arched image */
.cases-stack .case-card .case-card__arc { outline: 2px solid var(--red); outline-offset: 4px; }
.cases-stack .case-card__title::before { color: var(--red); }

/* service niches: the inner line turns red on the light cards */
.wwd-card--soft-blue::after, .wwd-card--soft-cherry::after { border-color: var(--red); opacity: 0.5; }

/* blog cards: red corner stars and diamonds */
.journal-card::after { --jstar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolygon points='10,0 12.2,3.6 17,3 16.4,7.8 20,10 16.4,12.2 17,17 12.2,16.4 10,20 7.8,16.4 3,17 3.6,12.2 0,10 3.6,7.8 3,3 7.8,3.6' fill='%23D91A3A'/%3E%3C/svg%3E"); }
.journal-card__cat::before, .journal-card__cat::after { background: var(--red); }

/* lead card + mini calendar frames */
.lead-card::before { border-color: rgba(217, 26, 58, 0.35); }
.mini-day.is-today { box-shadow: inset 0 0 0 2px var(--red); }

/* ───────── start block now lives above the footer on every page ───────── */
.start-wrap { padding-block: clamp(1rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem); }
.site-footer { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* ───────── project pages ───────── */
.proj-hero { padding: clamp(7rem, 14vw, 9.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.proj-hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.proj-hero .page-hero__title { font-size: clamp(2.6rem, 7.5vw, 5.5rem); }
.proj-hero .project-lead { max-width: 40ch; }
.proj-facts { position: relative; display: grid; background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); padding: 0.5rem 1.5rem; }
.proj-facts::before { content: ""; position: absolute; inset: 5px; border: 1.5px solid rgba(217, 26, 58, 0.3); border-radius: calc(var(--radius-lg) - 7px); pointer-events: none; }
.proj-facts > div { position: relative; padding: 1.1rem 0.4rem; }
.proj-facts > div + div { border-top: 1.5px solid var(--blue-100); }
.proj-facts dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.25rem; }
.proj-facts dd { font-size: 1rem; font-weight: 500; line-height: 1.4; }

.proj-cover { padding-block: clamp(1.25rem, 3vw, 2rem); }
.proj-cover__frame { aspect-ratio: 16 / 8.5; border-radius: 50% 50% 1.5rem 1.5rem / 26% 26% 1.5rem 1.5rem; overflow: hidden; background: var(--blue-100); outline: 2px solid var(--red); outline-offset: 7px; box-shadow: 0 34px 80px rgba(47, 53, 214, 0.2); }
.proj-cover__frame img { width: 100%; height: 100%; object-fit: cover; }

.proj-story { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.proj-story__head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.proj-story__head .section-heading { max-width: 16ch; }
.proj-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.proj-step { position: relative; display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(1.4rem, 2.6vw, 2rem); background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); }
.proj-step::before { content: ""; position: absolute; inset: 6px; border: 1.5px solid var(--blue-100); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.proj-step > * { position: relative; }
.proj-step:nth-child(2) { background: var(--blue-50); }
.proj-step__no { width: 52px; height: 52px; display: grid; place-items: center; background: var(--red); color: var(--white); font-size: 0.875rem; font-weight: 700; clip-path: var(--star8); margin-bottom: 0.4rem; }
.proj-step h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-step p { font-size: 1rem; line-height: 1.65; color: var(--muted); }
.proj-step--accent { background: var(--blue); border-color: var(--blue); color: var(--white); }
.proj-step--accent::before { border-color: rgba(255, 255, 255, 0.3); }
.proj-step--accent .project-results li::before { background: var(--white); }
.proj-step--accent .project-results li { font-size: 1rem; }
.project-results { display: grid; gap: 0.9rem; }

.proj-gallery { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.25rem; height: clamp(420px, 52vw, 640px); padding-block: 0; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.proj-gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-100); min-height: 0; }
.proj-gallery figure:first-child { grid-row: 1 / span 2; }
.proj-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.proj-gallery figure:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
  .proj-hero__grid { grid-template-columns: 1fr; align-items: start; }
  .proj-steps { grid-template-columns: 1fr; }
  .proj-gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .proj-gallery figure, .proj-gallery figure:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .proj-cover__frame { aspect-ratio: 4 / 3; border-radius: 50% 50% 1.25rem 1.25rem / 18% 18% 1.25rem 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════
   v12 — compact start block, tidy journal footer
   ═══════════════════════════════════════════════════════════ */

/* ───────── start block: roughly half the height ───────── */
.start-wrap { padding-block: 0 clamp(1.25rem, 3vw, 2rem); }
.start-panel { padding: clamp(1.1rem, 2.6vw, 2rem); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.start-panel .lead-copy .section-heading { font-size: clamp(1.6rem, 3vw, 2.35rem); max-width: 14ch; line-height: 1.05; }
.start-intro { margin-top: 0.6rem; font-size: 0.9375rem; }
.start-options { margin-top: 1.1rem; gap: 0.6rem; }
.start-option { padding: 0.75rem 1rem; border-radius: 1rem; gap: 0.15rem; }
.start-option b { font-size: 1.0625rem; }
.start-option > span:last-child { font-size: 0.8125rem; line-height: 1.4; }
.start-option__tag { font-size: 0.625rem; }

.start-card { padding: clamp(1rem, 2vw, 1.4rem); }
.start-pane { gap: 0.7rem; }
.start-pane__title { font-size: 1.25rem; }
.start-card .mini-cal__head { margin-bottom: 0.5rem; }
.start-card .mini-cal__head h3 { font-size: 0.9375rem; }
.start-card .mini-cal__head button { width: 32px; height: 32px; }
.start-card .mini-cal__week { margin-bottom: 0.25rem; }
.start-card .mini-cal__week, .start-card .mini-cal__days { gap: 0.25rem; }
.start-card .mini-day { aspect-ratio: auto; height: 2.15rem; border-radius: 10px; font-size: 0.8125rem; }
.start-card .lead-submit { padding-block: 0.8rem; margin-top: 0.15rem; }
.start-card .lead-note { font-size: 0.75rem; }

.start-card .lead-form { gap: 0.65rem; }
.start-card .lead-row { gap: 0.65rem; }
.start-card .lead-field { gap: 0.25rem; }
.start-card .lead-field label, .start-card .lead-field legend { font-size: 0.6875rem; }
.start-card .lead-field input[type="text"], .start-card .lead-field input[type="email"], .start-card .lead-field select, .start-card .lead-field textarea { padding: 0.6rem 0.85rem; font-size: 0.9rem; border-radius: 0.75rem; }
.start-card .lead-field textarea { min-height: 54px; }
.start-card .chip span { padding: 0.35rem 0.8rem; font-size: 0.8125rem; }
.start-card .lead-chips { gap: 0.4rem; }
.start-card .lead-success { padding: 1rem 0.5rem; }
.start-card .lead-success__star { width: 44px; height: 44px; margin-bottom: 0.75rem; }

/* ───────── journal: one tidy toolbar under the cards ───────── */
.journal-section { padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.journal-track-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; }
.journal-track { grid-column: 1 / -1; }
.journal-controls { margin-top: 1.1rem; gap: 0.5rem; grid-column: 1; }
.journal-btn { width: 42px; height: 42px; border: 1.5px solid var(--blue-200); color: var(--blue); font-size: 1rem; background: var(--white); transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease); }
.journal-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); transform: translateY(-2px); }
.journal-show-all { grid-column: 2; margin-top: 1.1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.25rem; border: 1.5px solid var(--blue); border-radius: var(--radius-pill); color: var(--blue); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: background 0.25s, color 0.25s, gap 0.25s var(--ease); }
.journal-show-all:hover { background: var(--blue); color: var(--white); gap: 0.8rem; }

/* start block: drop the redundant pane titles and small print for a tighter panel */
.start-pane__title, .start-card .lead-note { display: none; }

/* ═══ v13 — start block sits under the work section; no red in the case cards ═══ */
.start-section { padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem); }
.start-section .start-wrap { padding-block: 0; }
.cases-stack .case-card .case-card__arc { outline: none; }
.cases-stack .case-card__title::before { color: var(--blue); }

/* ═══════════════════════════════════════════════════════════
   v14 — inner pages in the new structure, slim footer
   ═══════════════════════════════════════════════════════════ */

/* footer: description + pages + contact */
.sf-grid { grid-template-columns: 1.8fr 0.7fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.sf-col--brand p { max-width: 46ch; }
.sf-logo { margin-bottom: 1.1rem; }

/* page head used by Work / Services / Consultation */
.page-head { padding: clamp(7rem, 14vw, 9rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.page-head .page-hero__title { font-size: clamp(2.6rem, 7.5vw, 5.5rem); }
.page-head__lead { margin-top: 1.1rem; max-width: 42ch; font-size: clamp(1.0625rem, 2.2vw, 1.3rem); line-height: 1.5; color: var(--muted); }
.page-head .tile-cluster--arch { width: min(100%, calc(var(--cols, 2) * 92px)); justify-self: end; }

/* work */
.page-content { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-content .filters { margin-bottom: 1.5rem; }

/* services */
.purpose-section { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.purpose-panel { position: relative; overflow: hidden; isolation: isolate; background: var(--blue); color: var(--white); border-radius: var(--radius-lg); padding: clamp(1.75rem, 6vw, 4.25rem); }
.purpose-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lat-white) center / 64px; opacity: 0.1; -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%); mask-image: linear-gradient(120deg, #000, transparent 70%); }
.purpose-panel .section-label { color: var(--blue-200); }
.purpose-panel .section-label::before { background: var(--white); }
.purpose-panel .section-heading { max-width: 22ch; font-size: clamp(1.75rem, 4.2vw, 3rem); }
.purpose-text { margin-top: 1.25rem; max-width: 52ch; font-size: clamp(1rem, 2vw, 1.125rem); line-height: 1.65; color: rgba(255, 255, 255, 0.82); }

.services-section, .process-section2 { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.section-head .section-heading { max-width: 16ch; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 0.8rem; padding: clamp(1.25rem, 2.4vw, 1.75rem); background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s; }
.svc-card::before { content: ""; position: absolute; inset: 6px; border: 1.5px solid var(--blue-100); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.svc-card > * { position: relative; }
.svc-card:nth-child(3n+2) { background: var(--blue-50); }
.svc-card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 22px 50px rgba(47, 53, 214, 0.15); }
.svc-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.svc-card__icon { width: 48px; height: 48px; padding: 10px; border-radius: 14px; background: var(--blue-100); color: var(--blue); transition: background 0.3s, color 0.3s; }
.svc-card__icon svg { display: block; width: 100%; height: 100%; }
.svc-card:hover .svc-card__icon { background: var(--blue); color: var(--white); }
.svc-card__num { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.svc-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.03em; text-transform: lowercase; }
.svc-card p { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); flex: 1; }
.svc-card .case-tags li { border-color: var(--blue-200); color: var(--blue); opacity: 1; }

.proc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.proc li { position: relative; display: grid; gap: 0.5rem; align-content: start; padding-right: 1rem; }
.proc li::after { content: ""; position: absolute; top: 20px; left: 52px; right: 0; height: 2px; background: var(--blue-200); }
.proc li:last-child::after { content: none; }
.proc__no { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 0.875rem; font-weight: 700; margin-bottom: 0.6rem; }
.proc h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; text-transform: lowercase; }
.proc p { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); max-width: 26ch; }

/* consultation page */
.book-layout { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.book-panel { background: var(--white); border-color: var(--blue-200); box-shadow: 0 24px 60px rgba(47, 53, 214, 0.1); }
.book-info h2 { text-transform: lowercase; }
.cal-day--today { box-shadow: inset 0 0 0 2px var(--red); }

/* ═══════════════════════════════════════════════════════════
   v15 — mobile pass
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; }
  .proc li::after { content: none; }
  .page-head__grid { grid-template-columns: 1fr; align-items: start; }
  .page-head .tile-cluster--arch { justify-self: start; --tile: 68px; }
}
@media (max-width: 600px) {
  .svc-grid, .proc { grid-template-columns: 1fr; }
  .page-head { padding-top: 6.5rem; }
  .page-head .tile-cluster--arch { display: none; }
}
@media (max-width: 520px) {
  :root { --pad: 1.1rem; }
  .main-hero { padding: 6.5rem var(--pad) 3rem; }
  .hero-arch { width: calc(100vw - 5.5rem); }
  .hero-arch__inner { padding-top: clamp(4.25rem, 20vw, 5.5rem); gap: 1.1rem; }
  .hero-eyebrow { font-size: 0.6875rem; letter-spacing: 0.1em; white-space: nowrap; }
  .main-hero__actions { width: 100%; justify-content: center; }
  .intro-grid .tile-cluster--arch { width: min(100%, 290px); }
  .section-heading { max-width: none; }
  .intro-copy .section-heading { font-size: clamp(2rem, 9.5vw, 2.5rem); }
  .wwd-card { padding: 4.75rem 1.4rem 1.9rem; }
  .cases-stack { gap: 1.75rem; }
  .section-head--split .tile-cluster { display: none; }
  .start-panel { padding: 1rem; }
  .start-card { padding: 1rem; }
  .lead-chips .chip span { font-size: 0.8125rem; }
  .sf-grid { gap: 1.75rem; }
  .sf-bottom { flex-direction: column; gap: 0.4rem; }
  .sf-arch__inner { padding-inline: 1.25rem; }
  .sf-arch__actions .btn-primary, .sf-arch__actions .btn-ghost { width: 100%; justify-content: center; }
  .journal-card { flex-basis: 82vw; }
  .proj-hero { padding-top: 6.5rem; }
  .project-next__arrow { width: 44px; height: 44px; }
  .nav-cta { padding: 0.55rem 1rem; }
}
@media (max-width: 360px) {
  .site-nav__logo { height: 30px; }
  .nav-cta { font-size: 0.8125rem; padding-inline: 0.85rem; }
}
/* touch screens: no hover-only affordances, keep tiles calm */
@media (hover: none) {
  .wwd-card:hover, .svc-card:hover, .journal-card:hover, .cases-stack .case-card:hover { transform: none; }
}

/* comfortable tap targets on touch screens */
@media (max-width: 900px) {
  .sf-col a { display: inline-block; padding-block: 0.4rem; }
  .sf-bottom a { padding-block: 0.4rem; }
  .mini-cal__head button, .start-card .mini-cal__head button { width: 40px; height: 40px; }
  .chip span { padding-block: 0.5rem; }
}

/* footer columns collapse on tablets and phones */
@media (max-width: 900px) { .sf-grid { grid-template-columns: 1fr 1fr; } .sf-col--brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .sf-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   Menu overlay: logo-blue panel, big links with descriptions,
   a tiled mehrab on the right, contact row at the bottom
   ═══════════════════════════════════════════════════════════ */
.nav-panel { background: var(--blue); color: var(--white); padding: 7rem var(--pad) 2rem; justify-content: flex-start; overflow-y: auto; }
.nav-panel::before { background-color: transparent; opacity: 0.1; -webkit-mask-image: linear-gradient(120deg, #000, transparent 75%); mask-image: linear-gradient(120deg, #000, transparent 75%); }
.nav-panel > * { position: relative; }
.nav-panel__body { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.nav-panel__links { display: flex; flex-direction: column; gap: 0; }
.nav-panel__links a { display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: 0.25rem 1rem; padding: clamp(0.8rem, 2.2vh, 1.25rem) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.24); color: var(--white); font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; transform: none; opacity: 0; translate: 0 22px; transition: opacity 0.5s var(--ease), translate 0.6s var(--ease), padding 0.35s var(--ease), border-color 0.3s; }
.nav-panel__links a:first-child { border-top: 1px solid rgba(255, 255, 255, 0.24); }
.nav-panel.is-open .nav-panel__links a { opacity: 1; translate: 0 0; }
.nav-panel.is-open .nav-panel__links a:nth-child(1) { transition-delay: 0.12s, 0.12s, 0s, 0s; }
.nav-panel.is-open .nav-panel__links a:nth-child(2) { transition-delay: 0.2s, 0.2s, 0s, 0s; }
.nav-panel.is-open .nav-panel__links a:nth-child(3) { transition-delay: 0.28s, 0.28s, 0s, 0s; }
.nav-panel.is-open .nav-panel__links a:nth-child(4) { transition-delay: 0.36s, 0.36s, 0s, 0s; }
.nav-panel__links a small { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--blue-200); opacity: 1; }
.nav-panel__links a b { display: block; font-weight: 600; text-transform: lowercase; }
.nav-panel__links a em { display: block; margin-top: 0.3rem; font-style: normal; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, 0.72); }
.nav-arrow { font-style: normal; font-size: 1.5rem; opacity: 0; translate: -12px 0; transition: opacity 0.3s, translate 0.4s var(--ease); }
.nav-panel__links a:hover, .nav-panel__links a:focus-visible { color: var(--white); padding-left: 0.9rem; border-bottom-color: var(--white); transform: none; }
.nav-panel__links a:hover .nav-arrow, .nav-panel__links a:focus-visible .nav-arrow { opacity: 1; translate: 0 0; }
.nav-panel__links a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }
.nav-panel__links a[aria-current="page"] small { color: var(--white); }
.nav-panel__links a[aria-current="page"] b::after { content: ""; display: inline-block; width: 0.28em; height: 0.28em; margin-left: 0.45em; background: var(--white); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); vertical-align: 0.2em; }

.nav-panel__art { justify-self: center; background: var(--blue); box-shadow: 0 0 0 8px var(--blue), 0 0 0 11px var(--white), 0 0 0 21px var(--blue), 0 0 0 25px var(--red), 0 40px 80px rgba(11, 13, 61, 0.35); }
.nav-panel__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.nav-panel__mail { font-size: 1.0625rem; font-weight: 500; color: var(--white); border-bottom: 1.5px solid rgba(255, 255, 255, 0.5); padding-bottom: 0.15rem; transition: border-color 0.2s; }
.nav-panel__mail:hover { border-color: var(--white); }
.nav-panel__foot .btn-primary { background: var(--white); color: var(--blue); }
.nav-panel__foot .btn-primary:hover { background: var(--blue-900); color: var(--white); }

@media (max-width: 900px) {
  .nav-panel { padding-top: 6rem; }
  .nav-panel__body { grid-template-columns: 1fr; align-items: start; }
  .nav-panel__art { display: none; }
  .nav-panel__links a { font-size: clamp(1.9rem, 9vw, 2.75rem); }
}
@media (max-width: 520px) {
  .nav-panel__links a { grid-template-columns: 2rem 1fr auto; gap: 0.25rem 0.6rem; }
  .nav-panel__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .nav-panel__foot .btn-primary { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .nav-panel__links a { opacity: 1; translate: 0 0; transition: none; } }

/* ═══════════════════════════════════════════════════════════
   v16 — about, journal index, article pages, 6-link menu
   ═══════════════════════════════════════════════════════════ */

/* menu with six links must fit short screens */
.nav-panel__links a { font-size: clamp(1.6rem, min(4.6vw, 6.6vh), 3.2rem); padding-block: clamp(0.45rem, 1.5vh, 0.95rem); }
.nav-panel__links a em { font-size: clamp(0.8125rem, 1.6vh, 0.9375rem); margin-top: 0.15rem; }
.intro-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-top: 1.75rem; }
.intro-links .link-arrow { margin-top: 0; }

/* about */
.about-story { padding-block: clamp(1.5rem, 4vw, 3rem) 0; }
.about-story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
.about-story .section-heading { max-width: 14ch; }
.about-story__text { display: grid; gap: 1.1rem; font-size: clamp(1rem, 1.8vw, 1.125rem); line-height: 1.7; color: var(--muted); }
.about-story__text .link-arrow { color: var(--blue); margin-top: 0.4rem; }
.about-people { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.people { display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.people--founders { grid-template-columns: repeat(2, 1fr); }
.people--team { grid-template-columns: repeat(4, 1fr); }
.person__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--blue-100); border-radius: 50% 50% 1.25rem 1.25rem / 28% 28% 1.25rem 1.25rem; outline: 2px solid var(--red); outline-offset: 6px; box-shadow: 0 24px 56px rgba(47, 53, 214, 0.16); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.person:hover .person__photo img { transform: scale(1.05); }
.person__body { padding: 1.5rem 0.4rem 0; text-align: center; }
.person__body h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; }
.person__role { margin-top: 0.15rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.person__bio { margin: 0.8rem auto 0; max-width: 34ch; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.person--founder .person__photo { aspect-ratio: 5 / 5.4; }
.person--founder .person__bio { font-size: 1rem; }
.people--founders .person { padding-inline: clamp(0rem, 4vw, 3rem); }
.people--team .person__photo { outline-offset: 4px; }
@media (max-width: 900px) { .about-story__grid { grid-template-columns: 1fr; } .people--team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .people--founders { grid-template-columns: 1fr; } .people--founders .person { padding-inline: 0.75rem; } .people--team { gap: 1.5rem 1rem; } .people--team .person__bio { display: none; } }

/* journal index */
.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; margin-top: clamp(1.25rem, 3vw, 2rem); }
.journal-grid .journal-card { flex: none; width: auto; }
.journal-card.hidden { display: none; }

/* article */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 350; background: transparent; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--red); transition: width 0.12s linear; }
.post-head { padding: clamp(7rem, 14vw, 9rem) 0 clamp(1.25rem, 3vw, 2rem); }
.post-head__inner { max-width: 60rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.8125rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.crumbs a { color: var(--blue); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-cat { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.9rem; }
.post-cat::before { content: ""; width: 7px; height: 7px; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.post-title { font-size: clamp(2.2rem, 6vw, 4.25rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; max-width: 18ch; }
.post-lead { margin-top: 1.1rem; max-width: 44ch; font-size: clamp(1.0625rem, 2.2vw, 1.3rem); line-height: 1.5; color: var(--muted); }
.post-meta { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.75rem; }
.post-meta__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--blue-200); }
.post-meta__by { display: block; font-size: 0.9375rem; font-weight: 600; }
.post-meta__by a { color: var(--blue); }
.post-meta__sub { display: block; font-size: 0.8125rem; color: var(--muted); }
.post-cover { margin: 0; aspect-ratio: 16 / 8; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-100); box-shadow: 0 30px 70px rgba(47, 53, 214, 0.16); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 15rem minmax(0, 44rem); gap: clamp(2rem, 6vw, 5rem); justify-content: center; padding-block: clamp(2rem, 5vw, 3.5rem); }
.post-aside { display: grid; gap: 1.75rem; align-content: start; }
.post-toc p, .post-share p { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.post-toc ol { display: grid; gap: 0.15rem; border-left: 2px solid var(--blue-100); }
.post-toc a { display: block; padding: 0.4rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; font-size: 0.9rem; line-height: 1.35; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.post-toc a:hover, .post-toc a.is-active { color: var(--blue); border-left-color: var(--blue); }
.post-share { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.post-share p { flex-basis: 100%; margin-bottom: 0.1rem; }
.post-share a, .post-share button { padding: 0.45rem 0.9rem; border: 1.5px solid var(--blue-200); border-radius: var(--radius-pill); font-size: 0.8125rem; font-weight: 600; color: var(--blue); background: var(--white); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.post-share a:hover, .post-share button:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.post-summary { position: relative; padding: 1.25rem 1.5rem; margin-bottom: 2.25rem; background: var(--blue-50); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); }
.post-summary::before { content: ""; position: absolute; inset: 5px; border: 1.5px solid rgba(217, 26, 58, 0.28); border-radius: calc(var(--radius-lg) - 7px); pointer-events: none; }
.post-summary h2 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.7rem; position: relative; }
.post-summary ul { display: grid; gap: 0.5rem; position: relative; }
.post-summary li { position: relative; padding-left: 1.5rem; font-size: 1rem; line-height: 1.5; }
.post-summary li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 0.8rem; height: 0.8rem; background: var(--blue); clip-path: var(--star8); }
.post-section { scroll-margin-top: 7rem; margin-bottom: 2.25rem; }
.post-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 0.9rem; }
.post-section p { font-size: 1.125rem; line-height: 1.75; color: var(--ink); margin-bottom: 1.1rem; max-width: 68ch; }
.post-section ul { display: grid; gap: 0.6rem; margin: 0 0 1.1rem; padding: 0; }
.post-section li { position: relative; padding-left: 1.6rem; font-size: 1.0625rem; line-height: 1.65; }
.post-section li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.65rem; height: 0.65rem; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.author-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 1.5rem; margin-top: 2.5rem; border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); background: var(--white); }
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-card__name { font-weight: 600; font-size: 1.0625rem; }
.author-card__role { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.3rem; }
.author-card .link-arrow { color: var(--blue); font-size: 0.875rem; }
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--blue); color: var(--white); }
.post-cta p { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.post-cta .btn-primary { background: var(--white); color: var(--blue); }
.post-cta .btn-primary:hover { background: var(--blue-900); color: var(--white); }
.related { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }
.related__all { margin-top: 1.5rem; text-align: center; }
@media (max-width: 900px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-aside { order: 2; grid-template-columns: 1fr; margin-top: 0.5rem; }
  .post-toc { padding: 1rem 1.1rem; background: var(--blue-50); border-radius: var(--radius); }
  .post-cover { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) { .post-section p { font-size: 1.0625rem; } .post-cta { flex-direction: column; align-items: stretch; text-align: center; } .post-cta .btn-primary { justify-content: center; } .author-card { align-items: flex-start; } }

ol { list-style: none; }

/* ═══════════════════════════════════════════════════════════
   v17 — red menu button, team strip, work previews, illustrated covers
   ═══════════════════════════════════════════════════════════ */
.nav-menu-btn { background: var(--red); }
.nav-menu-btn:hover { background: #B8142F; }
body.nav-open .nav-menu-btn { background: var(--white); }

/* compact team strip on the home page */
.team-strip { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.5rem); margin-top: clamp(1.5rem, 3vw, 2.25rem); padding: 0.85rem 1.25rem 0.85rem 1rem; background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-pill); transition: border-color 0.3s, box-shadow 0.4s, transform 0.4s var(--ease); }
.team-strip:hover { border-color: var(--blue); box-shadow: 0 16px 40px rgba(47, 53, 214, 0.14); transform: translateY(-3px); }
.team-strip__faces { display: flex; flex: none; }
.team-strip__faces img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); margin-left: -12px; background: var(--blue-100); }
.team-strip__faces img:first-child { margin-left: 0; }
.team-strip__text { display: grid; gap: 0.1rem; min-width: 0; flex: 1; }
.team-strip__text b { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; }
.team-strip__text em { font-style: normal; font-size: 0.875rem; color: var(--muted); }
.team-strip__go { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); transition: transform 0.3s var(--ease); }
.team-strip:hover .team-strip__go { transform: translateX(4px); }
@media (max-width: 600px) {
  .team-strip { border-radius: 1.5rem; flex-wrap: wrap; padding: 1rem; }
  .team-strip__faces img { width: 40px; height: 40px; }
  .team-strip__text { flex-basis: 100%; order: 3; }
  .team-strip__go { margin-left: auto; order: 2; }
}

/* work previews and illustrated covers */
.case-card__arc img, .journal-card__media img, .post-cover img, .proj-cover__frame img { object-fit: cover; }
.proj-cover__frame { background: var(--blue); }
.journal-card__media, .post-cover { background: var(--blue); }
.proj-gallery img.gal { transform-origin: 50% 50%; }
.proj-gallery img.gal--a { scale: 1.75; transform-origin: 34% 48%; }
.proj-gallery img.gal--b { scale: 2.4; transform-origin: 80% 72%; }
.proj-gallery img.gal--c { scale: 2.1; transform-origin: 60% 38%; }

/* ═══════════════════════════════════════════════════════════
   v18 — every page opens differently; one team; article header
   ═══════════════════════════════════════════════════════════ */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ───────── about: type-led opening, one team ───────── */
.about-hero { padding: clamp(7.5rem, 15vw, 10rem) 0 clamp(1.5rem, 4vw, 3rem); }
.about-hero__title { font-size: clamp(2.4rem, 6.6vw, 5.25rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; max-width: 17ch; text-transform: lowercase; }
.about-hero__lead { margin-top: 1.5rem; max-width: 40ch; font-size: clamp(1.0625rem, 2.2vw, 1.3rem); line-height: 1.55; color: var(--muted); }
.about-team { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.25rem); }
.team-grid .person__photo { aspect-ratio: 4 / 5; outline: 2px solid var(--blue-200); outline-offset: 5px; box-shadow: 0 18px 44px rgba(47, 53, 214, 0.12); }
.team-grid .person--founder .person__photo { outline-color: var(--red); }
.team-grid .person__body { padding-top: 1.35rem; }
.team-grid .person__bio { max-width: 30ch; }
.about-principles { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.values--3 { grid-template-columns: repeat(3, 1fr); }
.values--3 p { max-width: 34ch; }
@media (max-width: 900px) { .values--3 { grid-template-columns: 1fr; } .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .team-grid .person__bio { display: none; } .team-grid { gap: 1.5rem 0.9rem; } }

/* ───────── work: typographic opening ───────── */
.work-head { padding: clamp(7rem, 13vw, 9rem) 0 clamp(0.5rem, 2vw, 1rem); }
.work-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; }
.work-head .page-hero__title { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.work-head__lead { max-width: 30ch; font-size: clamp(1rem, 1.8vw, 1.125rem); line-height: 1.55; color: var(--muted); padding-bottom: 0.5rem; }

/* ───────── services: the purpose panel is the opening ───────── */
.svc-hero { padding: clamp(6.75rem, 12vw, 8.5rem) 0 clamp(1rem, 3vw, 2rem); }
.svc-hero__panel { padding: clamp(1.75rem, 6vw, 4.5rem); }
.svc-hero__title { font-size: clamp(3rem, 9vw, 7rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; margin: 0.35rem 0 1.25rem; text-transform: lowercase; }
.svc-hero .purpose-text { max-width: 46ch; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.svc-chips a { display: inline-flex; padding: 0.5rem 1rem; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius-pill); font-size: 0.875rem; font-weight: 600; color: var(--white); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.svc-chips a:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
.svc-card { scroll-margin-top: 7rem; }

/* ───────── journal: featured article ───────── */
.journal-head { padding: clamp(7rem, 13vw, 9rem) 0 clamp(0.5rem, 2vw, 1rem); }
.journal-head__title { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.featured { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; padding: clamp(0.9rem, 2vw, 1.25rem); background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); transition: border-color 0.3s, box-shadow 0.4s; }
.featured:hover { border-color: var(--blue); box-shadow: 0 26px 60px rgba(47, 53, 214, 0.16); }
.featured__media { display: block; aspect-ratio: 5 / 4; border-radius: calc(var(--radius-lg) - 6px); overflow: hidden; background: var(--blue); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.featured:hover .featured__media img { transform: scale(1.04); }
.featured__body { display: grid; gap: 0.8rem; padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1.5rem) 0; justify-items: start; }
.featured__tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 0.55rem; }
.featured__tag::before { content: ""; width: 7px; height: 7px; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.featured__title { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.featured__excerpt { font-size: clamp(1rem, 1.8vw, 1.125rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.featured__meta { font-size: 0.8125rem; color: var(--muted); }
.featured__go { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; padding: 0.7rem 1.3rem; border-radius: var(--radius-pill); background: var(--blue); color: var(--white); font-size: 0.875rem; font-weight: 600; transition: background 0.2s, gap 0.25s var(--ease); }
.featured:hover .featured__go { background: var(--blue-900); gap: 0.8rem; }
.featured__go i { font-style: normal; }
@media (max-width: 800px) { .featured { grid-template-columns: 1fr; } .featured__body { padding: 0.25rem 0.5rem 0.75rem; } }

/* ───────── consultation: compact opening ───────── */
.book-head { padding: clamp(6.5rem, 11vw, 8rem) 0 0; }
.book-head .page-hero__title { font-size: clamp(2.4rem, 6vw, 4.25rem); }

/* ───────── article: cover beside the title ───────── */
.post-head { padding: clamp(6.75rem, 12vw, 8.5rem) 0 clamp(1rem, 3vw, 2rem); }
.post-head__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.post-head__copy .crumbs ol { margin-bottom: 1rem; }
.post-head .post-title { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.04; max-width: 17ch; }
.post-head .post-lead { margin-top: 1rem; font-size: clamp(1.0625rem, 1.7vw, 1.2rem); max-width: 42ch; }
.post-head .post-meta { margin-top: 1.5rem; }
.post-head .post-cover { aspect-ratio: 5 / 4; width: 100%; max-width: 520px; justify-self: end; border-radius: var(--radius-lg); box-shadow: 0 26px 60px rgba(47, 53, 214, 0.2); }
@media (max-width: 900px) {
  .post-head__grid { grid-template-columns: 1fr; }
  .post-head .post-cover { justify-self: stretch; max-width: none; aspect-ratio: 16 / 11; }
  .post-head .post-title { max-width: none; }
}
.post-layout { padding-top: clamp(1.5rem, 4vw, 2.5rem); }

/* ═══════════════════════════════════════════════════════════
   v19 — home crew section, redesigned consultation page
   ═══════════════════════════════════════════════════════════ */

/* home: the team, shown properly */
.crew-section { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(0.5rem, 2vw, 1rem); }
.crew__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.crew__head .section-heading { max-width: 18ch; }
.crew { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.9rem, 2vw, 1.5rem); align-items: end; }
.crew__item { display: grid; gap: 0.2rem; text-align: center; }
.crew__item:nth-child(even) { margin-bottom: clamp(0.5rem, 2.4vw, 2rem); }
.crew__photo { display: block; aspect-ratio: 4 / 5; margin-bottom: 0.85rem; overflow: hidden; background: var(--blue-100); border-radius: 50% 50% 1rem 1rem / 28% 28% 1rem 1rem; outline: 2px solid var(--blue-200); outline-offset: 4px; transition: outline-color 0.3s, transform 0.5s var(--ease); }
.crew__item--founder .crew__photo { outline-color: var(--red); }
.crew__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.crew__item:hover .crew__photo { transform: translateY(-4px); }
.crew__item:hover .crew__photo img { transform: scale(1.06); }
.crew__item b { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.crew__item em { font-style: normal; font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 900px) { .crew { grid-template-columns: repeat(3, 1fr); row-gap: 1.75rem; } .crew__item:nth-child(even) { margin-bottom: 0; } }
@media (max-width: 420px) { .crew { grid-template-columns: repeat(2, 1fr); } }

/* consultation */
.book-head { padding: clamp(6.75rem, 12vw, 8.5rem) 0 clamp(0.5rem, 2vw, 1rem); }
.book-head__lead { margin-top: 1rem; max-width: 36ch; font-size: clamp(1.0625rem, 2.2vw, 1.3rem); line-height: 1.5; color: var(--muted); }
.book-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; padding-top: clamp(1.25rem, 3vw, 2rem); padding-bottom: 0; }
.book-info h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 0.9rem; text-transform: lowercase; }
.book-info__intro { font-size: 1.0625rem; line-height: 1.65; color: var(--muted); max-width: 44ch; margin-bottom: 1.5rem; }
.book-benefits { display: grid; gap: 1.1rem; margin-bottom: 1.25rem; }
.book-benefits li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start; }
.book-benefits__icon { width: 44px; height: 44px; padding: 9px; border-radius: 13px; background: var(--blue-100); color: var(--blue); }
.book-benefits__icon svg { display: block; width: 100%; height: 100%; }
.book-benefits h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; text-transform: lowercase; margin-bottom: 0.15rem; }
.book-benefits p { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.book-info__note { font-size: 0.9375rem; color: var(--ink); font-weight: 500; padding-left: 0.9rem; border-left: 3px solid var(--red); margin-bottom: 1.75rem; }
.book-price { position: relative; padding: 1.4rem 1.5rem; border-radius: var(--radius-lg); background: var(--blue); color: var(--white); overflow: hidden; isolation: isolate; }
.book-price::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lat-white) center / 64px; opacity: 0.1; -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%); mask-image: linear-gradient(120deg, #000, transparent 70%); }
.book-price__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-200); }
.book-price__amount { margin: 0.35rem 0 0.9rem; font-size: 1.25rem; font-weight: 500; }
.book-price__amount b { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.04em; margin-right: 0.15rem; }
.book-price__amount span { font-size: 0.9375rem; opacity: 0.75; }
.book-price ul { display: grid; gap: 0.4rem; border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: 0.8rem; }
.book-price li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; }
.book-price li b { font-weight: 600; }
.book-summary { margin-top: 1rem; background: var(--blue-50); border: 1.5px solid var(--blue-200); color: var(--ink); }

.book-panel { padding: clamp(1.25rem, 3vw, 2rem); }
.book-panel .book-step-label { margin-bottom: 0.8rem; }
.book-durations { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.75rem; }
.duration { position: relative; cursor: pointer; }
.duration input { position: absolute; opacity: 0; inset: 0; }
.duration > span { display: grid; gap: 0.25rem; height: 100%; padding: 1rem 1.1rem; border: 1.5px solid var(--blue-200); border-radius: 1.1rem; background: var(--white); transition: border-color 0.2s, background 0.2s, box-shadow 0.25s; }
.duration small { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.duration b { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.duration em { font-style: normal; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
.duration i { font-style: normal; margin-top: 0.3rem; font-size: 0.9375rem; font-weight: 700; color: var(--blue); }
.duration:hover > span { border-color: var(--blue); }
.duration input:checked + span { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(47, 53, 214, 0.15); }
.duration input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.book-fee { margin: 0.25rem 0 0.9rem; font-size: 0.9375rem; color: var(--muted); }
.book-fee b { color: var(--ink); font-weight: 700; }

.book-faq { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.book-faq .section-heading { max-width: 14ch; margin-bottom: 1.25rem; }
.faq { display: grid; gap: 0.6rem; max-width: 52rem; }
.faq__item { border: 1.5px solid var(--blue-200); border-radius: 1.1rem; background: var(--white); transition: border-color 0.2s, background 0.2s; }
.faq__item[open] { border-color: var(--blue); background: var(--blue-50); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--blue-200); color: var(--blue); font-size: 1.125rem; font-weight: 500; transition: transform 0.3s var(--ease), background 0.2s, color 0.2s; }
.faq__item[open] summary::after { content: "–"; background: var(--blue); color: var(--white); border-color: var(--blue); }
.faq__item p { padding: 0 1.25rem 1.1rem; font-size: 1rem; line-height: 1.65; color: var(--muted); max-width: 60ch; }

@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr; } .book-panel { order: -1; } }
@media (max-width: 520px) { .book-durations { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   v20 — technical SEO follow-ups, article header and inline images
   ═══════════════════════════════════════════════════════════ */
.site-header { display: contents; }

/* footer / calendar titles are no longer headings (kept visually identical) */
.sf-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.mini-cal__title, .calendar-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.start-card .mini-cal__title { font-size: 0.9375rem; }
.form-success h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }

/* article header: text and cover share one frame, copy anchored top and bottom */
.post-head__grid { align-items: stretch; }
.post-head__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem; min-width: 0; }
.post-head__copy .crumbs ol { margin-bottom: 0; }
.post-head__main { display: grid; gap: 0.9rem; align-content: center; flex: 1; }
.post-head__main .post-cat { margin-bottom: 0; }
.post-head__main .post-lead { margin-top: 0.2rem; }
.post-head .post-meta { margin-top: 0; padding-top: 1.25rem; border-top: 1.5px solid var(--blue-100); }
.post-head .post-cover { align-self: center; }
@media (max-width: 900px) {
  .post-head__copy { gap: 1.25rem; }
  .post-head__main { flex: none; }
  .post-head .post-meta { border-top: 0; padding-top: 0; }
}

/* images and figures inside articles */
.post-body img { max-width: 100%; height: auto; }
.post-figure { margin: 2rem 0 2.25rem; }
.post-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); background: var(--blue-100); box-shadow: 0 18px 44px rgba(47, 53, 214, 0.14); }
.post-figure figcaption { margin-top: 0.7rem; padding-left: 0.9rem; border-left: 3px solid var(--red); font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 1100px) { .post-figure--wide { margin-inline: -4rem; } }
.post-body .post-section figure + p { margin-top: 0.25rem; }

/* 404 */
.notfound { padding: clamp(8rem, 18vw, 12rem) 0 clamp(3rem, 8vw, 6rem); }
.notfound__text { margin-top: 1.1rem; max-width: 40ch; font-size: clamp(1.0625rem, 2.2vw, 1.3rem); line-height: 1.5; color: var(--muted); }
.notfound__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.lead-success__title { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 0.6rem; }

/* ═══ v22 — compact consultation calendar, no fee card ═══ */
.book-panel { padding: clamp(1.1rem, 2.4vw, 1.6rem); }
.book-rate { margin: -1rem 0 1.5rem; font-size: 0.8125rem; color: var(--muted); }
.calendar { padding: 1rem 1.1rem 1.15rem; background: var(--blue-50); border-radius: 1.25rem; }
.calendar .book-step-label { margin-bottom: 0.65rem; }
.calendar-header { margin-bottom: 0.7rem; }
.calendar-title { font-size: 0.9375rem; }
.cal-nav { width: 34px; height: 34px; background: var(--white); }
.calendar-weekdays { gap: 0.3rem; margin-bottom: 0.35rem; font-size: 0.625rem; letter-spacing: 0.04em; }
.calendar-days { gap: 0.3rem; }
.cal-day { aspect-ratio: auto; height: 2.5rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600; background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue-100); }
.cal-day:not(.cal-day--empty):not(:disabled):hover { background: var(--blue); color: var(--white); }
.cal-day--disabled, .cal-day:disabled { background: transparent; color: rgba(11, 13, 61, 0.28); box-shadow: none; opacity: 1; font-weight: 500; }
.cal-day--empty { background: transparent; box-shadow: none; }
.cal-day--today { box-shadow: inset 0 0 0 2px var(--red); }
.cal-day--selected, .cal-day.is-selected { background: var(--blue); color: var(--white); box-shadow: none; }
.time-slots { margin-top: 1.25rem; }
.time-slots-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 0.4rem; }
.time-slot { padding: 0.5rem 0.4rem; border-radius: 0.75rem; }
@media (max-width: 520px) { .cal-day { height: 2.35rem; } .calendar { padding: 0.9rem; } }

/* blog card cover: show the whole illustration (no cartouche cut-out) */
.journal-card__media { clip-path: none; -webkit-clip-path: none; border-radius: 1rem; aspect-ratio: 5 / 4; margin: 0.6rem 0 0; }
.journal-card__media img { object-fit: cover; }

/* ═══ Preloader: tiled Persian-miniature painting ═══ */
.preloader { position: fixed; inset: 0; z-index: 1000; display: none; overflow: hidden; background: var(--paper); }
html.is-loading { overflow: hidden; }
html.is-loading .preloader { display: block; }
.pre-grid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(var(--cols, 8), var(--tile, 200px)); grid-template-rows: repeat(var(--rows, 5), var(--tile, 200px)); }
.pre-tile { padding: 3px; will-change: transform; }
.pre-tile__img { width: 100%; height: 100%; border-radius: 9px; background-repeat: no-repeat; background-color: var(--blue-100); box-shadow: 0 8px 22px rgba(11, 13, 61, 0.14); }

/* ═══ New logo (flower mark + wordmark) ═══ */
.site-nav__logo { height: 32px; width: auto; }
.nav-cta { white-space: nowrap; }
@media (max-width: 480px) { .site-nav__logo { height: 27px; } .nav-cta { font-size: 0.875rem; padding: 0.55rem 0.95rem; } }
@media (max-width: 360px) { .site-nav__logo { height: 24px; } }

/* ═══ Menu symbol + footer mark ═══ */
.nav-panel__mark { width: min(22vw, 250px); aspect-ratio: 3 / 4; border-radius: 999px 999px 22px 22px; background: var(--white); display: grid; place-items: center; align-self: center; }
.nav-panel__mark img { width: 74%; height: auto; display: block; margin-top: 10%; }
.sf-mark { display: block; width: 72px; height: auto; margin-bottom: 0.9rem; }

/* ═══ Footer: logo lockup in one row, tighter spacing ═══ */
.sf-lockup { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.75rem; }
.sf-lockup .sf-mark { width: 52px; margin: 0; flex: none; }
.sf-lockup .sf-logo { width: 130px; margin: 0; }
.site-footer { padding-top: clamp(1.25rem, 3vw, 2rem); }
.sf-grid { padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2vw, 1.25rem); gap: clamp(1.25rem, 3vw, 2.25rem); }
.sf-col h3, .sf-title { margin-bottom: 0.6rem; }
.sf-col ul { gap: 0.1rem; }
.sf-bottom { padding: 0.8rem 0 1rem; }
@media (max-width: 900px) { .sf-grid { gap: 1.25rem; } }
@media (max-width: 560px) { .sf-grid { padding-block: 1.25rem 0.75rem; } .sf-lockup .sf-mark { width: 46px; } .sf-lockup .sf-logo { width: 112px; } }

/* ═══ Hero: soft white fade under the menu so the bar stands out ═══ */
.main-hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(90px, 14vh, 130px); background: linear-gradient(to bottom, rgba(228, 230, 253, 0.55), rgba(228, 230, 253, 0)); z-index: 2; pointer-events: none; }

/* ═══ Team of three (home + about) ═══ */
.crew { grid-template-columns: repeat(3, minmax(0, 230px)); justify-content: center; gap: clamp(0.75rem, 3vw, 2.5rem); align-items: start; }
.crew__item:nth-child(even) { margin-bottom: 0; }
.crew__item:nth-child(odd) { margin-top: clamp(0rem, 2.4vw, 2rem); }
.crew__item b { font-size: clamp(0.8125rem, 2.4vw, 1.0625rem); }
.crew__item em { font-size: clamp(0.6875rem, 1.9vw, 0.8125rem); }
@media (max-width: 900px) { .crew { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; } .crew__item:nth-child(odd) { margin-top: 0; } }
@media (max-width: 420px) { .crew { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; } .crew__photo { margin-bottom: 0.6rem; outline-offset: 3px; } .crew { padding-inline: 5px; } }
.team-grid { grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: center; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } .team-grid .person__bio { font-size: 0.875rem; } }
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-inline: 6px; }
  .team-grid .person { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 1.15rem; align-items: center; text-align: left; }
  .team-grid .person__photo { outline-offset: 3px; }
  .team-grid .person__body { padding: 0; text-align: left; }
  .team-grid .person__role { font-size: 0.6875rem; }
  .team-grid .person__bio { display: block; margin: 0.45rem 0 0; max-width: none; font-size: 0.875rem; line-height: 1.5; }
}

/* ═══ Projects on small screens: less scrolling ═══ */
@media (max-width: 700px) {
  .cases-stack { display: flex; flex-direction: row; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding: 0.5rem var(--pad) 1rem; scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cases-stack::-webkit-scrollbar { display: none; }
  .cases-stack .case-card { flex: 0 0 78%; scroll-snap-align: start; padding: 1rem 1rem 1.25rem; }
  .cases-stack .case-card .case-card__arc { height: auto; aspect-ratio: 16 / 11; margin-bottom: 0.9rem; }
  .cases-stack .case-card__title { font-size: 1.3rem; margin-bottom: 0.6rem; }
  .cases-stack .case-tags { gap: 0.3rem; flex-wrap: wrap; padding-right: 3.2rem; }
  .cases-stack .case-tags li { padding: 0.18rem 0.6rem; font-size: 0.6875rem; }
  /* work page: compact list, every project visible at a glance */
  .work-grid .cases-stack { display: grid; flex-direction: unset; grid-template-columns: 1fr; gap: 0.7rem; overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; }
  .work-grid .case-card { flex: none; display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: "arc title" "arc tags"; column-gap: 1rem; align-content: center; align-items: center; padding: 0.8rem 1rem 0.8rem 0.8rem; }
  .work-grid .cases-stack .case-card .case-card__arc { grid-area: arc; height: 92px; aspect-ratio: auto; margin: 0; border-radius: 999px 999px 0.7rem 0.7rem; }
  .work-grid .case-card__title { grid-area: title; font-size: 1.125rem; margin: 0 0 0.35rem; align-self: end; }
  .work-grid .case-card__title::before { display: none; }
  .work-grid .case-tags { grid-area: tags; align-self: start; }
  .work-grid .case-card__cta { display: none; }
  .work-grid .case-tags { gap: 0.3rem; flex-wrap: wrap; }
  .work-grid .case-tags li { padding: 0.18rem 0.6rem; font-size: 0.6875rem; }
  .work-grid .case-card { padding-block: 0.65rem; }
}

/* ═══ Work: three projects per category = three columns ═══ */
@media (min-width: 1000px) { .work-grid .cases-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; } }

/* header pill stays distinct above the hero tiles */
.site-nav__inner { box-shadow: 0 10px 30px rgba(47, 53, 214, 0.16), 0 0 0 1px rgba(47, 53, 214, 0.1); }

/* ═══ Home: selected work as three category rows (auto-rotating) ═══ */
.work-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.work-row__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-bottom: 0.85rem; margin-bottom: 1.1rem; border-bottom: 1.5px solid var(--blue-200); }
.work-row__head h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.03em; text-transform: lowercase; color: var(--blue-900); }
.work-row__head p { margin-top: 0.2rem; font-size: 0.9375rem; color: var(--muted); max-width: 46ch; }
.work-row__head .link-arrow { white-space: nowrap; }
.work-row__list { display: flex; gap: clamp(0.9rem, 2vw, 1.5rem); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: 0.4rem var(--pad) 1.2rem; -webkit-overflow-scrolling: touch; }
.work-row__list::-webkit-scrollbar { display: none; }
.work-tile { flex: 0 0 clamp(270px, 29vw, 380px); display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); padding: 10px 10px 1.15rem; box-shadow: 0 12px 32px rgba(47, 53, 214, 0.08); transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s; }
.work-tile:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 24px 50px rgba(47, 53, 214, 0.18); }
.work-tile__img { display: block; aspect-ratio: 16 / 11; overflow: hidden; border-radius: calc(var(--radius-lg) - 6px); background: var(--blue-100); }
.work-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.work-tile:hover .work-tile__img img { transform: scale(1.05); }
.work-tile__body { padding: 1rem 0.55rem 0; display: grid; gap: 0.35rem; justify-items: start; }
.work-tile__name { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.025em; }
.work-tile__name a { color: var(--ink); }
.work-tile__body p { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.work-tile__btn { margin-top: 0.55rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border: 1.5px solid var(--blue); border-radius: var(--radius-pill); font-size: 0.8125rem; font-weight: 600; color: var(--blue); transition: background 0.25s, color 0.25s; }
.work-tile__btn:hover, .work-tile__btn:focus-visible { background: var(--blue); color: var(--white); }
@media (max-width: 700px) {
  .work-row__head { align-items: center; }
  .work-row__head p { display: none; }
  .work-tile { flex-basis: 74%; }
}
.work-row { min-width: 0; }

/* ═══ Language switch (EN / فارسی) ═══ */
.nav-lang { display: none; }
@media (min-width: 560px) { .nav-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 0.85rem; margin-inline: 0 0.6rem; border-radius: var(--radius-pill); border: 1.5px solid var(--blue-200); font-size: 0.8125rem; font-weight: 600; color: var(--blue); background: var(--white); transition: background 0.25s, color 0.25s; } .nav-lang:hover { background: var(--blue); color: var(--white); } }
.panel-lang { display: inline-flex; align-items: center; padding: 0.55rem 1.1rem; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius-pill); color: var(--white); font-size: 0.875rem; font-weight: 600; transition: background 0.25s, color 0.25s; }
.panel-lang:hover { background: var(--white); color: var(--blue); }

/* ═══ Soft scroll (Lenis) ═══ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
/* every tile on its own GPU layer made scrolling heavy: let GSAP promote only what is animating */
.tile, .canvas-card { will-change: auto; }

/* ═══ Booking: phone field + request-received state ═══ */
.lead-field input[type="tel"], .start-card .lead-field input[type="tel"] { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--blue-200); border-radius: var(--radius-md, 0.9rem); background: var(--white); color: var(--ink); font: inherit; }
.start-card .lead-field input[type="tel"] { padding: 0.6rem 0.85rem; font-size: 0.9rem; }
.book-pay-note { margin: -0.4rem 0 0.9rem; font-size: 0.8125rem; color: var(--muted); }
.form-success:focus { outline: none; }
.book-recap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1.25rem; margin: 1.25rem 0 0; padding: 1rem 1.15rem; background: var(--blue-50); border: 1.5px solid var(--blue-200); border-radius: 1.1rem; }
.book-recap div { display: grid; gap: 0.1rem; }
.book-recap dt { font-size: 0.75rem; color: var(--muted); }
.book-recap dd { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.book-next__title { margin: 1.5rem 0 0.6rem; font-weight: 700; color: var(--ink); }
.book-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; counter-reset: bn; }
.book-next li { position: relative; padding-inline-start: 2.2rem; line-height: 1.6; counter-increment: bn; }
.book-next li::before { content: counter(bn); position: absolute; inset-inline-start: 0; top: 0.1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; }
.book-note { margin-top: 1.1rem; font-size: 0.875rem; color: var(--muted); }
.book-note a { color: var(--blue); font-weight: 600; }
@media (max-width: 420px) { .book-recap { grid-template-columns: 1fr; } }

/* ═══ Booking FAQ: heading column + accordion ═══ */
.book-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.book-faq__intro { position: sticky; top: 6.5rem; }
.book-faq .section-heading { max-width: 12ch; margin-bottom: 0.9rem; }
.book-faq__sub { color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 30ch; }
.faq-aside { margin-top: 1.5rem; padding: 0.9rem 1.1rem; border: 1.5px dashed var(--blue-200); border-radius: 1rem; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.faq-aside a { color: var(--blue); font-weight: 600; white-space: nowrap; }
.book-faq .faq { max-width: none; }
@media (max-width: 860px) { .book-faq { grid-template-columns: 1fr; } .book-faq__intro { position: static; } .book-faq .section-heading, .book-faq__sub { max-width: none; } }

/* WordPress build: honeypot field + inline form errors */
.wb-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b32d2e; font-weight: 600; margin: 0 0 0.75rem; }

/* ==========================================================================
   v21 — project (case study) page: hero + fact strip, framed showcase, editorial story, gallery, next-project card
   Logical properties only, so the same rules serve English and Persian.
   ========================================================================== */
.proj-hero { position: relative; padding: clamp(6.25rem, 10vw, 7.75rem) 0 0; }
.proj-hero__main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 1.5rem clamp(2rem, 6vw, 5.5rem); max-width: none; }
.proj-hero__head .project-back { margin-bottom: 0.9rem; }
.proj-hero .page-hero__title { font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: 0.95; max-width: none; margin-top: 0.4rem; }
.proj-hero__side { padding-bottom: 0.5rem; padding-inline-start: clamp(1.25rem, 3vw, 2.25rem); border-inline-start: 1.5px solid var(--blue-200); }
.proj-hero .project-lead { max-width: 38ch; margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); }
.proj-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1rem; margin-top: 1.5rem; }
.proj-hero__actions .project-tags { margin: 0; }
@media (max-width: 900px) {
  .proj-hero__main { grid-template-columns: 1fr; }
  .proj-hero__side { padding-inline-start: 0; border-inline-start: 0; padding-bottom: 0; }
}

.proj-spec { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: clamp(2rem, 4vw, 3rem) 0 0; border-block: 1.5px solid var(--blue-200); }
.proj-spec > div { padding: 1.15rem 1.25rem; }
.proj-spec > div:first-child { padding-inline-start: 0; }
.proj-spec > div + div { border-inline-start: 1.5px solid var(--blue-100); }
.proj-spec dt { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.proj-spec dt::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; background: var(--red); clip-path: var(--star8); }
.proj-spec dd { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
@media (max-width: 800px) {
  /* phones and small tablets: a tidy spec sheet, label on one side and value on the other */
  .proj-hero { padding-top: 6rem; }
  .proj-hero .page-hero__title { font-size: clamp(2.5rem, 13vw, 3.6rem); }
  .proj-hero .project-lead { font-size: 1.0625rem; }
  .proj-hero__actions { margin-top: 1.25rem; }
  .proj-spec { max-width: 44rem; }
  .proj-spec { grid-template-columns: 1fr; margin-top: 1.75rem; border-block: 0; border-top: 1.5px solid var(--blue-200); }
  .proj-spec > div, .proj-spec > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; padding: 0.9rem 0; border-inline-start: 0; border-bottom: 1.5px solid var(--blue-100); }
  .proj-spec > div + div { border-inline-start: 0; }
  .proj-spec > div:last-child { border-bottom: 1.5px solid var(--blue-200); }
  .proj-spec dt { flex: none; margin: 0; }
  .proj-spec dd { text-align: end; font-size: 1rem; }
}
@media (max-width: 560px) {
  .proj-hero__actions { flex-direction: column; align-items: stretch; gap: 1rem; }
  .proj-hero__actions .btn-primary { justify-content: center; width: 100%; }
  .proj-hero__actions .project-tags { justify-content: center; }
  .proj-spec { max-width: none; }
}

/* showcase band */
.proj-stage { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(2.25rem, 6vw, 4.5rem); background: var(--blue); }
.proj-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lat-white) center / 72px; opacity: 0.12; }
.proj-stage__frame { position: relative; margin: 0 auto; max-width: 62rem; aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--blue-100); border-radius: 50% 50% 1.5rem 1.5rem / 30% 30% 1.5rem 1.5rem; outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 8px; box-shadow: 0 30px 70px rgba(11, 13, 61, 0.35); }
.proj-stage__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a real screenshot: browser window instead of the arch */
.proj-stage__frame--shot { aspect-ratio: auto; padding-top: 2.1rem; background: var(--white); border-radius: 0.9rem; outline: 0; }
.proj-stage__frame--shot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2.1rem; background: radial-gradient(circle at 1.1rem 50%, var(--red) 0.28rem, transparent 0.3rem), radial-gradient(circle at 1.85rem 50%, var(--blue-200) 0.28rem, transparent 0.3rem), radial-gradient(circle at 2.6rem 50%, var(--blue-200) 0.28rem, transparent 0.3rem), var(--blue-50); border-bottom: 1.5px solid var(--blue-100); }
.proj-stage__frame--shot img { height: auto; object-fit: initial; }
@media (max-width: 800px) { .proj-stage__frame { aspect-ratio: 4 / 3.4; border-radius: 50% 50% 1.25rem 1.25rem / 22% 22% 1.25rem 1.25rem; outline-offset: 6px; } .proj-stage__frame--shot { aspect-ratio: auto; border-radius: 0.75rem; } }

/* story */
.proj-story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.7fr); align-items: start; gap: clamp(2rem, 6vw, 5.5rem); padding-block: clamp(3rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem); }
.proj-story__head { position: sticky; top: 7rem; margin: 0; }
.proj-story__head .section-heading { max-width: 12ch; }
.proj-story__body { display: grid; }
.proj-block { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.4rem; padding-block: clamp(1.5rem, 3vw, 2.25rem); border-top: 1.5px solid var(--blue-100); }
.proj-block:first-child { padding-top: 0; border-top: 0; }
.proj-block h3 { margin: 0 0 0.6rem; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-block p { margin: 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.75; color: var(--muted); }
.proj-outcome { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(0.75rem, 2vw, 1.25rem); padding: clamp(1.5rem, 3.5vw, 2.5rem); background: var(--blue); color: var(--white); border-radius: var(--radius-lg); }
.proj-outcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lat-white) center / 64px; opacity: 0.1; }
.proj-outcome::after { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(255, 255, 255, 0.28); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.proj-outcome__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.proj-outcome__head h3 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-outcome__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.proj-outcome__list li { position: relative; padding: 1rem 1rem 1rem 2.7rem; padding-inline: 2.7rem 1rem; background: rgba(255, 255, 255, 0.1); border-radius: calc(var(--radius-lg) - 0.5rem); font-size: 1.0625rem; line-height: 1.5; }
.proj-outcome__list li::before { content: ""; position: absolute; inset-inline-start: 1rem; top: 1.15rem; width: 1.1rem; height: 1.1rem; background: var(--white); clip-path: var(--star8); }
@media (max-width: 900px) { .proj-story { grid-template-columns: 1fr; gap: 1.5rem; } .proj-story__head { position: static; } .proj-story__head .section-heading { max-width: none; } }
@media (max-width: 520px) { .proj-block { grid-template-columns: 1fr; } }

/* gallery (real screenshots, set in the project's Gallery field) */
.proj-gal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.25rem); padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }
.proj-gal figure { grid-column: span 3; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue-100); border-radius: var(--radius-lg); }
.proj-gal figure:nth-child(3n + 1) { grid-column: span 6; aspect-ratio: 16 / 8; }
.proj-gal img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.proj-gal figure:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .proj-gal figure, .proj-gal figure:nth-child(3n + 1) { grid-column: 1 / -1; aspect-ratio: 4 / 3; } }

/* next project */
.proj-next-wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.proj-next { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--blue); color: var(--white); border-radius: var(--radius-lg); transition: transform 0.4s var(--ease), background 0.3s; }
.proj-next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lat-white) center / 64px; opacity: 0.12; }
.proj-next:hover { transform: translateY(-4px); background: var(--cherry); }
.proj-next__text { display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; padding: clamp(1.5rem, 4vw, 3rem); }
.proj-next__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.proj-next__title { font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em; text-transform: lowercase; }
.proj-next .case-tags { margin: 0; }
.proj-next .case-tags li { color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.proj-next__arrow { align-self: flex-start; display: grid; place-items: center; width: 56px; height: 56px; margin-top: 0.5rem; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 50%; font-size: 1.5rem; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s; }
.proj-next:hover .proj-next__arrow { background: var(--white); color: var(--blue); transform: rotate(-45deg); }
.proj-next:hover:lang(fa) .proj-next__arrow { transform: rotate(45deg); }
.proj-next__media { align-self: end; margin: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem) 0; aspect-ratio: 5 / 4; overflow: hidden; background: var(--blue-200); border-radius: 50% 50% 0 0 / 36% 36% 0 0; }
.proj-next__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.proj-next:hover .proj-next__media img { transform: scale(1.05); }
@media (max-width: 800px) { .proj-next { grid-template-columns: 1fr; } .proj-next__media { margin: 0 1.5rem; aspect-ratio: 16 / 10; } }

/* v22 — phone beside the main image, redesigned gallery */
.proj-stage__wrap { position: relative; max-width: 62rem; margin-inline: auto; }
.proj-stage__wrap .proj-stage__frame { margin: 0; max-width: none; }
.proj-stage--phone { padding-bottom: clamp(3.75rem, 9vw, 7rem); }
.proj-phone { position: absolute; z-index: 2; inset-inline-end: clamp(0.5rem, 5%, 4rem); bottom: calc(-1 * clamp(1.75rem, 5vw, 4rem)); width: clamp(92px, 19%, 210px); margin: 0; aspect-ratio: 9 / 19; padding: clamp(0.25rem, 0.55vw, 0.5rem); background: var(--blue-900, #0B0D3D); border-radius: clamp(1.1rem, 2.8vw, 2.3rem); box-shadow: 0 28px 60px rgba(11, 13, 61, 0.5), inset 0 0 0 1.5px rgba(255, 255, 255, 0.16); }
.proj-phone::before { content: ""; position: absolute; z-index: 1; top: clamp(0.4rem, 0.9vw, 0.7rem); inset-inline: 36%; height: clamp(0.18rem, 0.4vw, 0.32rem); border-radius: 99px; background: rgba(255, 255, 255, 0.22); }
.proj-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; background: var(--white); border-radius: clamp(0.85rem, 2.1vw, 1.8rem); }
@media (max-width: 560px) { .proj-phone { width: 27%; inset-inline-end: 0.35rem; } .proj-stage--phone { padding-bottom: 3.25rem; } }

.proj-gal-wrap { padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.proj-gal__head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.proj-gal__head .section-heading { max-width: 16ch; }
.proj-gal { display: block; columns: 2; column-gap: clamp(0.85rem, 2vw, 1.5rem); padding: 0; }
.proj-gal figure, .proj-gal figure:nth-child(3n + 1) { position: relative; display: block; break-inside: avoid; margin: 0 0 clamp(0.85rem, 2vw, 1.5rem); padding: clamp(0.6rem, 1.6vw, 1.1rem); aspect-ratio: auto; grid-column: auto; overflow: hidden; background: var(--blue-100); border-radius: var(--radius-lg); isolation: isolate; }
.proj-gal figure::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lat-blue, var(--lat-white)) center / 64px; opacity: 0.12; }
.proj-gal img { display: block; width: 100%; height: auto; object-fit: initial; border-radius: calc(var(--radius-lg) - 0.55rem); box-shadow: 0 14px 34px rgba(11, 13, 61, 0.18); transition: transform 0.6s var(--ease); }
.proj-gal figure:hover img { transform: translateY(-4px); }
@media (max-width: 700px) { .proj-gal { columns: 1; } }

/* v23 — project page: results first, plain text blocks, previous/next navigation */
.proj-body { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.proj-body .proj-outcome { margin: 0; }
.proj-outcome__title { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-outcome__list { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.proj-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.proj-pair > :only-child { grid-column: 1 / -1; }
.proj-text { padding: clamp(1.4rem, 3vw, 2.25rem); background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); }
.proj-text h3 { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.85rem; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-text h3::before { content: ""; flex: none; width: 0.9rem; height: 0.9rem; background: var(--red); clip-path: var(--star8); }
.proj-text p { margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.75; color: var(--muted); }
@media (max-width: 800px) { .proj-pair { grid-template-columns: 1fr; } }
.proj-gal__title { margin: 0 0 clamp(1rem, 2.5vw, 1.5rem); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.25rem); padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.proj-nav__link { display: flex; align-items: center; gap: 1rem; padding: clamp(1rem, 2.4vw, 1.5rem) clamp(1.1rem, 2.6vw, 1.75rem); background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, color 0.3s; }
.proj-nav__link--next { justify-content: space-between; text-align: end; }
.proj-nav__link:hover { transform: translateY(-3px); background: var(--blue); border-color: var(--blue); color: var(--white); }
.proj-nav__link small { display: block; margin-bottom: 0.25rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.proj-nav__link:hover small { color: rgba(255, 255, 255, 0.75); }
.proj-nav__link b { display: block; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-nav__arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 1.25rem; opacity: 0.6; }
@media (max-width: 560px) { .proj-nav { grid-template-columns: 1fr; } .proj-nav__link--next { text-align: start; } }

/* v24 — neutral image cards: project screenshots keep their own colours on a quiet grey stage, so any brand reads clearly */
:root { --shot-bg: #ECECF0; --shot-panel: #E3E3E8; --shot-line: #D5D5DB; --shot-bar: #F5F5F7; --shot-dot: #C9C9D1; --shot-ink: #16161B; --shot-shadow: rgba(20, 20, 28, 0.22); }

/* project page: stage + frames */
.proj-stage { background: var(--shot-bg); }
.proj-stage::before { opacity: 0; }
.proj-stage__frame { background: var(--white); outline-color: rgba(22, 22, 27, 0.14); box-shadow: 0 30px 70px var(--shot-shadow), 0 2px 6px rgba(20, 20, 28, 0.08); }
.proj-stage__frame--shot { background: var(--white); outline: 0; }
.proj-stage__frame--shot::before { background: radial-gradient(circle at 1.1rem 50%, var(--shot-dot) 0.28rem, transparent 0.3rem), radial-gradient(circle at 1.85rem 50%, var(--shot-dot) 0.28rem, transparent 0.3rem), radial-gradient(circle at 2.6rem 50%, var(--shot-dot) 0.28rem, transparent 0.3rem), var(--shot-bar); border-bottom-color: var(--shot-line); }
.proj-phone { background: var(--shot-ink); box-shadow: 0 28px 60px rgba(20, 20, 28, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14); }
.proj-phone img { background: var(--white); }

/* gallery */
.proj-gal figure, .proj-gal figure:nth-child(3n + 1) { background: var(--shot-bg); }
.proj-gal figure::before { opacity: 0; }
.proj-gal img { box-shadow: 0 14px 34px rgba(20, 20, 28, 0.18), 0 1px 3px rgba(20, 20, 28, 0.08); }

/* lists (home rows, work page): neutral image panel, true colours, top of the page first */
.work-tile__img { background: var(--shot-bg); }
.work-tile__img img { object-position: center top; }
.case-card .case-card__arc { background: var(--shot-bg); }
.case-card .case-card__arc img { filter: none; mix-blend-mode: normal; object-position: center top; }

/* v25 — cards show the whole screenshot (no cropping) as a rounded picture on a neutral panel; compact project hero */
.work-tile__img { position: relative; display: block; padding: 0; background: var(--shot-bg); }
.work-tile__img img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 1.5rem); max-height: calc(100% - 1.5rem); object-fit: contain; border-radius: 0.7rem; box-shadow: 0 10px 26px rgba(20, 20, 28, 0.2), 0 1px 3px rgba(20, 20, 28, 0.1); }
.work-tile:hover .work-tile__img img { transform: scale(1.03); }
.case-card .case-card__arc { display: block; padding: 0; background: var(--shot-bg); }
.case-card .case-card__arc img { position: absolute; inset: 1.7rem 1.1rem 1rem; margin: auto; width: auto; height: auto; max-width: calc(100% - 2.2rem); max-height: calc(100% - 2.7rem); object-fit: contain; border-radius: 0.7rem; box-shadow: 0 10px 26px rgba(20, 20, 28, 0.2), 0 1px 3px rgba(20, 20, 28, 0.1); }

.proj-hero { padding-top: clamp(5.75rem, 8vw, 6.75rem); }
.proj-hero__main { gap: 1rem clamp(1.5rem, 4vw, 3.5rem); }
.proj-hero__head .project-back { margin-bottom: 0.6rem; font-size: 0.8125rem; }
.proj-hero .page-hero__label { margin-bottom: 0; }
.proj-hero .page-hero__title { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; margin-top: 0.25rem; }
.proj-hero__side { padding-bottom: 0.25rem; }
.proj-hero .project-lead { max-width: 40ch; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; }
.proj-hero__actions { margin-top: 1rem; }
.proj-spec { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.proj-spec > div { padding: 0.85rem 1.1rem; }
.proj-spec dt { margin-bottom: 0.2rem; font-size: 0.625rem; }
.proj-spec dd { font-size: 0.9375rem; line-height: 1.4; }
.proj-stage { margin-top: clamp(1.25rem, 3vw, 2rem); padding-block: clamp(1.75rem, 4.5vw, 3.25rem); }
.proj-stage--phone { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
@media (max-width: 800px) {
  .proj-hero { padding-top: 5.5rem; }
  .proj-hero .page-hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .proj-hero .project-lead { font-size: 1rem; }
  .proj-spec > div, .proj-spec > div:first-child { padding: 0.7rem 0; }
}

/* v26 — project hero redesigned: text on one side, the project (browser + phone) on a neutral panel on the other, one composition */
.proj-hero { padding: clamp(5.75rem, 8vw, 7rem) 0 0; }
.proj-hero__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.75rem, 4.5vw, 4rem); }
.proj-hero__grid--solo { grid-template-columns: minmax(0, 46rem); }
.proj-hero__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.proj-hero__text .project-back { margin-bottom: 1.1rem; font-size: 0.8125rem; }
.proj-hero__text .page-hero__label { margin: 0 0 0.6rem; }
.proj-hero__text .page-hero__title { margin: 0; max-width: none; font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -0.035em; }
.proj-hero__text .project-lead { margin: 1.1rem 0 0; max-width: 42ch; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.6; }
.proj-services { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.35rem 0 0; padding: 0; list-style: none; }
.proj-services li { padding: 0.4rem 0.85rem; background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-pill, 99px); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; color: var(--blue-900, var(--ink)); }
.proj-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 1.5rem; }
.proj-hero__more { font-size: 0.9375rem; font-weight: 600; color: var(--blue); }
.proj-hero__more:hover { text-decoration: underline; text-underline-offset: 4px; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 0.9rem 2.25rem; width: 100%; margin: 1.75rem 0 0; padding-top: 1.15rem; border-top: 1.5px solid var(--blue-100); }
.proj-meta dt { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.2rem; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.proj-meta dt::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--red); clip-path: var(--star8); }
.proj-meta dd { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }

.proj-hero__visual { position: relative; min-width: 0; padding: clamp(1.1rem, 2.6vw, 2rem); background: var(--shot-bg); border-radius: calc(var(--radius-lg) + 0.5rem); }
.proj-hero__visual--phone { padding-bottom: clamp(1.9rem, 4vw, 3rem); }
.proj-device__frame { position: relative; margin: 0; overflow: hidden; background: var(--white); border-radius: 0.9rem; box-shadow: 0 24px 50px var(--shot-shadow), 0 2px 6px rgba(20, 20, 28, 0.08); }
.proj-device__frame img { display: block; width: 100%; height: auto; }
.proj-device__frame--shot { padding-top: 1.9rem; }
.proj-device__frame--shot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1.9rem; background: radial-gradient(circle at 0.95rem 50%, var(--shot-dot) 0.24rem, transparent 0.26rem), radial-gradient(circle at 1.6rem 50%, var(--shot-dot) 0.24rem, transparent 0.26rem), radial-gradient(circle at 2.25rem 50%, var(--shot-dot) 0.24rem, transparent 0.26rem), var(--shot-bar); border-bottom: 1.5px solid var(--shot-line); }
.proj-hero__visual .proj-phone { inset-inline-end: clamp(0.5rem, 2.4vw, 1.75rem); bottom: clamp(0.5rem, 2vw, 1.4rem); width: clamp(74px, 17%, 160px); }

@media (max-width: 900px) {
  .proj-hero { padding-top: 5.5rem; }
  .proj-hero__grid, .proj-hero__grid--solo { grid-template-columns: 1fr; gap: 1.75rem; }
  .proj-hero__text .page-hero__title { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .proj-hero__text .project-lead { font-size: 1.0625rem; }
}
@media (max-width: 520px) {
  .proj-hero__actions .btn-primary { width: 100%; justify-content: center; }
  .proj-meta { gap: 0.9rem 1.5rem; }
  .proj-hero__visual .proj-phone { width: 24%; }
}

/* v27 — ready-made mockups are shown as they are: no extra frame, white image backgrounds melt into the neutral panel */
.proj-hero__visual--plain { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: clamp(0.4rem, 1.4vw, 1rem); padding: clamp(0.6rem, 1.6vw, 1.1rem); overflow: hidden; }
.proj-hero__visual--plain.proj-hero__visual--phone { grid-template-columns: minmax(0, 1fr) clamp(88px, 24%, 200px); }
.proj-art { margin: 0; mix-blend-mode: multiply; }
.proj-art img { display: block; width: 100%; height: auto; }
.proj-art--phone { position: static; width: auto; }

/* gallery of ready-made mockups: no box around the picture */
.proj-gal--plain img { border-radius: 0; box-shadow: none; mix-blend-mode: multiply; }
.proj-gal--plain figure, .proj-gal--plain figure:nth-child(3n + 1) { padding: clamp(0.35rem, 1vw, 0.7rem); }

/* cards (home rows + work page): same idea */
.work-tile__img.is-plain img, .case-card .case-card__arc.is-plain img { border-radius: 0; box-shadow: none; mix-blend-mode: multiply; max-width: calc(100% - 0.4rem); max-height: calc(100% - 0.4rem); }
.case-card .case-card__arc.is-plain img { inset: 0.6rem 0.4rem 0.4rem; }
.work-tile:hover .work-tile__img.is-plain img { transform: scale(1.04); }

@media (max-width: 520px) { .proj-hero__visual--plain.proj-hero__visual--phone { grid-template-columns: minmax(0, 1fr) 27%; } }

/* v28 — project showcase: a laptop and a phone "browse" the project's full-page screenshots while the visitor scrolls */
.proj-showcase { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); background: var(--shot-bg); }
.proj-showcase__pin { position: relative; display: grid; place-items: center; padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); background: radial-gradient(ellipse 70% 60% at 50% 38%, #f7f7f9 0%, var(--shot-bg) 62%, #dedee4 100%); }
.proj-showcase__stage { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); width: 100%; padding-inline: clamp(1rem, 4vw, 3rem); }

/* devices */
.device { position: relative; margin: 0; min-width: 0; }
.device--laptop { width: min(62rem, 90vw, 128vh); }
.device--phone { height: min(78vh, 44rem); aspect-ratio: 9 / 19; }
.device__lid { position: relative; background: #16161b; box-shadow: 0 40px 80px rgba(20, 20, 28, 0.32), inset 0 0 0 1.5px #2c2c34; }
.device--laptop .device__lid { padding: 2.1% 2.1% 2.4%; border-radius: 1.1rem 1.1rem 0.5rem 0.5rem; }
.device--laptop .device__lid::before { content: ""; position: absolute; top: 0.7%; left: 50%; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: #3a3a44; transform: translateX(-50%); }
.device__screen { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.device--laptop .device__screen { aspect-ratio: 16 / 10; border-radius: 0.35rem; }
.device__bar { flex: none; display: flex; align-items: center; gap: 0.7rem; height: 1.9rem; padding-inline: 0.8rem; background: #f4f4f6; border-bottom: 1px solid #deded3; }
.device__bar i { flex: none; width: 0.5rem; height: 0.5rem; margin-inline-end: 1.7rem; border-radius: 50%; background: #cfcfd6; box-shadow: 0.85rem 0 #cfcfd6, 1.7rem 0 #cfcfd6; }
.device__url { flex: 1; max-width: 26rem; margin-inline: auto; padding: 0.15rem 0.8rem; background: #fff; border-radius: 99px; font-size: 0.6875rem; line-height: 1.4; color: #6b6b75; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device__scroll { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.device__shot { display: block; width: 100%; height: auto; will-change: transform; }
.device__base { position: relative; height: clamp(0.7rem, 1.5vw, 1.1rem); margin-inline: -3.5%; background: linear-gradient(#dcdce2, #b8b8c1); border-radius: 0 0 1.2rem 1.2rem; box-shadow: 0 22px 34px rgba(20, 20, 28, 0.24); }
.device__base::before { content: ""; position: absolute; top: 0; left: 50%; width: 15%; height: 0.32rem; background: #a2a2ac; border-radius: 0 0 0.5rem 0.5rem; transform: translateX(-50%); }

.device--phone .device__lid { height: 100%; padding: 2.4%; border-radius: clamp(1.6rem, 3.4vw, 2.6rem); box-shadow: 0 40px 70px rgba(20, 20, 28, 0.36), inset 0 0 0 1.5px #2c2c34, 0 0 0 1px rgba(255, 255, 255, 0.04); }
.device--phone .device__lid::after { content: ""; position: absolute; z-index: 3; top: 3.1%; left: 50%; width: 27%; height: 2.3%; border-radius: 99px; background: #000; transform: translateX(-50%); }
.device--phone .device__screen { height: 100%; border-radius: clamp(1.2rem, 2.8vw, 2.1rem); }

/* helper line, progress, call to action */
.proj-showcase__hint { position: absolute; z-index: 4; inset-inline: 0; bottom: clamp(1rem, 3vw, 1.75rem); display: none; flex-direction: column; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #5b5b66; pointer-events: none; }
.proj-showcase__hint::after { content: "↓"; font-size: 1.1rem; animation: showcaseHint 1.6s ease-in-out infinite; }
@keyframes showcaseHint { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(6px); opacity: 1; } }
.proj-showcase__progress { position: absolute; z-index: 4; left: 50%; bottom: clamp(0.6rem, 1.6vw, 1rem); display: none; width: min(22rem, 56vw); height: 3px; background: rgba(22, 22, 27, 0.12); border-radius: 3px; transform: translateX(-50%); overflow: hidden; }
.proj-showcase__progress i { display: block; width: 100%; height: 100%; background: var(--blue); border-radius: 3px; transform: scaleX(0); transform-origin: left center; }
:lang(fa) .proj-showcase__progress i { transform-origin: right center; }
.proj-showcase__cta { position: relative; z-index: 4; flex-basis: 100%; display: flex; justify-content: center; margin-top: 0.5rem; }
.proj-showcase__cta .btn-primary { box-shadow: 0 12px 28px rgba(22, 22, 27, 0.2); }

/* live mode (JS + motion allowed): one pinned scene, the devices share the same spot */
.proj-showcase.is-live.proj-showcase--both { height: 340vh; }
.proj-showcase.is-live.proj-showcase--one { height: 270vh; }
.proj-showcase.is-live .proj-showcase__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: clamp(4.5rem, 7vw, 5.5rem) clamp(4.75rem, 7vw, 5.75rem); overflow: clip; }
.proj-showcase.is-live .proj-showcase__stage { display: grid; place-items: center; height: 100%; }
.proj-showcase.is-live .device { grid-area: 1 / 1; will-change: transform, opacity; }
.proj-showcase.is-live .device--laptop { width: min(62rem, 90vw, 118vh); }
.proj-showcase.is-live .device--phone { height: min(76vh, 42rem); }
.proj-showcase.is-live .proj-showcase__cta { position: absolute; inset-inline: 0; bottom: clamp(1.1rem, 2.6vw, 1.7rem); margin: 0; opacity: 0; pointer-events: none; }
.proj-showcase.is-live .proj-showcase__cta .btn-primary { pointer-events: auto; }
.proj-showcase.is-live .proj-showcase__hint, .proj-showcase.is-live .proj-showcase__progress { display: flex; }
.proj-showcase.is-live .proj-showcase__progress { display: block; }

@media (max-width: 800px) {
  .proj-showcase.is-live.proj-showcase--both { height: 340vh; }
  .proj-showcase.is-live.proj-showcase--one { height: 240vh; }
  .proj-showcase.is-live .device--laptop { width: min(94vw, 40rem); }
  .proj-showcase.is-live .device--phone { height: min(70svh, 34rem); }
  .proj-showcase.is-live .proj-showcase__pin { padding-bottom: 5.75rem; }
  .device__bar { height: 1.5rem; }
  .device__url { font-size: 0.5625rem; }
}
@media (max-width: 560px) {
  .proj-showcase__stage { padding-inline: 0.75rem; }
}

/* v30 — hero for plain screenshots: the same laptop + phone as the scroll showcase, side by side (no frame inside a frame); calmer panel */
.proj-hero__visual--devices { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: clamp(0.6rem, 1.8vw, 1.3rem); padding: clamp(1.1rem, 2.6vw, 2rem); overflow: hidden; border-radius: var(--radius-lg); }
.proj-hero__visual--devices.proj-hero__visual--phone { grid-template-columns: minmax(0, 1fr) clamp(76px, 21%, 150px); }
.proj-hero__visual--devices .device { min-width: 0; }
.proj-hero__visual--devices .device--laptop { width: 100%; }
.proj-hero__visual--devices .device__lid { box-shadow: 0 22px 44px rgba(20, 20, 28, 0.26), inset 0 0 0 1.5px #2c2c34; }
.proj-hero__visual--devices .device--phone { width: 100%; height: auto; }
.proj-hero__visual--devices .device--phone .device__lid { position: relative; height: auto; aspect-ratio: 9 / 19; padding: 0; border-radius: clamp(1rem, 2.4vw, 1.7rem); }
.proj-hero__visual--devices .device--phone .device__screen { position: absolute; inset: 2.6% 5%; height: auto; border-radius: clamp(0.75rem, 1.9vw, 1.3rem); }
.proj-hero__visual--devices .device--phone .device__lid::after { top: 4%; height: 2%; }
.device--static .device__scroll { position: relative; }
.device--static .device__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
