/* Venutian Industries: landing page
   Palette is taken from the hero render: safety yellow, clean white, steel grey. */

:root {
  --white: #ffffff;
  --mist: #f1f4f5;
  --line: #d7dde0;
  --charcoal: #21282c;
  --ink: #37424a;
  --steel: #55616a;
  --yellow: #edc400;
  --led: #1e9e3e;

  --display: "Barlow Semi Condensed", "Bahnschrift", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 5vw, 80px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font: 400 1.125rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  color: var(--charcoal);
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
}

.top {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem 0;
}

.login {
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
}

.login:hover {
  color: var(--green);
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--pad);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font: 700 1.4rem/1 var(--display);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--charcoal);
}
.wordmark::before {
  content: "";
  width: 1.5rem;
  height: 0.5rem;
  background: var(--yellow);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}
.nav a {
  color: var(--steel);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}
.nav a:hover { color: var(--charcoal); }
.nav .nav-cta {
  padding: 0.5rem 1rem;
  border: 2px solid var(--charcoal);
  border-radius: 2px;
  color: var(--charcoal);
  font-weight: 600;
  transition: background-color 0.15s, color 0.15s;
}
.nav .nav-cta:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* Hero
   Height follows the image's own proportions (about 16:9), capped to the
   window so the whole scene stays in view on typical screens. */

.hero {
  position: relative;
  height: min(54.55vw, calc(100svh - var(--header-h)));
  min-height: 520px;
  overflow: hidden;
  background: #e8ecec;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero img {
  object-fit: cover;
  object-position: 65% 50%;
}

/* A soft white wash on the left keeps the headline readable
   while the robot on the right stays untouched. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 28%,
    rgba(255, 255, 255, 0.55) 44%,
    rgba(255, 255, 255, 0) 60%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 48%;
  max-width: 46rem;
  padding-inline: var(--pad) 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 33rem;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.hero-caption {
  position: absolute;
  right: clamp(12px, 2vw, 32px);
  bottom: 12px;
  z-index: 2;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--steel);
}

/* Buttons and links */

.btn {
  display: inline-block;
  padding: 1rem 1.7rem;
  background: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 2px;
  color: var(--charcoal);
  font: 600 1.05rem/1 var(--body);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--yellow);
}

.btn:focus-visible,
.login:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.text-link:hover { text-decoration-color: var(--charcoal); }

/* Floor-marking divider, echoing the yellow lines on the facility floor */

.floor-line {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 56px, transparent 56px 88px);
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 120px) var(--pad);
}

.section > * { max-width: 72rem; }

.section h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.05;
}

.about,
.safety,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about > *,
.safety > *,
.contact > * { max-width: none; }

.about-text,
.contact-body {
  max-width: 40rem;
}
.about-text p,
.contact-body p {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.5;
}
.about-text p + p { margin-top: 1.25rem; color: var(--steel); }
.contact-body .btn { margin-top: 1.75rem; }

/* How it works */

.how { background: var(--mist); }

.section-intro {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--steel);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding-top: 1.5rem;
  border-top: 3px solid var(--charcoal);
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  background: var(--yellow);
  font: 700 1.5rem/1 var(--display);
}
.steps h3 {
  font-size: 1.7rem;
  line-height: 1.1;
}
.steps p {
  max-width: 24rem;
  margin-top: 0.6rem;
  color: var(--steel);
}

/* Safety */

.safety-list { margin: 0; }
.safety-list > div {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.safety-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.safety-list dt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font: 700 1.5rem/1.15 var(--display);
}
/* Small green indicator, like the status light on the wall sign in the render */
.safety-list dt::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 0 4px rgba(30, 158, 62, 0.18);
}
.safety-list dd {
  max-width: 36rem;
  margin: 0.5rem 0 0 1.45rem;
  color: var(--steel);
}

/* Values */

.values {
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.values ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem clamp(28px, 5vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
  font: 600 clamp(1.15rem, 1.8vw, 1.5rem)/1.2 var(--display);
  color: var(--ink);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.75rem var(--pad);
  background: var(--mist);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--steel);
}

/* Tablet and phone */

@media (max-width: 900px) {
  /* Stack: image first, text below on plain white */
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: var(--white);
  }
  .hero::before { display: none; }

  .hero picture {
    position: static;
    display: block;
    order: 1;
  }
  .hero img {
    position: static;
    display: block;
    height: auto;
    aspect-ratio: 16 / 10;
    object-position: 92% 50%;
  }

  .hero-caption {
    position: static;
    order: 2;
    align-self: flex-start;
    padding: 8px var(--pad) 0;
    background: none;
  }

  .hero-copy {
    order: 3;
    width: auto;
    max-width: none;
    height: auto;
    padding: 1.75rem var(--pad) 3rem;
  }

  .hero h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .lede { font-size: 1.15rem; }
}

@media (max-width: 760px) {
  .nav a:not(.nav-cta) { display: none; }
  .wordmark { font-size: 1.25rem; }

  .about,
  .safety,
  .contact {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.75rem;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .floor-line { height: 6px; }
}

@media (max-width: 520px) {
  .wordmark::before { display: none; }
  .hero img {
    aspect-ratio: 4 / 3;
    object-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav .nav-cta { transition: none; }
}
