:root {
  --ink: #19151d;
  --deep: #362e40;
  --steel: #3c5360;
  --paper: #f3f1ec;
  --white: #ffffff;
  --line: rgba(25, 21, 29, 0.14);
  --sun: #fdc30d;
  --charge: #16a37b;
  --orange: #fa6401;
  --shadow: 0 28px 70px rgba(25, 21, 29, 0.14);
  --section-title: clamp(42px, 5vw, 72px);
  --section-lead: clamp(21px, 2.2vw, 32px);
  --card-copy: 15px;
  --section-grid-left: minmax(0, 5fr);
  --section-grid-right: minmax(0, 7fr);
  --section-gap: clamp(36px, 6vw, 84px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(25, 21, 29, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  z-index: 22;
  width: 146px;
}

.brand img,
.site-footer img {
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 800;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--sun);
}

.nav-cta {
  padding: 13px 18px;
  border: 0;
  background: var(--sun);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(25, 21, 29, 0.92) 0%, rgba(25, 21, 29, 0.7) 44%, rgba(25, 21, 29, 0.22) 100%),
    linear-gradient(0deg, rgba(25, 21, 29, 0.5), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 86vh;
  max-width: 1120px;
  flex-direction: column;
  justify-content: center;
  padding: 140px clamp(20px, 6vw, 92px) 92px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark,
.section-kicker {
  color: var(--orange);
}

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

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 118px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 24px;
  font-size: var(--section-title);
  line-height: 1;
}

h3 {
  font-size: 26px;
  line-height: 1.1;
}

.hero-lead {
  max-width: 820px;
  margin-bottom: 34px;
  font-size: clamp(21px, 2.4vw, 32px);
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.button,
.text-link {
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  background: var(--sun);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
}

.button:hover,
.nav-cta:hover {
  background: var(--orange);
  color: var(--white);
}

.text-link {
  border-bottom: 2px solid var(--sun);
  color: var(--white);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--sun);
  color: var(--ink);
}

.signal-strip div {
  min-height: 130px;
  padding: 30px clamp(20px, 4vw, 54px);
  border-right: 1px solid rgba(25, 21, 29, 0.18);
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.05;
}

.signal-strip span {
  max-width: 340px;
  font-size: 16px;
}

.section,
.contact {
  padding: clamp(72px, 11vw, 150px) clamp(20px, 6vw, 92px);
}

.section-grid,
.process,
.future,
.contact {
  display: grid;
  grid-template-columns: var(--section-grid-left) var(--section-grid-right);
  gap: var(--section-gap);
  align-items: start;
}

.large {
  max-width: 760px;
  font-size: var(--section-lead);
  line-height: 1.24;
}

.solution-grid,
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 58px;
  background: var(--line);
  border: 1px solid var(--line);
}

.solution-grid article,
.model-grid article {
  min-height: 318px;
  padding: 28px;
  background: var(--paper);
}

.solution-grid article {
  display: flex;
  flex-direction: column;
}

.solution-number {
  margin-bottom: auto;
  color: var(--charge);
  font-size: 15px;
  font-weight: 900;
}

.solution-grid p,
.model-grid p,
.process-list p {
  margin-bottom: 0;
  color: rgba(25, 21, 29, 0.76);
}

.references {
  background: var(--white);
}

.reference-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 42px 0 22px;
}

.reference-tabs a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.reference-tabs a:hover {
  border-color: var(--charge);
  background: rgba(22, 163, 123, 0.08);
}

.reference-board {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.reference-column {
  background: var(--paper);
}

.reference-column.accent {
  background: #e8f3ed;
}

.reference-column.muted {
  background: #ebe8f0;
}

.reference-column-header {
  min-height: 146px;
  padding: 24px;
  background: var(--ink);
  color: var(--white);
}

.reference-column-header span {
  display: block;
  margin-bottom: 18px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.reference-column-header h3 {
  margin: 0;
  font-size: 29px;
  line-height: 1.05;
}

.reference-column article {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.reference-column article strong,
.reference-column article > span {
  display: block;
}

.reference-column article strong {
  margin-bottom: 5px;
  font-size: 19px;
  line-height: 1.18;
}

.reference-column article span {
  color: rgba(25, 21, 29, 0.68);
  font-size: 15px;
  font-weight: 750;
}

.reference-card {
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.reference-card:not(.no-gallery)::after {
  display: block;
  margin-top: 14px;
  color: var(--orange);
  content: "Odpri galerijo";
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.reference-card:hover,
.reference-card:focus {
  background: rgba(253, 195, 13, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.reference-card.no-gallery {
  cursor: default;
}

.reference-card.no-gallery:hover,
.reference-card.no-gallery:focus {
  background: transparent;
  transform: none;
}

.reference-card p {
  margin: 10px 0 0;
  color: rgba(25, 21, 29, 0.74);
  font-size: var(--card-copy);
  line-height: 1.38;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.scope-list span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(25, 21, 29, 0.16);
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.image-band {
  display: grid;
  grid-template-columns: var(--section-grid-left) var(--section-grid-right);
  gap: var(--section-gap);
  align-items: center;
  background: #f1edea;
}

.image-copy p {
  font-size: var(--section-lead);
  line-height: 1.24;
}

.check-list {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 16px 0 16px 32px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.check-list li::before {
  position: absolute;
  top: 20px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--charge);
  content: "";
}

.image-frame {
  height: min(56vw, 620px);
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: #f1edea;
  box-shadow: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dark-section,
.future {
  background: var(--deep);
  color: var(--white);
}

.model-grid {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.16);
  grid-template-columns: repeat(3, 1fr);
}

.model-grid article {
  background: rgba(255, 255, 255, 0.06);
}

.model-grid span {
  color: var(--sun);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.model-grid p,
.dark-section .large,
.future p {
  color: rgba(255, 255, 255, 0.78);
}

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

.process-list li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-list span {
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
}

.team-section {
  background: linear-gradient(135deg, #f5f1ea 0%, #ffffff 58%, #e9f5ef 100%);
  padding-top: clamp(40px, 5vw, 68px);
  padding-bottom: clamp(40px, 5vw, 68px);
}

.team-heading {
  display: grid;
  grid-template-columns: var(--section-grid-left) var(--section-grid-right);
  gap: var(--section-gap);
  align-items: end;
}

.team-heading h2 {
  margin: 0;
}

.team-heading p {
  max-width: 860px;
  margin: 0;
  color: rgba(25, 21, 29, 0.72);
  font-size: var(--section-lead);
  line-height: 1.24;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 860px);
  margin-top: 34px;
  margin-right: auto;
  margin-left: auto;
}

.team-card {
  display: grid;
  grid-template-rows: 245px minmax(88px, auto);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(25, 21, 29, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 60px rgba(25, 21, 29, 0.08);
}

.team-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
  padding: 14px 16px 0;
  background: linear-gradient(135deg, #eceae4, #f8f6f1);
  filter: saturate(0.86) contrast(1.05);
}

.team-card div {
  align-self: stretch;
  padding: 13px 16px 16px;
  text-align: center;
}

.team-card h3 {
  margin: 0 0 5px;
  font-size: clamp(16px, 1.12vw, 20px);
  line-height: 1.04;
}

.team-card p {
  margin: 0;
  color: rgba(25, 21, 29, 0.68);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.future p {
  font-size: var(--section-lead);
  line-height: 1.24;
}

.future strong {
  display: block;
  max-width: 780px;
  color: var(--sun);
  font-size: 20px;
}

.contact {
  background: var(--sun);
  color: var(--ink);
}

.contact p {
  max-width: 800px;
  font-size: var(--section-lead);
  line-height: 1.24;
}

address {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
  justify-content: center;
  padding: 34px;
  border: 2px solid rgba(25, 21, 29, 0.18);
  background: rgba(255, 255, 255, 0.38);
  font-style: normal;
}

address strong {
  font-size: 34px;
  line-height: 1.05;
}

address a {
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

address a:hover {
  text-decoration: underline;
}

.contact-button {
  width: fit-content;
  margin-bottom: 8px;
}

.site-footer {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(20px, 6vw, 92px);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.site-footer img {
  width: 126px;
}

.gallery {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 18px;
  padding: 34px;
  background: rgba(25, 21, 29, 0.94);
  color: var(--white);
}

.gallery.is-open {
  display: grid;
}

.gallery figure {
  display: grid;
  max-height: calc(100vh - 80px);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  margin: 0;
}

.gallery img {
  max-height: calc(100vh - 150px);
  width: 100%;
  object-fit: contain;
}

.gallery figcaption {
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.gallery button {
  border: 0;
  background: var(--sun);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.gallery-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 34px;
  line-height: 1;
}

.gallery-prev,
.gallery-next {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 42px;
  line-height: 1;
}

.contact-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  overflow: auto;
  padding: 34px;
  background: rgba(25, 21, 29, 0.9);
}

.contact-modal.is-open {
  display: block;
}

.contact-panel {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 720px;
  margin-bottom: 30px;
}

.contact-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.lead-form {
  display: grid;
  gap: 24px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.lead-form label,
.lead-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.lead-form input[type='text'],
.lead-form input[type='email'],
.lead-form input[type='tel'],
.lead-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(25, 21, 29, 0.22);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  padding: 12px 14px;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form fieldset {
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  gap: 12px 18px;
  padding: 20px;
  border: 1px solid rgba(25, 21, 29, 0.18);
}

.lead-form legend {
  padding: 0 8px;
  font-size: 15px;
  font-weight: 900;
}

.lead-form fieldset label {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.25;
}

.lead-form input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--orange);
}

.captcha-field {
  max-width: 360px;
}

.form-message {
  min-height: 26px;
  margin: 0;
  color: var(--orange);
  font-weight: 900;
}

.form-message.success {
  color: var(--charge);
}

@media (max-width: 980px) {
  .site-header {
    height: 76px;
  }

  .brand {
    width: 128px;
  }

  .nav-toggle {
    position: relative;
    z-index: 22;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--white);
  }

  .nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 92px 28px 38px;
    background: rgba(25, 21, 29, 0.98);
    font-size: 28px;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .nav-cta {
    margin-top: 10px;
    font-size: 17px;
  }

  .hero,
  .hero-content {
    min-height: 82vh;
  }

  .hero-content {
    padding-top: 112px;
  }

  .signal-strip,
  .section-grid,
  .process,
  .future,
  .contact,
  .image-band {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(25, 21, 29, 0.18);
  }

  .solution-grid,
  .model-grid,
  .reference-board {
    grid-template-columns: 1fr 1fr;
  }

  .team-heading {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .reference-column:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
    padding: 0 18px;
  }

  .solution-grid,
  .model-grid,
  .reference-board {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .team-card:first-child {
    grid-column: auto;
  }

  .team-card {
    grid-template-rows: 216px minmax(82px, auto);
  }

  .team-card img {
    min-height: 0;
  }

  .reference-column:first-child {
    grid-column: auto;
  }

  .reference-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .solution-grid article,
  .model-grid article {
    min-height: 250px;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 70px 18px 24px;
  }

  .gallery figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .gallery-prev,
  .gallery-next {
    width: 100%;
    height: 48px;
    border-radius: 0;
    font-size: 30px;
  }

  .contact-modal {
    padding: 14px;
  }

  .form-grid,
  .lead-form fieldset {
    grid-template-columns: 1fr;
  }

  .lead-form fieldset {
    grid-auto-flow: row;
    grid-template-rows: none;
  }
}
