/* Inner pages and the repair demo. Loaded after styles.css. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page hero */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,17,21,.92) 0%, rgba(13,17,21,.7) 55%, rgba(13,17,21,.45) 100%); }
.page-hero-inner { position: relative; padding-top: 40px; padding-bottom: 44px; }
.page-hero h1 { font-size: clamp(40px, 8vw, 72px); text-transform: uppercase; max-width: 15ch; }
.page-hero .lede { font-size: 19px; color: #d6dce1; max-width: 640px; margin: 0 0 22px; }
.crumbs { font-size: 13.5px; color: var(--muted-d); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: #dfe4e8; text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs span[aria-hidden] { color: var(--steel-3); }
.main-nav a:first-child { color: #dfe4e8; border-bottom-color: transparent; }
.main-nav a:hover { color: #fff; border-bottom-color: var(--orange); }
.main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }

/* Content blocks */
.section h2 { font-size: clamp(32px, 5vw, 46px); text-transform: uppercase; }
.prose { max-width: 720px; }
.prose p { color: var(--text); }
.cards { display: grid; gap: 14px; margin-top: 24px; }
.card { background: var(--white); border: 1px solid var(--paper-2); border-radius: var(--r); padding: 20px; border-top: 3px solid var(--orange); }
.card h3 { font-size: 23px; margin-bottom: 6px; text-transform: uppercase; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card ul { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.card li { padding-left: 20px; position: relative; font-size: 15.5px; }
.card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 11px; background: var(--orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.card-dark { background: var(--steel-2); color: #fff; border-color: var(--steel-3); }
.card-dark p { color: #c3cbd2; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--orange-ink); }
.dark-band { background: var(--ink); color: #fff; }
.dark-band .section-lede, .dark-band p { color: #cdd4da; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 0; }
.facts div { border-left: 2px solid var(--orange); padding-left: 12px; }
.facts b { display: block; font: 700 34px/1 var(--head); }
.facts span { font-size: 14px; color: var(--muted); }
.dark-band .facts span { color: var(--muted-d); }
.chip-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { background: var(--white); border: 1px solid var(--paper-2); border-radius: 99px; padding: 6px 12px; font-weight: 600; font-size: 15px; }
.dark-band .chip-list li { background: var(--steel-2); border-color: var(--steel-3); color: #fff; }
.img-round { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.note-ph { font-size: 14px; color: #7a5a00; background: #fff8e6; border: 1px dashed #d9a521; border-radius: var(--r); padding: 10px 12px; margin-top: 16px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 28px 0 0; border-left: 2px solid var(--orange); }
.timeline li { position: relative; padding: 0 0 26px 30px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 18px; background: var(--orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.timeline .yr { font: 700 28px/1 var(--head); color: var(--orange-ink); display: block; margin-bottom: 4px; }
.timeline h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); max-width: 640px; }

/* Leadership */
.leaders { display: grid; gap: 16px; margin-top: 26px; }
.leader { background: var(--white); border: 1px solid var(--paper-2); border-radius: var(--r); padding: 20px; display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 18px; align-items: start; }
.leader-photo { width: 112px; height: 132px; object-fit: cover; object-position: 50% 22%; border-radius: var(--r); border-bottom: 3px solid var(--orange); background: #2b3035; }
@media (max-width: 420px) { .leader { grid-template-columns: 84px minmax(0,1fr); gap: 14px; } .leader-photo { width: 84px; height: 100px; } }
.leader .mono { width: 64px; height: 72px; background: var(--ink); color: var(--orange); font: 700 24px/72px var(--head); text-align: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.leader h3 { font-size: 25px; margin-bottom: 2px; text-transform: uppercase; }
.leader .role { font-weight: 700; color: var(--orange-ink); font-size: 14.5px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; }
.leader p { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; }

/* Contact */
.contact-grid { display: grid; gap: 14px; margin-top: 24px; }
.contact-grid .card .btn { margin-top: 14px; }
.offices { display: grid; gap: 10px; margin-top: 18px; }

/* Repair demo */
.repair-wrap { background: radial-gradient(120% 90% at 50% 10%, #2b3540 0%, #151b21 55%, #0d1115 100%); border-radius: 10px; padding: 18px 14px 14px; border: 1px solid var(--steel-3); }
.repair-stage { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 8px; overflow: hidden; background: #cfd0d2; }
.repair-photo, .repair-damage, .repair-fx, .repair-shine { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.repair-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #3a4450; font-weight: 600; }
.repair-stage:not(.is-loading) .repair-loading { display: none; }
.repair-stage.is-loading .repair-hint { display: none; }
.repair-damage { transition: opacity .5s ease; }
.repair-fx { pointer-events: none; }
.repair-tool { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; z-index: 3; transition: opacity .15s; will-change: transform; }
.repair-tool.on { opacity: 1; }
.repair-tool img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 6px rgba(0,0,0,.32)); transition: filter .12s; user-select: none; -webkit-user-drag: none; }
.repair-tool.is-down img { filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.repair-stage { cursor: crosshair; }
.is-done .repair-stage { cursor: default; }
.repair-stage.tool-on { cursor: none !important; }
.repair-shine { pointer-events: none; opacity: 0; mix-blend-mode: screen; background: linear-gradient(100deg, transparent 32%, rgba(255,255,255,.5) 46%, transparent 60%); background-size: 250% 100%; background-position: 150% 0; -webkit-mask: radial-gradient(ellipse 48% 38% at 50% 52%, #000 55%, transparent 100%); mask: radial-gradient(ellipse 48% 38% at 50% 52%, #000 55%, transparent 100%); }
.repair-shine.go { animation: shine 1.4s ease-out 1; }
@keyframes shine { 0% { opacity: 1; background-position: 150% 0; } 100% { opacity: 1; background-position: -60% 0; } }
.repair-hint { position: absolute; left: 50%; top: 5%; transform: translateX(-50%); margin: 0; background: rgba(13,17,21,.82); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; padding: 7px 14px 7px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.repair-hint-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(232,116,47,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(232,116,47,0); } 100% { box-shadow: 0 0 0 0 rgba(232,116,47,0); } }
.repair-done { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); margin: 0; background: var(--ok); color: #fff; border-radius: 99px; padding: 8px 16px; font: 700 16px var(--head); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.repair-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; }
.repair-meter { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; color: #dfe4e8; min-width: 200px; flex: 1 1 220px; }
.repair-meter-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted-d); }
.repair-pct { font: 700 26px/1 var(--head); color: #fff; justify-self: start; }
.repair-track { grid-column: 1 / -1; height: 6px; background: var(--steel-3); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.repair-fill { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.repair.is-done .repair-fill { background: var(--ok); }
.repair-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.repair-actions .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.repair-caption { font-size: 14px; color: var(--muted-d); margin: 10px 2px 0; }
.demo-hero .page-hero-inner { padding-bottom: 28px; }
.demo-hero h1 { font-size: clamp(34px, 5.5vw, 58px); max-width: 24ch; }
.demo-hero .lede { margin-bottom: 18px; }

@media (max-width: 520px) {
  .repair-hint { font-size: 12px; padding: 5px 10px; top: 0; }
  .repair-done { font-size: 13px; top: 0; }
  .repair-wrap { padding: 12px 8px 10px; }
}
@media (min-width: 640px) {
  .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr 1fr; }
  .offices { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .cards.c3 { grid-template-columns: repeat(3, 1fr); }
  .cards.c4 { grid-template-columns: repeat(4, 1fr); }
  .page-hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .two-col { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 48px; align-items: start; }
  .leaders { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .repair-hint-dot { animation: none; } }
