/* ==========================================================================
   sections.css — content sections added on top of styles.css
   Extends the same design language: hairline rules, mono labels, orange signal.
   ========================================================================== */

/* --- Split: copy beside a framed image plate ----------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.split--reverse {
  grid-template-columns: 1.1fr 1fr;
}

.split--reverse .split-copy {
  order: 2;
}

.split--tight {
  margin-top: 72px;
  gap: 48px;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.split-h {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.split-copy p {
  color: var(--steel);
  font-size: 1.02rem;
  margin-bottom: 14px;
}

.split-copy p:last-child {
  margin-bottom: 0;
}

/* Framed image plate — hairline border + offset signal rule */
.plate {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-raised);
}

.plate::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--signal);
}

.plate img {
  width: 100%;
  height: auto;
}

/* --- Hero image inside the existing HUD frame ---------------------------- */
.hud-frame {
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: visible;
  background: var(--paper-raised);
}

.hud-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hud-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

/* --- Traits: bento grid, wide cards open and close the set ---------------- */
.traits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trait {
  position: relative;
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 24px 28px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* index ghost numeral, for depth behind the copy */
.trait::after {
  content: attr(data-n);
  position: absolute;
  bottom: -22px;
  inset-inline-end: 6px;
  font-family: var(--font-display);
  font-size: 5.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
}

.trait:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 27, 38, 0.07);
}

.trait--wide {
  grid-column: span 2;
  background: var(--signal-soft);
  border-color: var(--signal);
}

.trait--wide::after {
  color: var(--signal-deep);
  opacity: 0.12;
}

.trait-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--signal-deep);
  margin-bottom: 12px;
}

[lang="he"] .trait-num {
  letter-spacing: 0.06em;
}

.trait h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.trait--wide h3 {
  font-size: 1.25rem;
}

.trait p {
  position: relative;
  z-index: 1;
  color: var(--steel);
  font-size: 0.95rem;
}

/* --- Applications grid: photo cards -------------------------------------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.app-card {
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.app-card img {
  width: 100%;
  /* height:auto is required, otherwise the height="" attribute wins over aspect-ratio */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
  transition: filter 0.2s ease, transform 0.3s ease;
}

.app-card figcaption {
  padding: 14px 14px 16px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.app-card:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 27, 38, 0.08);
}

.app-card:hover img {
  filter: saturate(1.05);
  transform: scale(1.03);
}

/* --- Dual use call-out --------------------------------------------------- */
.dual-use {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 32px;
  padding: 22px 26px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--signal);
  border-radius: 3px;
}

.dual-use-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-deep);
  border: 1px solid var(--signal);
  border-radius: 2px;
  padding: 4px 10px;
  margin-top: 2px;
}

.dual-use p {
  color: var(--steel);
  font-size: 0.98rem;
}

/* --- Milestones rail ----------------------------------------------------- */
.milestones {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: ms;
}

.milestones li {
  position: relative;
  padding: 26px 24px 26px 0;
  border-top: 2px solid var(--line-strong);
}

.milestones li::before {
  content: "✓";
  position: absolute;
  top: -13px;
  inset-inline-start: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--signal);
  border-radius: 50%;
  border: 3px solid var(--paper);
  box-sizing: content-box;
}

[dir="rtl"] .milestones li {
  padding: 26px 0 26px 24px;
}

.milestones h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

/* --- Founders ------------------------------------------------------------ */
.about-copy {
  max-width: 760px;
  margin-bottom: 40px;
}

.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

.founder-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 26px;
}

.founder-role {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-deep);
  margin-bottom: 10px;
}

[lang="he"] .founder-role {
  letter-spacing: 0;
  text-transform: none;
}

.founder-card h3 {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.founder-card p {
  color: var(--steel);
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.founder-edu {
  font-size: 0.85rem !important;
  color: var(--steel-soft) !important;
  margin-bottom: 0 !important;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* --- Direct contact block ------------------------------------------------ */
.contact-direct {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 52px 40px;
}

.contact-direct h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.contact-direct p {
  color: var(--steel);
  font-size: 1.02rem;
  margin-bottom: 30px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
  padding-bottom: 4px;
  word-break: break-all;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-email:hover {
  color: var(--signal-deep);
  border-color: var(--signal-deep);
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split--reverse .split-copy {
    order: 0;
  }

  .split--tight {
    margin-top: 48px;
  }

  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .traits {
    grid-template-columns: repeat(2, 1fr);
  }

  .milestones {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .traits,
  .trait--wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .milestones {
    grid-template-columns: 1fr;
  }

  .founders {
    grid-template-columns: 1fr;
  }

  .dual-use {
    flex-direction: column;
    gap: 14px;
  }

  .contact-direct {
    padding: 34px 22px;
  }
}

/* --- Development-principles pyramid (exported from the deck) -------------- */
.pyramid {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.pyramid img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-raised);
}

.pyramid figcaption {
  margin-top: 14px;
  color: var(--steel-soft);
  font-size: 0.88rem;
}
