/* Styles for the subpages (about.html, technology.html). Loaded after styles.css. */

/* ---------- Shared: page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 96px) 0 96px;
  background: var(--color-black);
  color: #fff;
}

/* Blueprint grid, same as the homepage About section */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
}

.page-hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
}

.breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.page-hero__title {
  max-width: 16ch;
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-hero__lead {
  max-width: 52ch;
  margin: 0;
  font-size: 1.1875rem;
  color: #d1d5db;
}

.page-hero__figure {
  margin: 0;
}

.page-hero__figure img {
  display: block;
  width: 100%;
  height: auto; /* keep the CSS aspect-ratio; width/height attributes only reserve space */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(0.2) contrast(1.05);
}

.page-hero__figure figcaption {
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

/* Hero with a full-bleed photo (<img class="page-hero__bg">) behind the text.
   Layers: photo (0), dark gradient (1), text (2). */
.page-hero--photo {
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--photo::before {
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.25) 100%);
  -webkit-mask-image: none;
  mask-image: none;
}

.page-hero--photo > .container {
  z-index: 2;
  width: 100%;
}

@media (min-width: 992px) {
  .page-hero__grid {
    grid-template-columns: 6fr 5fr;
    gap: 80px;
  }
}

/* ---------- Shared: section heading + CTA band ---------- */
.block {
  padding: 96px 0;
}

.block--light {
  background: var(--color-bg);
  color: var(--color-text);
}

.block--alt {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.block--dark {
  background: var(--color-black);
  color: #fff;
}

.block__heading {
  max-width: 20ch;
  margin: 0 0 24px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.block__lead {
  max-width: 60ch;
  margin: 0 0 56px;
  font-size: 1.125rem;
  color: var(--color-muted);
}

.block--dark .block__lead {
  color: #9ca3af;
}

.prose p {
  max-width: 62ch;
  margin: 0 0 20px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #374151;
}

@media (min-width: 992px) {
  .block {
    padding: 128px 0;
  }
}

/* ---------- About page ---------- */
.two-col {
  display: grid;
  gap: 64px;
}

.two-col h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 992px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
  }
}

/* History timeline: year | content | optional photo, on a vertical line */
.history {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.history__item {
  position: relative;
  display: grid;
  gap: 16px 48px;
  padding: 0 0 64px 40px;
}

.history__item:last-child {
  padding-bottom: 0;
}

.history__item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-black);
}

.history__item:last-child::before {
  background: var(--color-accent);
}

.history__year {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}

.history__period {
  display: block;
  margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.history__title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.history__text {
  max-width: 56ch;
  margin: 0;
  color: #9ca3af;
}

.history__photo {
  margin: 8px 0 0;
}

.history__photo img {
  display: block;
  width: 100%;
  height: auto; /* keep the CSS aspect-ratio; width/height attributes only reserve space */
  max-width: 420px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}

@media (min-width: 992px) {
  .history__item {
    grid-template-columns: 160px minmax(0, 1fr) 360px;
    padding-left: 56px;
  }

  .history__photo {
    margin: 0;
  }
}

/* Konjic + quote */
.quote {
  margin: 0;
  padding: 40px 0 0;
  border-top: 2px solid var(--color-accent);
}

.quote p {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.quote footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Values cards */
.values {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.values__card {
  padding: 40px 32px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  transition: border-color 0.2s, transform 0.2s;
}

.values__card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.values__card .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 32px;
  stroke: var(--color-accent);
  stroke-width: 1.25;
}

.values__card h3 {
  margin: 0 0 12px;
  font-size: 1.375rem;
  font-weight: 600;
}

.values__card p {
  margin: 0;
  color: var(--color-muted);
}

@media (min-width: 768px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Technology page ---------- */

/* Key figures strip (title-block look) */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 56px 0 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.facts > div {
  flex: 1 1 180px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.6);
}

.facts dt {
  margin-bottom: 6px;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
}

.facts dd {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Equipment rows: index | name + text | spec list | photo */
.equipment {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #e5e7eb;
}

.equipment__item {
  display: grid;
  gap: 16px 40px;
  padding: 40px 0;
  border-top: 1px solid #e5e7eb;
}

.equipment__index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.equipment__name {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.equipment__text {
  max-width: 44ch;
  margin: 0;
  color: var(--color-muted);
}

.equipment__specs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.equipment__specs li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 0.9375rem;
}

.equipment__specs li:last-child {
  border-bottom: 0;
}

.equipment__specs li::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 12px;
  height: 1px;
  background: var(--color-accent);
}

.equipment__photo {
  margin: 0;
}

.equipment__photo img {
  display: block;
  width: 100%;
  height: auto; /* keep the CSS aspect-ratio; width/height attributes only reserve space */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

@media (min-width: 992px) {
  .equipment__item {
    grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 240px;
    align-items: start;
  }

}

/* Specifications table */
.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.spec-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.spec-table th,
.spec-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.spec-table thead th {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.04);
}

.spec-table tbody th {
  font-weight: 500;
}

.spec-table td {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #d1d5db;
}

.spec-table td.is-strong {
  color: var(--color-accent);
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.spec-note {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Materials chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 12px 20px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
}

.chips small {
  margin-left: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--color-accent);
}

/* Quality control checklist */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.checklist .icon {
  flex: none;
  margin-top: 3px;
  stroke: var(--color-accent);
}

/* ---------- Services page ---------- */

/* Core capabilities: photo cards */
.capabilities {
  display: grid;
  gap: 16px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.capability {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}

.capability__photo {
  margin: 0;
  overflow: hidden;
}

.capability__photo img {
  display: block;
  width: 100%;
  height: auto; /* keep the CSS aspect-ratio; width/height attributes only reserve space */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.capability:hover .capability__photo img {
  transform: scale(1.05);
}

.capability__body {
  padding: 32px;
}

.capability__index,
.industry__index,
.faq__index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.capability__title {
  margin: 12px 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.capability__text {
  margin: 0 0 16px;
  color: var(--color-muted);
}

@media (min-width: 992px) {
  .capabilities {
    grid-template-columns: repeat(3, 1fr);
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 4px;
}

.link-arrow .icon {
  transition: transform 0.2s;
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* Industries: 2 x 2 bordered cells on dark */
.industries {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.industry {
  padding: 40px 32px;
  background: var(--color-black);
  transition: background-color 0.2s;
}

.industry:hover {
  background: #111;
}

.industry__title {
  margin: 16px 0 12px;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.industry__text {
  max-width: 48ch;
  margin: 0;
  color: #9ca3af;
}

@media (min-width: 768px) {
  .industries {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry {
    padding: 56px 48px;
  }
}

/* FAQ accordion (native <details>) */
.faq {
  border-bottom: 1px solid #e5e7eb;
}

.faq__item {
  border-top: 1px solid #e5e7eb;
}

.faq__question {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 24px 48px 24px 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__index {
  flex: none;
  padding-top: 3px;
}

/* Plus that turns into a minus when open */
.faq__question::before,
.faq__question::after {
  content: '';
  position: absolute;
  top: 36px;
  right: 8px;
  width: 16px;
  height: 2px;
  background: var(--color-accent);
  transition: transform 0.2s;
}

.faq__question::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__question::after {
  transform: rotate(0deg);
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.faq__answer {
  max-width: 60ch;
  margin: 0;
  padding: 0 48px 28px 46px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ---------- Contact page ---------- */

/* Shorter hero that flows straight into the contact cards below */
.page-hero--compact {
  padding-bottom: 0;
}
