.identity-page {
  background: var(--paper);
}
.identity-hero {
  padding: clamp(78px, 10vw, 140px) 0 clamp(56px, 7vw, 92px);
  background: var(--paper);
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
}
.identity-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(34px, 7vw, 90px);
}
.identity-hero .eyebrow {
  color: var(--navy);
}
.identity-hero .display {
  margin: 18px 0;
  max-width: 12ch;
}
.identity-hero .lead {
  color: var(--text-dim);
}
.identity-guide-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.identity-guide-downloads .btn {
  padding: 0.78rem 1rem;
}
.identity-guide-downloads svg {
  width: 18px;
  height: 18px;
}
.identity-hero-mark {
  min-height: 340px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  background: var(--paper-2);
}
.identity-hero-mark img {
  width: min(74%, 330px);
}
.identity-section {
  padding: var(--sp-section) 0;
}
.identity-tint {
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
}
.identity-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 36px;
}
.identity-heading p {
  color: var(--text-dim);
  max-width: 58ch;
  font-size: 1.05rem;
}
.logo-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.identity-logo-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.identity-logo-preview {
  min-height: 300px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background-color: var(--paper-2);
  background-image:
    linear-gradient(45deg, rgba(6, 29, 71, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(6, 29, 71, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(6, 29, 71, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(6, 29, 71, 0.04) 75%);
  background-size: 24px 24px;
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
}
.identity-logo-preview img {
  width: min(62%, 230px);
  max-height: 230px;
}
.identity-logo-preview.signature img {
  width: min(84%, 360px);
  max-height: 260px;
}
.identity-logo-card h2 {
  margin: 20px 0 6px;
  font-family: var(--font-title);
  font-size: 1.28rem;
}
.identity-logo-card > p {
  color: var(--text-mute);
  min-height: 2.8em;
}
.identity-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.identity-downloads .btn {
  padding: 0.72rem 1rem;
  font-size: 0.84rem;
}
.swatch-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
}
.swatch {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  font-weight: 700;
}
.swatch code {
  margin-top: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  opacity: 0.72;
}
.swatch-navy {
  color: #fff;
  background: #061d47;
}
.swatch-gold {
  color: #061d47;
  background: #eab749;
}
.swatch-paper {
  background: #fff;
}
.swatch-mist {
  background: #f4f6fa;
}
.font-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.font-card {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.font-card small {
  color: var(--text-mute);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.font-card h2 {
  margin: 28px 0 8px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.font-display h2,
.font-display p {
  font-family: var(--font-title);
}
.font-card p {
  min-height: 3.5em;
  margin-bottom: 28px;
  color: var(--text-dim);
  font-size: 1.15rem;
}
.identity-rules {
  background: var(--paper);
  color: var(--text);
  border-top: 1px solid var(--line-soft);
}
.identity-rules .eyebrow {
  color: var(--navy);
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rules-grid article {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--white);
}
.rules-grid svg {
  width: 30px;
  height: 30px;
  margin-bottom: 24px;
  color: var(--navy);
}
.rules-grid p {
  color: var(--text-dim);
  font-size: 0.94rem;
}
.identity-shapes {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}
.identity-shape-canvas {
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  background: var(--white);
  overflow: hidden;
  box-sizing: border-box;
}
.identity-vision {
  position: relative;
  width: min(68%, 340px);
  aspect-ratio: 1;
}
.identity-vision .iv {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 15%;
  transform: rotate(45deg);
}
.identity-vision .iv-outline {
  width: 70%;
  top: 15%;
  left: 15%;
  border: 1.5px solid var(--line);
}
.identity-vision .iv-core {
  width: 34%;
  top: 33%;
  left: 33%;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.identity-vision .iv-step-one {
  width: 20%;
  left: 5%;
  bottom: 8%;
  background: var(--navy-3);
}
.identity-vision .iv-step-two {
  width: 20%;
  left: 24%;
  bottom: 8%;
  border: 1.5px solid rgba(6, 29, 71, 0.35);
}
.identity-vision .iv-step-three {
  width: 20%;
  right: 5%;
  top: 8%;
  background: var(--navy-3);
}
.identity-vision .iv-signal {
  width: 13%;
  right: 18%;
  bottom: 12%;
  background: var(--gold);
}
.identity-vision .iv-node {
  width: 6%;
  left: 14%;
  top: 12%;
  background: var(--gold);
  border-radius: 4px;
}
.identity-shape-copy h2 {
  margin: 16px 0 18px;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}
.identity-shape-copy .lead {
  max-width: none;
  color: var(--text-dim);
}
.identity-shape-points {
  display: grid;
  gap: 13px;
  margin-top: 25px;
}
.identity-shape-points li {
  list-style: none;
  padding: 15px 18px;
  border-inline-start: 3px solid var(--navy);
  border-start-end-radius: var(--r-sm);
  border-end-end-radius: var(--r-sm);
  background: var(--paper-2);
  color: var(--text-dim);
}
@media (max-width: 900px) {
  .identity-hero-grid,
  .identity-heading,
  .identity-shapes {
    grid-template-columns: 1fr;
  }
  .identity-hero-mark {
    min-height: 260px;
  }
  .swatch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .logo-library,
  .font-grid,
  .swatch-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .identity-logo-preview {
    min-height: 240px;
  }
  .identity-downloads .btn {
    width: 100%;
    justify-content: center;
  }
}
html[lang="ar"] .identity-heading p,
html[lang="ar"] .identity-logo-card p,
html[lang="ar"] .rules-grid p {
  line-height: 1.8;
}
