/* ============================================================
   AORVIS — Page-specific styles
   ============================================================ */

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(2.5rem,5vw,4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--t-4xl); max-width: 16ch; margin-top: 1.25rem; }
.page-hero .lead { margin-top: 1.75rem; }
.page-hero__crumb { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted); letter-spacing: .08em; }
.page-hero__crumb a { color: var(--muted); }
.page-hero__crumb a:hover { color: var(--blue); }

/* ---------- Long-form prose ---------- */
.prose { max-width: var(--measure); font-size: var(--t-md); line-height: 1.72; color: var(--slate); }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { font-size: var(--t-xl); color: var(--ink); margin-top: 3rem; letter-spacing: -.02em; }
.prose h3 { font-size: var(--t-lg); color: var(--ink); margin-top: 2.25rem; }
.prose p { color: var(--slate); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.prose a:hover { text-decoration-color: var(--blue); }
.prose ul, .prose ol { margin-left: 0; }
.prose li { position: relative; padding-left: 1.5rem; margin-block: .55rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: .5rem; height: .5rem; background: var(--blue); }
.prose ol { counter-reset: li; }
.prose ol li::before { counter-increment: li; content: counter(li,decimal-leading-zero); position: absolute; left: 0; top: .05em; font-family: var(--font-mono); font-size: .8em; color: var(--blue); }
.prose blockquote {
  border-left: 2px solid var(--blue); padding: .25rem 0 .25rem 1.5rem; margin-left: 0;
  font-family: var(--font-display); font-size: var(--t-lg); color: var(--ink); line-height: 1.4; letter-spacing: -.01em;
}
.prose figure { margin: 2.5rem 0; }
.prose figure img { width: 100%; border: 1px solid var(--line); }
.prose figcaption { margin-top: .75rem; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted); letter-spacing: .04em; }
.prose .callout {
  background: var(--paper); border-left: 2px solid var(--blue);
  padding: 1.25rem 1.5rem; font-size: var(--t-base);
}
.prose .callout p { color: var(--ink); }

/* ---------- Article header ---------- */
.article-head { padding-block: clamp(3rem,6vw,5rem) 0; }
.article-head__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted); letter-spacing: .06em; }
.article-head__meta .tag { color: var(--blue); }
.article-head h1 { font-size: var(--t-4xl); max-width: 18ch; margin-top: 1.5rem; }
.article-head .lead { margin-top: 1.5rem; }
.article-cover { margin-top: clamp(2rem,4vw,3rem); aspect-ratio: 16/7; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding-block: clamp(2.5rem,5vw,4rem); }

/* depth ruler beside the article */
.ruler { position: sticky; top: calc(var(--header-h) + 2rem); }
.ruler__bar { border-left: 1px solid var(--line); height: 60vh; position: relative; }
.ruler__tick { position: absolute; left: -1px; width: 12px; height: 1px; background: var(--ink); }
.ruler__label { position: absolute; left: 20px; transform: translateY(-50%); font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.ruler__progress { position: absolute; left: -2px; top: 0; width: 3px; background: var(--blue); height: 0; }

/* ---------- Category / listing ---------- */
.listing-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 2.5rem; }
.listing-count { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--muted); }

/* ---------- Contact ---------- */
.form { display: grid; gap: 1.25rem; max-width: 540px; }
.field label { display: block; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; font: inherit; font-size: var(--t-base);
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-08); }
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; }
.form__note { font-size: var(--t-xs); color: var(--muted); }
.flash { padding: 1rem 1.25rem; border-left: 2px solid; font-size: var(--t-sm); margin-bottom: 1.5rem; }
.flash--ok { border-color: var(--blue); background: var(--blue-04); color: var(--ink); }
.flash--err { border-color: #b00020; background: #b000200a; color: #7a0016; }

/* ---------- Logo wall ---------- */
.logos { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
@media (min-width: 760px){ .logos { grid-template-columns: repeat(6,1fr); } }
.logos div { background:#fff; display:grid; place-items:center; padding: 1.5rem; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted); letter-spacing:.1em; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-mono); color: var(--blue); font-size: var(--t-lg); letter-spacing:.2em; }
.notfound h1 { font-size: var(--t-4xl); margin: 1rem 0; }

/* ---------- Page hero with Three.js background ---------- */
.page-hero--three {
  position: relative; overflow: hidden;
  min-height: clamp(360px, 54vh, 540px);
  display: flex; align-items: center;
}
.page-hero--three > .shell { position: relative; z-index: 2; }
.page-hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.page-hero--three::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.6) 46%, rgba(255,255,255,0) 78%);
}
@media (max-width: 720px) {
  .page-hero--three::after {
    background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.88) 100%);
  }
}

/* ---------- Per-page cover banner (sectors / products / services) ---------- */
.page-cover {
  margin-top: clamp(2rem, 4vw, 3rem);
  aspect-ratio: 16 / 6; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper);
}
.page-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
