:root {
  color-scheme: dark;
  --navy-950: #030b1a;
  --navy-900: #07162f;
  --navy-800: #0a2347;
  --navy-700: #133867;
  --ink: #f7f9fd;
  --muted: rgba(233, 240, 250, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(8, 24, 49, 0.68);
  --glass-strong: rgba(5, 18, 38, 0.86);
  --red: #e72b39;
  --red-bright: #ff4151;
  --page-pad: clamp(1.25rem, 4vw, 4.6rem);
  --max-width: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-950);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--navy-950);
  font-family: Inter, Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--navy-950);
  background: #fff;
  border-radius: 0 0 0.6rem 0.6rem;
  transform: translateY(-110%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.entry-shell {
  isolation: isolate;
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--navy-900);
}

.factory-picture,
.factory-picture img,
.atmosphere,
.blueprint-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.factory-picture {
  z-index: -4;
}

.factory-picture img {
  object-fit: cover;
  object-position: 55% 62%;
  transform: scale(1.08) translate(1.2%, -10%);
  transform-origin: center center;
  filter: saturate(0.96) contrast(1.02) brightness(1.04);
}

.atmosphere {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 11, 26, 0.62) 0%, rgba(4, 16, 38, 0.45) 36%, rgba(5, 18, 40, 0.12) 70%, rgba(5, 18, 40, 0.03) 100%),
    linear-gradient(0deg, rgba(3, 10, 24, 0.58) 0%, rgba(3, 10, 24, 0.12) 44%, rgba(3, 10, 24, 0.05) 70%, rgba(3, 10, 24, 0.16) 100%);
}

.blueprint-grid {
  z-index: -2;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 74%);
}

.topbar,
.hero,
.trust-bar {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: max(1.2rem, env(safe-area-inset-top));
  min-height: clamp(5.8rem, 11vh, 7.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(12rem, 19vw, 17rem);
  min-width: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.32))
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}

.media-link {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 3.6rem;
  padding: 0.62rem 0.8rem 0.62rem 0.64rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1rem;
  color: #fff;
  background: rgba(7, 23, 49, 0.42);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px) saturate(125%);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.media-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(8, 29, 61, 0.64);
}

.media-icon {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.78rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.media-icon svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.media-icon svg path:first-child {
  fill: var(--red-bright);
  stroke: var(--red-bright);
}

.media-link > span:nth-child(2) {
  display: grid;
  gap: 0.15rem;
}

.media-link strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-link small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.69rem;
}

.arrow-up {
  width: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding-top: clamp(5.5rem, 13vh, 9rem);
  padding-bottom: clamp(1.4rem, 3.2vh, 2.8rem);
}

.hero-copy {
  width: min(100%, 46rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.67rem, 0.82vw, 0.8rem);
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.5rem;
  height: 0.2rem;
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(231, 43, 57, 0.08), 0 0 22px rgba(231, 43, 57, 0.42);
}

h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.5rem, 3.65vw, 4.15rem);
  font-weight: 730;
  letter-spacing: -0.058em;
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.38);
}

h1 span {
  display: block;
  color: #fff;
}

.intro {
  max-width: 36rem;
  margin: clamp(1rem, 2vh, 1.6rem) 0 0;
  color: rgba(244, 248, 255, 0.79);
  font-size: clamp(0.86rem, 0.98vw, 1rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.capability-list {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.45rem;
  flex-wrap: wrap;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.capability-list svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: var(--red-bright);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.language-panel {
  display: inline-flex;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: clamp(1.25rem, 2.8vh, 2rem);
  padding: 0.55rem;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.15rem;
  background: rgba(6, 20, 43, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px) saturate(130%);
}

.language-heading {
  display: grid;
  align-content: center;
  min-width: 11rem;
  padding: 0.25rem 1rem 0.25rem 0.7rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.language-heading span {
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.language-heading small {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.66rem;
}

.language-options {
  display: flex;
  gap: 0.38rem;
}

.language-options a {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.44rem 0.68rem 0.44rem 0.46rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.language-options a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

.language-code {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(231, 43, 57, 0.94), rgba(148, 20, 37, 0.88));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.055), 0 7px 18px rgba(0, 0, 0, 0.24);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.language-name {
  font-size: 0.88rem;
  font-weight: 720;
}

.language-options a > svg {
  width: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  opacity: 0.58;
}

.factory-marker {
  position: absolute;
  right: var(--page-pad);
  bottom: clamp(1.8rem, 5vh, 4rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.9rem;
  background: rgba(6, 17, 37, 0.4);
  backdrop-filter: blur(12px);
}

.factory-marker .pulse {
  position: relative;
  width: 0.6rem;
  height: 0.6rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 0.3rem rgba(255, 65, 81, 0.15), 0 0 1.2rem rgba(255, 65, 81, 0.8);
}

.factory-marker span:last-child {
  display: grid;
  gap: 0.05rem;
}

.factory-marker small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.factory-marker strong {
  font-size: 0.77rem;
  letter-spacing: 0.035em;
}

.trust-bar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.4rem);
  width: 100%;
  max-width: none;
  padding-top: 1.1rem;
  padding-bottom: max(1.1rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(90deg, rgba(3, 11, 26, 0.94), rgba(5, 19, 42, 0.9));
  box-shadow: 0 -20px 60px rgba(2, 7, 17, 0.3);
  backdrop-filter: blur(18px) saturate(125%);
}

.office {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.office-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.75rem;
  color: var(--red-bright);
  background: rgba(255, 255, 255, 0.055);
}

.office-icon svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.office h2,
.office address,
.office a {
  margin: 0;
}

.office h2 {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.office address {
  max-width: 35rem;
  margin-top: 0.24rem;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.7rem;
  font-style: normal;
  line-height: 1.35;
}

.office a {
  display: inline-block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.office a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.social-nav {
  justify-self: end;
  display: grid;
  gap: 0.45rem;
}

.social-nav > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.social-nav > div {
  display: flex;
  gap: 0.42rem;
}

.social-nav a {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.social-nav svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.social-nav .facebook svg path {
  fill: currentColor;
  stroke: none;
}

.social-nav a:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
}

.social-nav .linkedin:hover {
  background: #0a66c2;
}

.social-nav .youtube:hover {
  background: #ff0033;
}

.social-nav .instagram:hover {
  background: linear-gradient(135deg, #8a3ab9, #e1306c 52%, #f77737);
}

.social-nav .facebook:hover {
  background: #1877f2;
}

a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .hero {
    padding-top: 4.2rem;
  }

  h1 {
    font-size: clamp(2.55rem, 5vw, 4rem);
  }

  .factory-marker {
    display: none;
  }

  .language-panel {
    display: grid;
    width: min(100%, 45rem);
  }

  .language-heading {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    padding: 0.35rem 0.55rem 0.55rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .language-options a {
    width: 100%;
  }

  .trust-bar {
    grid-template-columns: 1fr 1fr;
  }

  .social-nav {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-self: stretch;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .social-nav > span {
    text-align: left;
  }
}

@media (max-width: 760px) {
  :root {
    --page-pad: clamp(1rem, 5.2vw, 1.45rem);
  }

  .entry-shell {
    min-height: 100svh;
    overflow: visible;
  }

  .factory-picture,
  .atmosphere,
  .blueprint-grid {
    height: min(100%, 62rem);
  }

  .factory-picture img {
    object-position: 62% 62%;
    transform: scale(1.06) translate(0.6%, -2.5%);
  }

  .atmosphere {
    background:
      linear-gradient(90deg, rgba(3, 11, 26, 0.68), rgba(4, 16, 38, 0.2)),
      linear-gradient(0deg, rgba(3, 10, 24, 0.82) 0%, rgba(3, 10, 24, 0.38) 54%, rgba(3, 10, 24, 0.08) 100%);
  }

  .blueprint-grid {
    background-size: 52px 52px;
    opacity: 0.18;
  }

  .topbar {
    align-items: flex-start;
    gap: 0.8rem;
    min-height: 5.7rem;
    padding-top: max(1rem, env(safe-area-inset-top));
  }

  .brand {
    width: clamp(10.5rem, 46vw, 13rem);
    margin-top: 0.22rem;
  }

  .media-link {
    min-height: 3.05rem;
    padding: 0.4rem;
    border-radius: 0.8rem;
  }

  .media-link > span:nth-child(2),
  .media-link .arrow-up {
    display: none;
  }

  .media-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.63rem;
  }

  .hero {
    align-items: flex-end;
    padding-top: clamp(3rem, 8vh, 5rem);
    padding-bottom: 2.2rem;
  }

  .eyebrow {
    margin-bottom: 0.8rem;
    font-size: 0.62rem;
    letter-spacing: 0.17em;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.5rem, 11.5vw, 3.7rem);
    line-height: 0.93;
  }

  .intro {
    max-width: 34rem;
    margin-top: 1.1rem;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .capability-list {
    gap: 0.55rem 1rem;
    margin-top: 1rem;
  }

  .capability-list li {
    font-size: 0.63rem;
  }

  .language-panel {
    width: 100%;
    margin-top: 1.6rem;
    padding: 0.45rem;
    border-radius: 1rem;
  }

  .language-heading {
    display: grid;
    gap: 0.05rem;
    padding: 0.35rem 0.45rem 0.55rem;
  }

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

  .language-options a {
    grid-template-columns: auto;
    justify-items: center;
    gap: 0.3rem;
    min-width: 0;
    min-height: 4.55rem;
    padding: 0.45rem 0.25rem;
    text-align: center;
  }

  .language-code {
    width: 2rem;
    height: 2rem;
    font-size: 0.61rem;
  }

  .language-name {
    max-width: 100%;
    font-size: 0.73rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .language-options a > svg {
    display: none;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
    padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
  }

  .office {
    padding-block: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .office:last-of-type {
    border-bottom: 0;
  }

  .office address {
    font-size: 0.67rem;
  }

  .social-nav {
    grid-column: 1;
    margin-top: 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: clamp(2.7rem, 13.3vw, 3.3rem);
  }

  .intro {
    font-size: 0.87rem;
  }

  .capability-list li {
    font-size: 0.59rem;
  }

  .language-heading small {
    font-size: 0.61rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Keep the transformed photo from creating horizontal mobile scroll. */
@media (max-width: 760px) {
  .factory-picture { overflow-x: clip; }
}
