:root {
  --ink: #123a58;
  --ink-deep: #0a2438;
  --steel: #27627f;
  --mist: #eef3f5;
  --line: #d4dde2;
  --orange: #f26522;
  --orange-soft: #f7a65d;
  --white: #ffffff;
  --text: #23313a;
  --muted: #65737d;
  --shadow: 0 20px 60px rgba(10, 36, 56, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 32px);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-color: var(--orange);
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--mist);
}

.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.lang-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 79px);
  display: grid;
  align-items: center;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(115deg, rgba(10, 36, 56, 0.95), rgba(18, 58, 88, 0.74)),
    url("assets/bridge-hero.webp") center / cover no-repeat;
  color: var(--white);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 780px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-title-line.accent {
  margin-top: 0.08em;
}

.tensor-wordmark {
  width: min(100%, 720px);
  max-height: 0.92em;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 18px rgba(255, 255, 255, 0.16));
}

h2 {
  color: var(--ink-deep);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

h3 {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  background: var(--orange);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 108px) 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  padding: 0;
  background: var(--line);
}

.stats div {
  display: grid;
  gap: 8px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--mist);
  color: var(--ink);
  font-weight: 800;
}

.stat-value {
  color: var(--orange);
  font-size: 0.82rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 80px);
}

.text-column {
  color: var(--muted);
  font-size: 1.04rem;
}

.image-band {
  width: 100%;
  height: clamp(280px, 42vw, 560px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.media-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1px;
  margin-bottom: 1px;
  background: var(--line);
}

.media-feature img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.media-feature-copy {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 52px);
  background: var(--mist);
}

.media-feature-copy h3 {
  max-width: 520px;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
}

.media-feature-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.service-card {
  min-height: 260px;
  padding: 28px;
  background: var(--white);
}

.service-number {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--orange);
  font-weight: 800;
}

.service-card p,
.timeline p,
.contact-copy p {
  color: var(--muted);
}

.process {
  width: 100%;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
  background: var(--ink-deep);
}

.process h2 {
  color: var(--white);
}

.timeline {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  list-style: none;
  counter-reset: steps;
  background: rgba(255, 255, 255, 0.16);
}

.timeline li {
  min-height: 240px;
  padding: 28px;
  background: #123a58;
  color: var(--white);
  counter-increment: steps;
}

.timeline li::before {
  content: "0" counter(steps);
  display: block;
  margin-bottom: 34px;
  color: var(--orange-soft);
  font-weight: 800;
}

.timeline span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.12rem;
  font-weight: 800;
}

.timeline p {
  color: rgba(255, 255, 255, 0.72);
}

.technical-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  gap: 1px;
  width: 100%;
  padding: 0;
  background: var(--line);
}

.technical-detail-copy {
  display: grid;
  align-content: center;
  padding: clamp(32px, 6vw, 72px);
  background: var(--white);
}

.technical-detail-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.technical-detail img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 480px);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.contact-details {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-details p {
  margin-bottom: 8px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--mist);
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-note,
.privacy-link {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
}

.privacy-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

.map-section {
  height: clamp(320px, 44vw, 500px);
  border-top: 1px solid var(--line);
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.legal-page {
  max-width: 900px;
}

.legal-page h1 {
  color: var(--ink-deep);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.legal-page h2 {
  margin-top: 32px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.legal-page p {
  color: var(--muted);
}

.legal-page a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-grid,
  .split,
  .contact,
  .media-feature,
  .technical-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    background:
      linear-gradient(115deg, rgba(10, 36, 56, 0.96), rgba(18, 58, 88, 0.82)),
      url("assets/bridge-hero.webp") center / cover no-repeat;
  }

  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 14px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .language-switcher {
    justify-self: end;
  }

  .lang-button {
    width: 36px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(1.58rem, 8vw, 2.2rem);
  }

  .tensor-wordmark {
    width: min(100%, 520px);
  }

  .stats,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-card,
  .timeline li {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
