:root {
  --bg: #dcdcdc;
  --panel: #efefef;
  --panel-strong: #e4e7eb;
  --white: #ffffff;
  --ink: #121417;
  --muted: #4d535a;
  --line: #bcc1c7;
  --accent: #e3572b;
  --accent-strong: #d2461f;
  --dark: #0f1319;
  --blue: #3b4f62;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 100% -30%, #ecf3fb 0%, rgba(236, 243, 251, 0) 44%),
    radial-gradient(circle at -20% 20%, #e7ecef 0%, rgba(231, 236, 239, 0) 36%),
    var(--bg);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
}

.utility-bar {
  min-height: 40px;
  background: #eef2f6;
  border-bottom: 1px solid #d1d1d1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.35rem clamp(1rem, 4vw, 2rem);
}

.utility-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.utility-links a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: #26323f;
  transition: color 0.2s ease;
}

.utility-links a:hover {
  color: #000;
}

.utility-contact {
  color: #0057a8;
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #d6d6d6;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 2rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  background: linear-gradient(135deg, #0b6bb0, #ea5a26);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.38rem 0.55rem;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: #111821;
  color: #fff;
}

.main-nav a.is-active {
  background: #111821;
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid #b5bcc3;
  background: #fff;
  font-weight: 700;
  border-radius: 3px;
  padding: 0.45rem 0.65rem;
  letter-spacing: 0.03em;
}

.hero {
  position: relative;
  min-height: calc(100vh - 124px);
  color: #fff;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.16) 55%, rgba(0, 0, 0, 0.55));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem clamp(1rem, 4vw, 2rem) 8rem;
  max-width: 900px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0;
  color: #f2f2f2;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.3rem);
  margin: 0.7rem 0 0.9rem;
}

.hero p {
  margin: 0;
  max-width: 56ch;
  font-size: 1.05rem;
}

.hero-link {
  margin-top: 1.2rem;
  display: inline-flex;
  text-decoration: none;
  font-size: 1.18rem;
}

.hero-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 82px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(16, 26, 37, 0.72);
}

.strip-item {
  text-decoration: none;
  color: #f0f0f0;
  padding: 1rem 1.1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.section {
  padding: 3rem clamp(1rem, 4vw, 2rem);
}

.section.light {
  background: #e2e2e2;
}

.section.white-pad {
  background: #f4f4f4;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-top h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-cta {
  text-decoration: none;
  background: #111;
  color: #fff;
  padding: 0.9rem 1.1rem;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.section-cta:hover {
  background: #2a3340;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  border: 1px solid #aeb4bb;
  background: #e9eaec;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(25, 34, 45, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card img,
.news-card video,
.competence-card img,
.competence-card video,
.media-block video {
  width: 100%;
  display: block;
  height: 180px;
  object-fit: cover;
}

.news-copy {
  padding: 0.85rem;
}

.news-date {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
}

.news-copy h3 {
  font-size: 2rem;
  margin-top: 0.35rem;
}

.news-copy p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #d9d9d9;
}

.tech-tile,
.tech-copy {
  min-height: 220px;
  background: #455768;
  color: #fff;
  text-decoration: none;
}

.tech-tile {
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.45));
}

.tech-tile span {
  position: relative;
  z-index: 1;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.home-tiles {
  gap: 0.75rem;
  background: transparent;
}

.home-tiles .tech-tile {
  min-height: 190px;
  border: 1px solid #b2b8bf;
  border-radius: 6px;
}

.home-tiles .tech-tile:nth-child(n + 5) {
  min-height: 170px;
}

.home-tiles .tech-tile span {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.15;
  text-transform: none;
  text-decoration: none;
  max-width: 18ch;
}

.tech-tile.large {
  grid-column: span 2;
}

.tone-hot {
  background: linear-gradient(120deg, #ba3f21, #5f2020);
}

.tone-casting {
  background: linear-gradient(120deg, #d65c1a, #3e1f21);
}

.tone-rolling {
  background: linear-gradient(120deg, #365c7a, #2f3a4c);
}

.tone-auto {
  background: linear-gradient(120deg, #4f6a83, #2f4254);
}

.tone-vac {
  background: linear-gradient(120deg, #1f2833, #374b66);
}

.tech-copy {
  background: #111;
  padding: 1.1rem;
}

.tech-copy .eyebrow {
  color: #fff;
}

.tech-copy h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0.4rem 0;
}

.tech-copy p {
  color: #d0d5dc;
}

.tech-copy a {
  color: #fff;
  text-decoration: none;
}

.competence-wrap {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
}

.vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.competence-card {
  background: #f6f6f6;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(25, 34, 45, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.competence-card p {
  padding: 0 0.6rem 1rem;
  margin: 0.45rem 0 0;
  color: #2a2d31;
}

.competence-card .eyebrow {
  color: #212429;
  padding: 0.7rem 0.6rem 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.video-column {
  display: grid;
  gap: 1rem;
}

.media-block {
  position: relative;
  background: #111;
}

.media-block span {
  position: absolute;
  left: 0.8rem;
  top: 0.6rem;
  color: #fff;
  font-size: 1.8rem;
  font-family: "Barlow Condensed", sans-serif;
}

.events-column {
  background: #e6e6e6;
  border: 1px solid #b8b8b8;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(25, 34, 45, 0.08);
}

.events-column h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.event-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.event-date {
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.event-list h3 {
  margin-top: 0.3rem;
  font-size: 2rem;
}

.event-list p,
.event-list a {
  color: #3e444b;
}

.contact-box {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid #bdbdbd;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.library-intro {
  margin: 0 0 1rem;
  max-width: 76ch;
  color: #32414f;
  font-weight: 600;
}

.library-card {
  border: 1px solid #b6bdc4;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f2f5;
  box-shadow: 0 8px 20px rgba(25, 34, 45, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.library-card video {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
}

.library-copy {
  padding: 0.85rem;
}

.library-copy .eyebrow {
  color: #25313d;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.library-copy h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1;
  margin-top: 0.12rem;
}

.library-copy p {
  margin: 0.45rem 0 0;
  color: #3f4852;
}

.docs-wrap {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.docs-panel {
  border: 1px solid #b6bdc4;
  border-radius: 6px;
  background: #eef1f4;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(25, 34, 45, 0.08);
}

.docs-panel h3 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin-bottom: 0.5rem;
}

.doc-list {
  margin: 0;
  padding-left: 1rem;
}

.doc-list li + li {
  margin-top: 0.42rem;
}

.doc-list a {
  color: #1f2b37;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.doc-list a:hover {
  color: var(--accent-strong);
}

.site-footer {
  border-top: 1px solid #bdbdbd;
  background: #efefef;
  padding: 1.2rem clamp(1rem, 4vw, 2rem) 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.footer-brand p,
.site-footer p {
  margin: 0.25rem 0 0;
  color: #4f5660;
}

.footer {
  border-top: 1px solid #bdbdbd;
  background: #efefef;
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.3rem;
  color: #404851;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Generic styles used by internal pages */
.sub-hero {
  background: linear-gradient(120deg, #2d3a4b, #10151b);
  color: #fff;
  padding: 3.6rem clamp(1rem, 4vw, 2rem) 2.3rem;
}

.sub-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-top: 0.6rem;
}

.sub-hero p {
  margin: 0.35rem 0 0;
  color: #d7dee9;
}

.breadcrumbs {
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #d4e7ff;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.panel,
.tile,
.kpi {
  border: 1px solid #b5bcc5;
  background: var(--panel-strong);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(25, 34, 45, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel p,
.tile p,
.kpi p {
  margin: 0.4rem 0 0;
  color: #40464d;
}

.list {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
}

.list li + li {
  margin-top: 0.35rem;
}

.product-grid,
.kpi-grid {
  display: grid;
  gap: 1rem;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi strong {
  font-size: 2rem;
  font-family: "Barlow Condensed", sans-serif;
}

.tile img,
.tile video,
.card video,
.card img {
  width: 100%;
  border: 1px solid #bbc2cb;
  object-fit: cover;
}

.tile video,
.card video,
.card img {
  aspect-ratio: 16 / 9;
}

@media (hover: hover) {
  .news-card:hover,
  .competence-card:hover,
  .library-card:hover,
  .panel:hover,
  .tile:hover,
  .kpi:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(25, 34, 45, 0.14);
  }

  .tech-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(25, 34, 45, 0.2);
  }
}

@media (max-width: 1024px) {
  .news-grid,
  .competence-grid,
  .event-list,
  .product-grid,
  .kpi-grid,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-tile.large {
    grid-column: span 2;
  }

  .split-grid,
  .content-grid,
  .docs-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .utility-bar {
    display: none;
  }

  .site-header {
    top: 0;
    height: 72px;
  }

  .brand {
    font-size: 1.5rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    right: 0.7rem;
    top: 4.1rem;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #c7c7c7;
    padding: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: calc(100vh - 72px);
  }

  .hero-content {
    padding: 3rem 1rem 10rem;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .strip-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .section {
    padding: 2.2rem 1rem;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-grid,
  .competence-grid,
  .event-list,
  .product-grid,
  .kpi-grid,
  .tech-grid,
  .library-grid,
  .docs-wrap,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .competence-wrap {
    grid-template-columns: 1fr;
  }

  .vertical-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.9rem;
  }

  .tech-tile.large {
    grid-column: auto;
  }
}
