/* Nourix hero composition — layout only.
   Tokens, corners, controls and motion live in shared/site-system.css.
   12 columns / 24px gutter / 8px spacing unit.
   Desktop: title 7 + summary 5; image study 8 + macro detail 4.
   Tablet: 6 + 6 text, then 8 + 4 media. Phone: one reading column.
   Native Persian typography, not tracked Latin typography applied to RTL.
*/

.n-engineered {
  color: var(--n-ink);
  background: var(--n-paper);
  padding: 64px 0 48px;
}
.n-engineered::before,
.n-engineered::after { content: none; }
.n-engineered .n-intro,
.n-engineered .n-showcase {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--n-gutter);
}
.n-engineered .n-intro { align-items: start; }
.n-engineered h1,
[dir=rtl] .n-engineered h1 {
  grid-column: span 7;
  display: block;
  max-width: none;
  margin: 0;
  font-size: clamp(44px, 4.45vw, 64px);
  font-weight: 550;
  line-height: 1.13;
  letter-spacing: -.04em;
  color: var(--n-ink);
}
[dir=rtl] .n-engineered h1 {
  font-size: clamp(42px, 4.3vw, 62px);
  line-height: 1.48;
  letter-spacing: 0;
  font-weight: 600;
}
.n-engineered .n-summary {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 8px;
  min-width: 0;
}
.n-engineered .lede,
[dir=rtl] .n-engineered .lede {
  max-width: 43ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--n-copy);
  margin: 0;
}
[dir=rtl] .n-engineered .lede { line-height: 1.95; }
.n-engineered .cta-row { align-items: center; gap: 12px 20px; }
.n-engineered .n-showcase { margin-top: 48px; align-items: start; }
.n-engineered .n-render { min-width: 0; margin: 0; }
.n-engineered .n-render-main { grid-column: span 8; }
.n-engineered .n-render-detail { grid-column: span 4; }
.n-engineered .n-image {
  height: clamp(320px, 31vw, 440px);
  overflow: hidden;
  background: var(--n-photo);
}
.n-engineered .n-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.n-engineered .n-render-main .n-image img { object-fit: cover; }
.n-engineered figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  color: var(--n-copy);
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 1100px) {
  .n-home-pilot .n-hero > .wrap { padding-inline: 32px; }
  .n-engineered .n-intro h1 { grid-column: span 6; }
  .n-engineered .n-summary { grid-column: span 6; }
  .n-engineered .n-image { height: 340px; }
  .n-engineered .n-render-main .n-image img { object-fit: contain; }
}
@media (max-width: 760px) {
  .n-site { --n-gutter: 16px; }
  .n-home-pilot .n-hero > .wrap { padding-inline: 24px; }
  .n-engineered { padding: 40px 0; }
  .n-engineered .n-intro { row-gap: 24px; }
  .n-engineered .n-intro h1,
  .n-engineered .n-summary { grid-column: 1 / -1; }
  .n-engineered h1,
  [dir=rtl] .n-engineered h1 { font-size: clamp(36px, 6.7vw, 48px); }
  [dir=rtl] .n-engineered h1 { line-height: 1.5; }
  .n-engineered .n-summary { padding-top: 0; gap: 24px; }
  .n-engineered .lede,
  [dir=rtl] .n-engineered .lede { font-size: 16px; max-width: 44ch; }
  .n-engineered .n-showcase { margin-top: 32px; row-gap: 24px; }
  .n-engineered .n-render-main { grid-column: 1 / -1; }
  .n-engineered .n-render-detail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
    align-items: end;
  }
  .n-engineered .n-render-detail .n-image { grid-column: span 2; }
  .n-engineered .n-render-detail figcaption { grid-column: span 1; padding-top: 0; }
  .n-engineered .n-image { height: auto; aspect-ratio: 16 / 10; }
  .n-engineered .n-render-detail .n-image { aspect-ratio: 4 / 3; }
  .n-engineered .n-render-main .n-image img { object-fit: contain; }
  .n-engineered figcaption { padding-top: 12px; }
  .n-engineered .n-render-main figcaption span:last-child { flex-basis: auto; }
}
@media (max-width: 390px) {
  .n-engineered .cta-row { gap: 12px 16px; }
  .n-engineered .btn,
  [dir=rtl] .n-engineered .btn { font-size: 14px; gap: 8px; }
}
