/* Photo-led sections: home hero, applications, industries grid and news. */
:root {
  --anthracite: #15191f;
  --anthracite-soft: #1f252d;
  --on-dark: #f2f5f0;
  --on-dark-muted: #b4bdc8;
}

/* ───── HOME HERO ───── */
.page-home .hero-showcase {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  height: min(88vh, 880px);
  overflow: hidden;
  background: var(--anthracite);
  color: var(--on-dark);
}
.page-home .hero-media,
.page-home .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.page-home .hero-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 15, 19, .82) 0%, rgba(12, 15, 19, .45) 45%, rgba(12, 15, 19, 0) 75%),
    linear-gradient(0deg, rgba(12, 15, 19, .7) 0%, rgba(12, 15, 19, 0) 45%);
}
.page-home .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 88px;
}
.page-home .hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b6e94d;
}
.page-home .hero-showcase h1 {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 60px;
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition);
}
.btn-ghost-light:hover {
  background: #fff;
  color: var(--anthracite);
}
.page-home .hero-caption {
  position: absolute;
  right: 32px;
  bottom: 24px;
  z-index: 1;
  font-size: .78rem;
  color: var(--on-dark-muted);
}

/* ───── HOME TECHNOLOGY CARDS ───── */
.page-home .tech-card.has-media {
  padding: 0 0 32px;
  overflow: hidden;
}
.page-home .tech-card.has-media > :not(.tech-media) {
  margin-left: 28px;
  margin-right: 28px;
}
.page-home .tech-card.has-media .icon {
  display: none;
}
.page-home .tech-media {
  margin: 0 0 24px;
  aspect-ratio: 4 / 3;
  background: #fff;
}
.page-home .tech-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .tech-card.is-dark {
  background: var(--anthracite);
  border-color: var(--anthracite);
  color: var(--on-dark);
}
.page-home .tech-card.is-dark h3 { color: #fff; }
.page-home .tech-card.is-dark .sub,
.page-home .tech-card.is-dark p { color: var(--on-dark-muted); }
.page-home .tech-card.is-dark .models a { background: rgba(182, 233, 77, .12); color: #b6e94d; }

/* ───── HOME APPLICATIONS ───── */
.applications-band {
  padding: 96px 0;
  background: var(--anthracite);
  color: var(--on-dark);
}
.applications-band .section-title { color: #fff; }
.applications-band .section-sub { color: var(--on-dark-muted); }
.applications-band .section-tag {
  color: #b6e94d;
  background: rgba(182, 233, 77, .08);
  border-color: rgba(182, 233, 77, .25);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 48px 0 40px;
}
.app-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--anthracite-soft);
}
.app-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.app-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 15, 19, .85) 0%, rgba(12, 15, 19, 0) 55%);
}
.app-tile:hover img { transform: scale(1.04); }
.app-tile:focus-visible { outline: 3px solid #b6e94d; outline-offset: 3px; }
.app-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-label strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}
.app-label span {
  font-size: .9rem;
  color: var(--on-dark-muted);
}

/* ───── INDUSTRIES PHOTO GRID ───── */
.page-industries .industries-expanded .industry-grid {
  align-items: start;
}
.page-industries .industries-expanded article.industry-card {
  padding: 0;
  overflow: hidden;
}
.page-industries .industry-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: #eef1ec;
}
.page-industries .industry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-industries .industries-expanded .industry-card > h2 { margin: 26px 30px 8px; }
.page-industries .industries-expanded .industry-card > .industry-intro { margin: 0 30px 20px; }
.page-industries .industry-details {
  margin: 0 30px 28px;
}
.page-industries .industry-details summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 40px;
  background: var(--anthracite);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.page-industries .industry-details summary::-webkit-details-marker { display: none; }
.page-industries .industry-details summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}
.page-industries .industry-details[open] summary::after { content: "−"; }
.page-industries .industry-details summary:focus-visible { outline: 3px solid #4c8600; outline-offset: 3px; }
.page-industries .industry-details-body { padding-top: 8px; }

/* ───── NEWS ───── */
.page-news .news-container { padding: 40px 32px 80px; }
.page-news .news-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e1e5ea;
}
.page-news .news-feature .news-media { aspect-ratio: 16 / 10; }
.page-news .news-feature .news-body { padding: 40px; align-self: center; }
.page-news .news-feature h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin: 12px 0 14px;
}
.page-news .news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.page-news .news-list .news-card {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e5ea;
}
.page-news .news-list .news-media { aspect-ratio: 4 / 3; }
.page-news .news-list .news-body { padding: 22px 24px 26px; }
.page-news .news-list h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 10px 0 8px;
}
.page-news .news-body p {
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page-news .news-media {
  position: relative;
  overflow: hidden;
  background: #f1f3ef;
}
.page-news .news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-news .news-media.is-machine { background: radial-gradient(ellipse at 50% 70%, #ffffff 0%, #e4e9e0 100%); }
.page-news .news-media.is-machine img { object-fit: contain; padding: 8%; }
.page-news .news-media.is-event {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(182, 233, 77, .28) 0%, rgba(182, 233, 77, 0) 55%),
    var(--anthracite);
  color: #fff;
}
.page-news .news-media.is-event span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
}
.page-news .news-media.is-event strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  color: #b6e94d;
  line-height: 1.1;
}
.page-news .news-media.is-event small {
  margin-top: 10px;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.page-news .news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  color: var(--text-light);
}
.page-news .news-cat {
  padding: 3px 12px;
  border-radius: 20px;
  background: #edf5e3;
  color: #3c6a00;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 1000px) {
  .apps-grid,
  .page-news .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-news .news-feature { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .page-home .hero-showcase { height: auto; min-height: 88vh; }
  .page-home .hero-showcase::after {
    background: linear-gradient(0deg, rgba(12, 15, 19, .88) 0%, rgba(12, 15, 19, .35) 60%, rgba(12, 15, 19, .1) 100%);
  }
  .page-home .hero-content { padding: 0 16px 72px; }
  .page-home .hero-actions a { width: 100%; justify-content: center; }
  .page-home .hero-caption { left: 16px; right: 16px; }
  .applications-band { padding: 64px 0; }
  .apps-grid,
  .page-news .news-list { grid-template-columns: 1fr; }
  .page-news .news-container { padding: 28px 16px 64px; }
  .page-news .news-feature .news-body { padding: 24px; }
  .page-industries .industries-expanded .industry-card > h2 { margin: 22px 22px 8px; }
  .page-industries .industries-expanded .industry-card > .industry-intro { margin: 0 22px 18px; }
  .page-industries .industry-details { margin: 0 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-tile img { transition: none; }
  .app-tile:hover img { transform: none; }
}
