/* ============================================================
   INNER PAGES — shared page-hero + capability grids + contact
   ============================================================ */

/* Page hero — two-column layout so the H1 + lede land in the first viewport
   alongside the composed section slide (no more scrolling to find the title). */
.page-hero {
  position: relative;
  padding: 6rem 0 3rem;   /* top clears the fixed nav */
  background: var(--midnight-navy-deep);
  overflow: hidden;
}
/* Tight variant (Contact page — no composed slide) */
.page-hero--tight { padding-block: 6rem 1rem; }

/* When a slide is present, split into two columns using the parent grid */
.page-hero:has(.page-hero__frame) {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.page-hero:has(.page-hero__frame) > * {
  max-width: none;
}

.page-hero__frame {
  position: relative;
  margin: 0;
}
.page-hero__frame img {
  width: 100%;
  max-height: 62vh;
  min-height: 320px;
  display: block;
  object-fit: contain;
  object-position: center;
  animation: pageBreathe 22s var(--ease-in-out) infinite alternate;
}
@keyframes pageBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.018); }
}

.page-hero__meta {
  padding: 0;
  max-width: none;
  margin-inline: 0;
  text-align: left;
}
.page-hero__meta .eyebrow { display: block; margin-bottom: 1.25rem; }
.page-hero__meta h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.08;
  max-width: 22ch;
  margin-inline: 0;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}
.page-hero__meta .lede {
  max-width: 52ch;
  margin-inline: 0;
  color: rgba(247,247,244,0.85);
}

/* Tight variant keeps its centered layout (no slide) */
.page-hero--tight .page-hero__meta {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.page-hero--tight .page-hero__meta h1 { margin-inline: auto; }
.page-hero--tight .page-hero__meta .lede { margin-inline: auto; }

/* Mobile: stack the columns */
@media (max-width: 900px) {
  .page-hero:has(.page-hero__frame) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .page-hero { padding-top: 5rem; padding-bottom: 2rem; }
  .page-hero__meta { text-align: center; }
  .page-hero__meta h1 { margin-inline: auto; max-width: 20ch; }
  .page-hero__meta .lede { margin-inline: auto; }
  .page-hero__frame img { max-height: 46vh; min-height: 220px; }
}

/* Two-column section */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.two-col--flip .two-col__copy { order: 2; }
@media (max-width: 900px) { .two-col--flip .two-col__copy { order: initial; } }
.two-col__copy .eyebrow { display: block; margin-bottom: 1.25rem; }
.two-col__copy h2 {
  font-weight: 300;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 20ch;
}
.two-col__copy p { max-width: 60ch; }
.two-col__copy .body-dim { margin-top: 1rem; }
.two-col__media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.fp-visual-img {
  max-width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

/* Capability grids */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(220,238,255,0.02), rgba(220,238,255,0));
  transition: border-color var(--dur-med), background var(--dur-med), transform var(--dur-med);
  display: flex; flex-direction: column;
}
.cap-card:hover {
  border-color: var(--ice-blue-dim);
  background: linear-gradient(180deg, rgba(220,238,255,0.05), rgba(220,238,255,0));
  transform: translateY(-2px);
}
.cap-card__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ice-blue);
  margin-bottom: 1rem;
}
.cap-card h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.cap-card p { margin: 0; }

/* Project cards — the composed section images are 1:1 with baked-in titles
   and DF logos, so we render them completely inside a padded frame so nothing
   ever clips at the edges. */
.project { display: flex; flex-direction: column; }
.project__media {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--midnight-navy-deep);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;              /* guaranteed inner breathing room */
  overflow: hidden;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 1400ms var(--ease-out);
  display: block;
}
.project:hover .project__media img { transform: scale(1.02); }
.project__meta { padding: 1.5rem 0.25rem 0; }
.project__meta .eyebrow { display: block; margin-bottom: 0.75rem; }
.project__meta h4 { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }

.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { padding-block: clamp(4rem, 7vw, 6rem); }
.cta-band h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: flex-start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side h3 {
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}
.contact-side__list { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-side__list li {
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
}
.contact-side__list li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  color: var(--ice-blue);
  font-family: var(--font-mono);
}
.contact-side__list strong { color: var(--arch-white); font-weight: 500; }

.contact-side__meta { padding-top: 2rem; border-top: 1px solid var(--line); }
.contact-side__meta a { color: var(--ice-blue); border-bottom: 1px solid transparent; transition: border-color var(--dur-fast); }
.contact-side__meta a:hover { border-color: currentColor; }

.contact-form {
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(220,238,255,0.02), rgba(220,238,255,0));
  display: flex; flex-direction: column; gap: 1.15rem;
}
.contact-form label {
  display: flex; flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice-blue);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line-strong);
  padding: 0.9em 1em;
  color: var(--arch-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  border-radius: 0;
  transition: border-color var(--dur-fast);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ice-blue);
}
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 48%, var(--ice-blue) 48%, var(--ice-blue) 52%, transparent 52%); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 12px; padding-right: 2.5rem; }
.cf-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .cf-row--2 { grid-template-columns: 1fr; } }
.cf-note { margin-top: 0.5rem; font-size: 0.78rem; }
.cf-success {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--ice-blue-dim);
  background: rgba(220,238,255,0.08);
  color: var(--ice-blue);
  font-size: 0.9rem;
}

/* ================================================================
   ForgeOS · Preview banner, expected results, illustrative scenarios
   ================================================================ */

/* --- Preview banner (above the iframes) --- */
.preview-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(90deg,
    rgba(220, 238, 255, 0.06) 0%,
    rgba(220, 238, 255, 0.04) 100%);
  border: 1px solid rgba(220, 238, 255, 0.18);
  border-radius: 12px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.preview-banner__pulse {
  position: absolute;
  left: -20%;
  top: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg,
    transparent,
    rgba(220, 238, 255, 0.05),
    transparent);
  animation: preview-banner-sweep 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes preview-banner-sweep {
  0%, 100% { transform: translateX(0); opacity: 0; }
  50% { transform: translateX(300%); opacity: 1; }
}
.preview-banner__content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.preview-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(220, 238, 255, 0.1);
  border: 1px solid rgba(220, 238, 255, 0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.preview-banner__badge svg {
  width: 12px;
  height: 12px;
  animation: preview-badge-spin 6s linear infinite;
}
@keyframes preview-badge-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.preview-banner__text {
  margin: 0;
  color: var(--arch-white);
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.preview-banner__text strong {
  font-weight: 500;
  color: var(--arch-white);
}
.preview-banner__text span {
  color: rgba(220, 238, 255, 0.7);
  font-size: 0.88rem;
}
.preview-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--ice-blue);
  color: var(--midnight-navy);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.preview-banner__cta:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}
.preview-banner__cta svg {
  width: 14px;
  height: 10px;
}

/* --- Expected results grid (below the iframes) --- */
.expected-results {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: rgba(220, 238, 255, 0.03);
  border: 1px solid rgba(220, 238, 255, 0.12);
  border-radius: 16px;
}
.expected-results__head {
  text-align: center;
  margin-bottom: 2rem;
}
.expected-results__head .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}
.expected-results__head h3 {
  margin: 0 auto;
  max-width: 34ch;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.2;
}
.expected-results__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.expected-card {
  padding: 1.5rem 1.25rem;
  background: rgba(15, 39, 71, 0.4);
  border: 1px solid rgba(220, 238, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.expected-card:hover {
  border-color: rgba(220, 238, 255, 0.28);
  transform: translateY(-2px);
}
.expected-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 238, 255, 0.08);
  border-radius: 8px;
  color: var(--ice-blue);
}
.expected-card__icon svg {
  width: 20px;
  height: 20px;
}
.expected-card__metric {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--arch-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.expected-card__metric span {
  font-size: 0.75rem;
  color: rgba(220, 238, 255, 0.6);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  margin-left: 0.15rem;
  text-transform: uppercase;
}
.expected-card__label {
  margin: 0;
  color: rgba(220, 238, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* --- Illustrative example scenarios (below expected results) --- */
.trust-quotes {
  margin-top: 3.5rem;
}
.trust-quotes__head {
  text-align: center;
  margin-bottom: 2rem;
}
.trust-quotes__head .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}
.trust-quotes__caption {
  color: rgba(220, 238, 255, 0.55);
  font-size: 0.82rem;
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.5;
  font-style: italic;
}
.trust-quotes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.trust-quote {
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: rgba(15, 39, 71, 0.35);
  border: 1px solid rgba(220, 238, 255, 0.12);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: border-color 0.3s ease;
}
.trust-quote:hover {
  border-color: rgba(220, 238, 255, 0.24);
}
.trust-quote__tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 0.3rem 0.7rem;
  background: rgba(220, 238, 255, 0.08);
  border: 1px solid rgba(220, 238, 255, 0.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-blue);
}
.trust-quote__text {
  margin: 0;
  color: var(--arch-white);
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: normal;
  flex: 1;
}
.trust-quote__author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(220, 238, 255, 0.1);
}
.trust-quote__role {
  color: rgba(220, 238, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .preview-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 1.25rem;
  }
  .preview-banner__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .preview-banner__cta {
    justify-content: center;
    width: 100%;
  }
  .expected-results {
    padding: 1.75rem 1rem;
  }
  .expected-results__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-quotes__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .expected-results__grid {
    grid-template-columns: 1fr;
  }
}
