:root {
  --accent: #f31b0f;
  --accent-text: #c81a11;
  --ink: #171b1c;
  --muted: #6d7578;
  --line: #d9dede;
  --paper: #fff;
  --soft: #f4f6f5;
  --shell: min(92vw, 1480px);
  --display: "Helvetica Neue", "Neue Haas Grotesk Text Pro", Arial, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
body.viewer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--accent); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 5.3rem; border-bottom: 1px solid transparent; background: rgba(255,255,255,.96); backdrop-filter: blur(16px); transition: min-height 220ms ease, border-color 220ms ease; }
.site-header.is-scrolled { min-height: 4.8rem; border-bottom-color: var(--line); }
.header-inner { display: flex; min-height: inherit; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 1.2rem; }
.brand-logo { width: clamp(9.5rem, 12vw, 11.4rem); height: auto; }
.brand-sub { color: var(--muted); font-size: .66rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.navlinks { display: flex; align-items: center; gap: clamp(1.45rem, 2.4vw, 3rem); font-size: .84rem; }
.navlinks > a { position: relative; padding-block: .4rem; }
.navlinks > a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.navlinks > a:hover::after, .navlinks > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.language-nav { display: flex; align-items: center; gap: .7rem; margin-left: .15rem; padding-left: 1.35rem; border-left: 1px solid var(--line); font-size: .68rem; font-weight: 650; letter-spacing: .08em; }
.language-nav a { padding: .25rem 0; border-bottom: 1px solid transparent; color: var(--muted); }
.language-nav a:hover, .language-nav a:focus-visible, .language-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent-text); }
.menu { display: none; width: 2.8rem; height: 2.8rem; padding: 0; border: 0; background: transparent; }
.menu span { display: block; width: 1.65rem; height: 1px; margin: .42rem auto; background: var(--ink); transition: transform 180ms ease; }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.4rem, 4vw, 3.8rem) 0 0; background: var(--accent); color: #fff; }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(20rem, 1.1fr) minmax(8rem, .8fr) minmax(18rem, .85fr); column-gap: clamp(2rem, 4vw, 5rem); row-gap: clamp(1.8rem, 2.5vw, 2.8rem); align-items: center; }
/* A facade study, drawn once from structure to detail. */
.hero-blueprint { display: block; width: 100%; height: auto; min-width: 0; align-self: center; color: #fff; opacity: .24; pointer-events: none; }
.hero-blueprint-tower, .hero-blueprint-mobile { display: none; --window-gap: .07s; }
@media (min-width: 1001px) {
  .hero-blueprint-lowrise { display: none; }
  .hero-blueprint-tower { display: block; height: clamp(18rem, 24vw, 24rem); }
}
.hero-blueprint path { stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; animation: blueprint-draw 2.1s cubic-bezier(.25,.55,.35,1) both; }
.hero-blueprint .blueprint-guides { opacity: .28; }
.hero-blueprint .blueprint-guides path { animation-delay: .18s; }
.hero-blueprint .blueprint-frame path { animation-delay: .45s; }
.hero-blueprint .blueprint-floors { opacity: .75; }
.hero-blueprint .blueprint-floors path { animation-delay: 1.25s; }
.hero-blueprint .blueprint-windows { opacity: .8; }
.hero-blueprint .blueprint-windows path { animation-duration: .55s; animation-delay: calc(2.65s + var(--window-step, 0) * var(--window-gap, .1s)); }
.hero-blueprint .blueprint-details { opacity: .5; }
.hero-blueprint .blueprint-details path { animation-duration: .8s; animation-delay: 5.9s; }
.hero-blueprint .blueprint-dimensions { opacity: .65; }
.hero-blueprint .blueprint-dimensions path { animation-duration: .9s; animation-delay: 6.4s; }
@keyframes blueprint-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-blueprint path { animation: none; stroke-dashoffset: 0; } }

.eyebrow, .section-index { display: flex; align-items: center; gap: .72rem; margin: 0; color: var(--accent-text); font-size: .72rem; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
.eyebrow::before { width: 2.4rem; height: 2px; flex: 0 0 auto; background: var(--accent); content: ""; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: #fff; }
.hero h1 { max-width: 10.5ch; margin: 1.25rem 0 0; font-size: clamp(3.6rem, 5.5vw, 5.6rem); font-weight: 500; line-height: .94; letter-spacing: -.058em; }
.hero-aside { padding-bottom: .25rem; }
.hero-aside > p { max-width: 31rem; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.7; }
.hero-aside > p { color: #fff; }
.actions { display: flex; gap: 2rem; margin-top: 1.7rem; }
.actions a { position: relative; padding-bottom: .5rem; border-bottom: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.actions a::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.actions a:hover::after, .actions a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.hero .actions a { border-bottom-color: rgba(255,255,255,.65); }
.hero .actions a::after { background: #fff; }
.hero-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-top: 0; border-top: 1px solid rgba(255,255,255,.5); }
.hero-metric { display: flex; gap: .65rem; align-items: baseline; min-width: 0; padding: 1.15rem 0 1.3rem; white-space: nowrap; transition: opacity 180ms ease; }
.hero-metric:hover, .hero-metric:focus-visible { opacity: .72; }
.hero-metric + .hero-metric { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.4); }
.hero-metric strong { font-family: var(--display); font-size: 1.38rem; font-weight: 500; letter-spacing: -.03em; }
.hero-metric span { color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 500; letter-spacing: .01em; }


/* Match the quiet opening movement used on the Motavalli title page. */
.hero-enter-word { display: inline-block; }
@keyframes hero-text-enter {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-heading > .eyebrow,
  .hero-aside > p,
  .hero-aside > .actions,
  .hero-metric > strong,
  .hero-metric > span { animation: hero-text-enter .56s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-heading > .eyebrow { animation-duration: .42s; }
  .hero-aside > p { animation-delay: .22s; }
  .hero-aside > .actions { animation-delay: .33s; }
  .hero-metric > strong, .hero-metric > span { animation-duration: .42s; animation-delay: .44s; }
}

.section { padding-block: clamp(3.5rem, 5vw, 5rem); }
.section-heading { display: grid; grid-template-columns: minmax(12rem, .48fr) minmax(30rem, 1.52fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; margin-bottom: clamp(2.3rem, 3.5vw, 3.5rem); padding-top: 1rem; border-top: 1px solid var(--line); }
.section-index span:first-child { color: var(--muted); }
.section-heading h2 { max-width: 12ch; margin: 0; font-size: clamp(3rem, 5.2vw, 5.8rem); font-weight: 500; line-height: .95; letter-spacing: -.055em; }
.section-heading p { max-width: 42rem; margin: 1.4rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.72; }

.projects { background: var(--paper); }
.project-list { border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 3.4rem minmax(12rem, .62fr) minmax(20rem, 1.38fr) 6.5rem; gap: clamp(1rem, 2vw, 2.4rem); align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: padding 220ms ease; }
.project-row-image { grid-template-columns: 3.4rem clamp(8.5rem, 13vw, 12rem) minmax(11rem, .6fr) minmax(16rem, 1.4fr) 6.5rem; }
.project-row:hover { padding-inline: .8rem; }
.project-thumb { width: 100%; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-open { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.image-open img { width: 100%; height: 100%; object-fit: cover; }
.image-open:focus-visible { outline-offset: -3px; }
.project-num { color: var(--accent-text); font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.project-place h3 { margin: 0 0 .25rem; font-size: clamp(1.35rem, 1.8vw, 1.8rem); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.project-location { color: var(--muted); font-size: .76rem; letter-spacing: .035em; }
.project-row > p { max-width: 44rem; margin: 0; color: var(--muted); font-size: .93rem; }
.project-units { text-align: right; }
.project-units strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 500; }
.project-units span { color: var(--muted); font-size: .62rem; letter-spacing: .085em; text-transform: uppercase; }

.references { background: var(--soft); }
.reference-swipe-hint { display: none; }
.reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 3.6vw, 3.8rem) clamp(1.4rem, 2.4vw, 2.8rem); }
.reference-card { min-width: 0; }
.reference-card-cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e1e4e3; }
.reference-card-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: opacity 180ms ease; }
.reference-gallery-badge { position: absolute; right: .8rem; bottom: .8rem; display: flex; align-items: center; gap: .4rem; padding: .4rem .65rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .8125rem; line-height: 1; pointer-events: none; }
.reference-gallery-badge svg { width: 1.05rem; height: 1.05rem; stroke: currentColor; stroke-width: 1.4; }
.reference-card-body { padding-top: .9rem; border-top: 1px solid var(--line); }
.reference-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.reference-num { color: var(--accent-text); font-size: .66rem; letter-spacing: .09em; }
.reference-status { color: var(--muted); font-size: .61rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.reference-title { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; margin-top: 1.1rem; }
.reference-title h3 { margin: 0; font-size: clamp(1.45rem, 2vw, 2rem); font-weight: 500; letter-spacing: -.04em; }
.reference-location { color: var(--muted); font-size: .76rem; }
.reference-card-body > p { margin: .7rem 0 0; color: var(--muted); font-size: .8rem; }
.reference-assets { display: none; }

.image-viewer { position: fixed; top: 0; left: 0; right: auto; bottom: auto; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: max(clamp(.8rem, 3vw, 3rem), env(safe-area-inset-top)) max(clamp(.8rem, 3vw, 3rem), env(safe-area-inset-right)) max(clamp(.8rem, 3vw, 3rem), env(safe-area-inset-bottom)) max(clamp(.8rem, 3vw, 3rem), env(safe-area-inset-left)); overflow: hidden; border: 0; background: #f7f8f7; color: var(--ink); }
.image-viewer::backdrop { background: rgba(13,17,18,.84); }
.image-viewer-frame { display: grid; grid-template-rows: 3.35rem minmax(0,1fr) auto; width: min(100%, 1500px); height: 100%; min-height: 0; margin: auto; }
.image-viewer-close { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: .75rem; justify-self: end; min-width: 2.75rem; height: 2.75rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .875rem; line-height: 1; cursor: pointer; }
.image-viewer-close span:last-child { font-size: 1.6rem; font-weight: 300; }
.image-viewer-close:focus { outline: none; }
.image-viewer-close:focus-visible { outline: 1px solid var(--muted); outline-offset: 3px; }
.image-viewer.is-arrow-browsing .image-viewer-close:focus-visible { outline: none; }
@media (pointer: coarse) { .image-viewer-close:focus-visible { outline: none; } }
.image-viewer-stage { position: relative; min-height: 0; overflow: hidden; touch-action: pan-y; }
.image-viewer-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: scale-down; opacity: 1; user-select: none; -webkit-user-drag: none; backface-visibility: hidden; will-change: transform; transition: opacity 140ms ease; }
.image-viewer-stage img.is-loading { opacity: .6; }
.image-viewer-prev, .image-viewer-next { position: absolute; z-index: 1; top: 50%; width: 3.3rem; height: 3.3rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-family: Arial, sans-serif; font-size: 2.4rem; font-weight: 200; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: color 160ms ease, background 160ms ease; }
.image-viewer-prev:hover, .image-viewer-next:hover { background: #fff; color: var(--accent-text); }
.image-viewer-prev { left: .8rem; }
.image-viewer-next { right: .8rem; }
.image-viewer-stage [hidden] { display: none; }
.image-viewer-caption { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; min-height: 2.8rem; padding-top: .8rem; font-size: .84rem; }
.image-viewer-caption > div { min-width: 0; }
.image-viewer-caption span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer-caption p { max-width: 48rem; margin: .25rem 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.image-viewer-caption small { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; letter-spacing: .08em; white-space: nowrap; }

.services-section { padding-bottom: clamp(2.2rem, 3vw, 3rem); background: var(--paper); }
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 3.4rem minmax(15rem, .7fr) minmax(24rem, 1.3fr); gap: clamp(1rem, 2.5vw, 3.5rem); align-items: start; min-height: 9rem; padding: 1.7rem 0 2rem; border-bottom: 1px solid var(--line); }
.service-num { color: var(--accent-text); font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.service h3 { margin: 0; font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 500; letter-spacing: -.035em; }
.service p { max-width: 40rem; margin: .15rem 0 0; color: var(--muted); font-size: .94rem; }

.company-data { padding-top: clamp(2.2rem, 3vw, 3rem); background: var(--paper); }
.company-heading h2 { max-width: 15ch; }
.company-info { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.company-info > div { min-height: 10rem; padding: 1.4rem 2rem 2rem 0; border-right: 1px solid var(--line); }
.company-info > div + div { padding-left: 2rem; }
.company-info > div:last-child { border-right: 0; }
.company-info span { display: block; margin-bottom: 2.7rem; color: var(--muted); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
.company-info strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; line-height: 1.45; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer .shell { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: end; min-height: 10rem; padding-block: 2.5rem; color: var(--muted); font-size: .75rem; }
.footer-links { display: flex; justify-content: flex-end; gap: 1.5rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--accent-text); }


.legal-hero { padding: clamp(5rem, 9vw, 9rem) 0 clamp(4rem, 7vw, 7rem); background: var(--paper); }
.legal-hero .shell { max-width: 72rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.legal-hero h1 { max-width: 100%; margin: 1.5rem 0 0; font-size: clamp(3.8rem, 7vw, 7.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -.055em; overflow-wrap: anywhere; hyphens: auto; }
.legal-hero p { max-width: 42rem; margin: 2rem 0 0; color: var(--muted); }
.legal-content { padding: 0 0 clamp(5rem, 8vw, 8rem); background: var(--paper); }
.legal-content-inner { max-width: 72rem; margin-inline: auto; }
.legal-meta { display: block; margin-bottom: 2rem; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-section { display: grid; grid-template-columns: minmax(0,.42fr) minmax(0,1.58fr); gap: clamp(2rem,6vw,7rem); padding-block: 2.4rem; border-top: 1px solid var(--line); }
.legal-section-body { min-width: 0; }
.legal-section:last-child { border-bottom: 1px solid var(--line); }
.legal-section h2 { min-width: 0; margin: 0; font-size: clamp(1.4rem,2vw,2rem); font-weight: 500; letter-spacing: -.03em; overflow-wrap: anywhere; hyphens: auto; }
.legal-section p { max-width: 48rem; margin: 0 0 1rem; color: var(--muted); }
.legal-section p:last-child { margin-bottom: 0; }
.legal-data { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .55rem clamp(1rem,2vw,2rem); margin: 0; overflow-wrap: anywhere; }
.legal-data dt { color: var(--muted); }
.legal-data dd { margin: 0; }

.js .reveal { opacity: 0; transform: translateY(.9rem); transition: opacity 480ms ease, transform 480ms ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .brand-sub { display: none; }
  .hero-layout { grid-template-columns: minmax(20rem, 1.1fr) minmax(8rem, .8fr) minmax(18rem, .85fr); column-gap: 1.6rem; }
  .section-heading { grid-template-columns: minmax(10rem,.4fr) minmax(28rem,1.6fr); gap: 3rem; }
  .reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-aside { grid-column: 1 / -1; }
  .hero-blueprint { max-width: 30rem; justify-self: center; }
}

@media (max-width: 860px) {
  :root { --shell: calc(100vw - 2.5rem); }
  html { scroll-padding-top: 5rem; }
  .site-header, .site-header.is-scrolled { min-height: 4.9rem; }
  .brand-logo { width: 9rem; }
  .menu { position: relative; z-index: 61; display: block; }
  .menu[aria-expanded="true"] span:first-child { transform: translateY(.21rem) rotate(45deg); }
  .menu[aria-expanded="true"] span:last-child { transform: translateY(-.21rem) rotate(-45deg); }
  .navlinks { position: fixed; inset: 0; z-index: 60; display: flex; min-height: 100dvh; padding: 7rem 1.25rem 3rem; overflow-y: auto; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1rem; visibility: hidden; pointer-events: none; background: #fff; font-family: var(--display); font-size: clamp(1.8rem, 8vw, 2.5rem); transform: translateX(100%); transition: transform 260ms ease, visibility 0s linear 260ms; }
  .navlinks.open { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
  .language-nav { width: 100%; margin: 1.2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); border-left: 0; font-family: var(--body); font-size: .75rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-aside { max-width: 38rem; }
  .hero-metrics { margin-top: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-row { grid-template-columns: minmax(0,1fr) auto; gap: .55rem 1.2rem; align-items: start; }
  .project-num { display: none; }
  .project-place { min-width: 0; grid-column: 1; grid-row: 1; }
  .project-units { grid-column: 2; grid-row: 1; }
  .project-row > p { min-width: 0; grid-column: 1 / -1; grid-row: 2; }
  .project-row-image { grid-template-columns: clamp(7rem,18vw,9rem) minmax(0,1fr); }
  .project-row-image .project-thumb { grid-column: 1; grid-row: 1 / 3; }
  .project-row-image .project-place { grid-column: 2; grid-row: 1; }
  .project-row-image .project-units { display: flex; grid-column: 2; grid-row: 2; align-items: baseline; gap: .4rem; text-align: left; }
  .project-row-image > p { grid-column: 1 / -1; grid-row: 3; }
  .service { grid-template-columns: 2.5rem minmax(13rem,.7fr) minmax(18rem,1.3fr); }
}

@media (max-width: 640px) {
  .hero-blueprint-lowrise { display: none; }
  .hero-heading { display: grid; grid-template-columns: minmax(0, 1fr) clamp(5.5rem, 26vw, 6.5rem); column-gap: .7rem; align-items: center; }
  .hero-heading .eyebrow { grid-column: 1 / -1; }
  .hero-blueprint-mobile { display: block; grid-column: 2; grid-row: 2; width: 100%; max-width: none; min-height: 0; height: calc(100% - 1.25rem); align-self: stretch; margin-top: 1.25rem; transform: translateX(-1.5rem); }
  .hero-blueprint-mobile { opacity: .72; }
  .hero-blueprint-mobile path { stroke-width: 1.4; }
  .image-viewer-prev, .image-viewer-next { width: 2.8rem; height: 2.8rem; font-size: 2rem; }
  .image-viewer-prev { left: .2rem; }
  .image-viewer-next { right: .2rem; }
  :root { --shell: calc(100vw - 2rem); }
  .hero { padding-block: 2.8rem 3.2rem; }
  .hero h1 { max-width: 9.5ch; font-size: min(3.2rem, 12vw); line-height: .95; }
  .hero-aside > p { font-size: .96rem; line-height: 1.62; }
  .actions { gap: 1.4rem; margin-top: 3.25rem; }
  .actions a { font-size: .8rem; }
  .hero-metrics { display: none; }
  .section { padding-block: 3.2rem; }
  .services-section { padding-bottom: 2rem; }
  .company-data { padding-top: 2rem; }
  .section-heading { margin-bottom: 2rem; }
  .section-heading h2 { font-size: min(3.4rem, 13vw); }
  .section-heading p { margin-top: 1.2rem; font-size: .93rem; }
  .project-row { gap: .55rem 1rem; padding: 1.25rem 0; }
  .project-row:hover { padding-inline: 0; }
  .project-row > p { font-size: .84rem; line-height: 1.55; }
  .project-units strong { font-size: 1.1rem; }
  .project-units span { font-size: .72rem; letter-spacing: .035em; }
  .project-row-image { grid-template-columns: 6.6rem minmax(0,1fr); }
  .reference-swipe-hint { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.2rem; color: var(--muted); font-size: .875rem; }
  .reference-swipe-hint > span { color: inherit; font-size: 1.4rem; line-height: 1; }
  .reference-grid { display: flex; width: calc(100vw - 1rem); margin-right: -1rem; padding-right: 1rem; gap: 1rem; overflow-x: auto; scroll-padding: 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .reference-grid::-webkit-scrollbar { display: none; }
  .reference-card { width: 78vw; max-width: 23rem; flex: 0 0 auto; scroll-snap-align: start; }
  .reference-grid .reference-card.reveal { opacity: 1; transform: none; }
  .reference-title h3 { font-size: 1.55rem; }
  .service { grid-template-columns: 2rem 1fr; gap: .8rem 1rem; min-height: 0; padding: 1.4rem 0 1.65rem; }
  .service h3 { font-size: 1.4rem; }
  .service p { grid-column: 2; font-size: .86rem; }
  .company-info { grid-template-columns: 1fr; }
  .company-info > div, .company-info > div + div { min-height: 0; padding: 1.4rem 0 1.8rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .company-info span { margin-bottom: 1rem; }
  .site-footer .shell { grid-template-columns: 1fr; gap: .7rem; min-height: 0; padding-block: 2.5rem; }
  .footer-links { justify-content: flex-start; margin-top: .8rem; }
  .legal-hero { padding-top: 4rem; }
  .legal-hero h1 { font-size: clamp(2.6rem, 11vw, 3.7rem); }
  .legal-section { grid-template-columns: 1fr; gap: 1rem; }
  .legal-data { grid-template-columns: 1fr; gap: .15rem; }
  .legal-data dd { margin-bottom: .8rem; }
}


/* The portfolio uses image-led cards and the measured lines of a building plan. */
.section-index { font-size: .8125rem; flex-wrap: wrap; }
.section-index::before { content: ""; flex: 0 0 2.5rem; height: .55rem; border: 1px solid var(--accent-text); border-block-width: 0; background: linear-gradient(var(--accent-text), var(--accent-text)) center / 100% 1px no-repeat; }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; border: 0; }
.project-row.project-row-image { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 1.2rem; min-width: 0; border: 1px solid var(--line); transition: border-color 220ms ease; }
.project-row.project-row-image:hover { padding-inline: 0; }
.project-row-image .project-num { position: absolute; z-index: 2; top: .8rem; left: .8rem; display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--accent-text); background: #fff; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.project-row-image .project-thumb { aspect-ratio: 16 / 10; }
.project-row-image .project-place { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin: 1.2rem 1.2rem 0; }
.project-row-image .project-place h3 { margin: 0; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.15; }
.project-row-image .project-location { font-size: .875rem; letter-spacing: 0; }
.project-row-image > p { flex: 1; margin: .8rem 1.2rem 1.3rem; font-size: 1rem; line-height: 1.6; }
.project-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; margin: 0 1.2rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.project-row-image .project-units { display: flex; align-items: baseline; gap: .4rem; text-align: left; }
.project-units strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.project-units span { font-size: .875rem; letter-spacing: 0; text-transform: none; }
.project-status { color: var(--accent-text); font-size: .8125rem; }
.references { background: #f2f1ef; }
.reference-grid { gap: 2rem; }
.reference-card { display: flex; flex-direction: column; border: 1px solid #dedbd7; background: #fff; }
.reference-card-cover { aspect-ratio: 16 / 10; }
.reference-card-cover img { filter: none; }
.reference-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem; border-top: 0; }
.reference-num { font-size: .8125rem; font-variant-numeric: tabular-nums; }
.reference-status { padding: .25rem .55rem; color: #555e60; background: #f2f3f2; font-size: .75rem; letter-spacing: .045em; }
.reference-status-active { color: var(--accent-text); background: #fff0ed; }
.reference-title { margin-top: 1rem; gap: .6rem; }
.reference-title h3 { font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.2; }
.reference-location { font-size: .875rem; letter-spacing: 0; }
.reference-card-body > p { flex: 1; margin: .8rem 0 1.3rem; font-size: 1rem; line-height: 1.6; }
.reference-units { display: flex; align-items: baseline; gap: .4rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.reference-units strong { font-family: var(--display); font-size: 1.4rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.reference-units span { color: var(--muted); font-size: .875rem; }
.project-thumb img, .reference-card-cover img { transition: transform 650ms cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-row-image:hover, .reference-card:hover { border-color: #bfc4c4; }
  .project-thumb:hover img, .reference-card-cover:hover img { transform: scale(1.035); }
}
.project-thumb:focus-within img, .reference-card-cover:focus-within img { transform: scale(1.035); }
.company-data { margin-top: clamp(2rem, 4vw, 4rem); padding-block: clamp(3.5rem, 5vw, 5rem); background: #f2f1ef; }
.company-info span { font-size: .8125rem; }
@media (max-width: 1100px) { .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .project-list { grid-template-columns: 1fr; gap: 1rem; }
  .project-row.project-row-image { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: .6rem .9rem; padding: .85rem; }
  .project-row.project-row-image:hover { padding-inline: .85rem; }
  .project-row-image .project-num { display: none; }
  .project-row-image .project-thumb { grid-column: 1; grid-row: 1 / 4; height: 100%; aspect-ratio: auto; }
  .project-row-image .project-place { grid-column: 2; grid-row: 1; margin: 0; gap: .15rem .5rem; }
  .project-row-image .project-place h3 { font-size: 1.4rem; }
  .project-row-image .project-location { font-size: .8125rem; }
  .project-row-image > p { grid-column: 2; grid-row: 2; margin: 0; font-size: .875rem; line-height: 1.5; }
  .project-meta { grid-column: 2; grid-row: 3; margin: 0; padding-top: .5rem; gap: .3rem .7rem; }
  .project-row-image .project-units { gap: .3rem; }
  .project-units strong { font-size: 1.15rem; }
  .project-units span, .project-status { font-size: .75rem; }
  .reference-grid { gap: 1rem; }
  .reference-card-body { padding: 1rem; }
  .reference-title { grid-template-columns: 1fr; gap: .15rem; }
  .reference-title h3 { font-size: 1.55rem; }
  .reference-card-body > p { font-size: .9375rem; }
  .company-data { margin-top: 2rem; padding-block: 3.2rem; }
}

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

/* Generous navigation rows echo the opening links on Motavalli. */
.hero .actions { display: grid; gap: .4rem; width: 100%; margin-top: 1.7rem; }
.hero .actions a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.1rem; padding: .6rem 0 .8rem; border-bottom-color: rgba(255,255,255,.55); font-family: var(--display); font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 400; line-height: 1.4; }
.hero-action-icon { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }
.hero .actions a::after { background: #fff; }
.hero .actions a:focus-visible { outline-color: #fff; }
@media (max-width: 640px) {
  .hero .actions { margin-top: 1.35rem; }
  .hero .actions a { min-height: 2.8rem; font-size: 1.1rem; }
  .hero-action-icon { width: 1.25rem; height: 1.25rem; }
}

/* One type scale for the introduction and its two navigation rows. */
.hero-aside { --hero-copy-size: clamp(1rem, 1.25vw, 1.18rem); }
.hero-aside > p, .hero .actions a { font-family: var(--body); font-size: var(--hero-copy-size); font-weight: 400; }
#hero-title .hero-enter-word { display: block; width: max-content; max-width: 100%; }
@media (max-width: 640px) { .hero-aside { --hero-copy-size: 1rem; } }

@media (min-width: 641px) {
  #hero-title .hero-enter-word { display: inline-block; }
  #hero-title .hero-enter-word:first-child { display: block; }
}

/* Type each character once while preserving the title's final layout. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-enter-char { opacity: 0; }
  .js .hero-enter-char.is-typed { opacity: 1; }
}

/* Desktop: the heading and description share a top line, with three facades below. */
.hero-blueprint-street { display: none; }
@media (min-width: 1001px) {
  .hero-layout { grid-template-columns: minmax(0, 1.6fr) minmax(18rem, .85fr); }
  .hero-heading { grid-column: 1; grid-row: 1; align-self: start; }
  .hero-aside { grid-column: 2; grid-row: 1; align-self: start; padding-top: 2.37rem; }
  .hero-blueprint-tower, .hero-blueprint-lowrise { display: none; }
  .hero-blueprint-street { display: block; width: min(100%, 42rem); max-width: none; height: auto; margin-top: 1.4rem; opacity: .26; }
  .hero-metrics { grid-row: 2; }
}
.hero-blueprint-street .blueprint-house-frame path { animation-duration: 1.2s; animation-delay: calc(1.9s + var(--house-step) * 2.8s); }
.hero-blueprint-street .blueprint-house-floors { opacity: .7; }
.hero-blueprint-street .blueprint-house-floors path { animation-duration: .7s; animation-delay: calc(2.6s + var(--house-step) * 2.8s); }
.hero-blueprint-street .blueprint-house-windows { opacity: .8; }
.hero-blueprint-street .blueprint-house-windows path { animation-duration: .45s; animation-delay: calc(3.3s + var(--house-step) * 2.8s + var(--window-step) * .07s); }
.hero-blueprint-street .blueprint-house-details { opacity: .6; }
.hero-blueprint-street .blueprint-house-details path { animation-duration: .5s; animation-delay: calc(4.15s + var(--house-step) * 2.8s); }
@media (prefers-reduced-motion: reduce) {
  .hero-blueprint-street path { animation: none; stroke-dashoffset: 0; }
}

/* Current projects return to the compact, sequential list. */
.project-list { display: block; border-top: 1px solid var(--line); }
.project-row.project-row-image { display: grid; grid-template-columns: 3.4rem clamp(8.5rem, 13vw, 12rem) minmax(11rem, .6fr) minmax(16rem, 1.4fr) 6.5rem; gap: clamp(1rem, 2vw, 2.4rem); align-items: center; padding: 1.5rem 0; border: 0; border-bottom: 1px solid var(--line); }
.project-row.project-row-image:hover { padding-inline: .8rem; }
.project-row-image .project-num { position: static; display: block; width: auto; height: auto; background: transparent; }
.project-row-image .project-thumb { height: auto; aspect-ratio: 4 / 3; }
.project-row-image .project-place { display: block; margin: 0; }
.project-row-image .project-place h3 { margin: 0 0 .25rem; font-size: clamp(1.35rem, 1.8vw, 1.8rem); line-height: 1; }
.project-row-image .project-location { font-size: .8125rem; }
.project-row-image > p { margin: 0; font-size: .9375rem; }
.project-meta { flex-direction: column; align-items: flex-end; gap: .2rem; margin: 0; padding: 0; border: 0; }
.project-row-image .project-units { display: block; text-align: right; }
.project-units strong { font-size: 1.35rem; }
.project-units span { font-size: .75rem; }
.project-status { font-size: .75rem; }
@media (max-width: 860px) {
  .project-row.project-row-image { grid-template-columns: clamp(7rem,18vw,9rem) minmax(0,1fr); gap: .55rem 1rem; align-items: start; padding: 1.25rem 0; }
  .project-row.project-row-image:hover { padding-inline: 0; }
  .project-row-image .project-num { display: none; }
  .project-row-image .project-thumb { grid-column: 1; grid-row: 1 / 3; }
  .project-row-image .project-place { grid-column: 2; grid-row: 1; }
  .project-row-image .project-meta { grid-column: 2; grid-row: 2; flex-direction: row; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: .25rem 1rem; }
  .project-row-image .project-units { display: flex; text-align: left; }
  .project-row-image > p { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 640px) {
  .project-row.project-row-image { grid-template-columns: 6.6rem minmax(0,1fr); }
  .project-row-image > p { font-size: .875rem; line-height: 1.55; }
  .project-units strong { font-size: 1.1rem; }
}

.hero-blueprint-street.is-drawn path { animation: none; stroke-dashoffset: 0; }

/* On phones the facade drawing waits for the last typed character. */
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .js #hero-title:not(.hero-typing-complete) ~ .hero-blueprint-mobile { visibility: hidden; }
  .js .hero-blueprint-mobile path { animation-play-state: paused; }
  .js #hero-title.hero-typing-complete ~ .hero-blueprint-mobile path { animation-play-state: running; }
}
