/* Reset */
* {
  box-sizing: border-box;
}

/* Global */
html,
body {
  height: 100%;
}


body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #1d1d1d;
  font-optical-sizing: auto;
  font-style: normal;
}



/* Typography */
h1 {
  font-size: 3.8rem;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.022em;
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.011em;
  margin-bottom: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

p {
  font-size: 22px;
  max-width: 450px;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.55;
  color: #1d1d1f;
  margin-bottom: 1.5rem;
}

a {
  transition: border-color 200ms ease;
  text-decoration: none;
  font-size: 22px;
  max-width: 450px;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.55;
  color: #1d1d1f;
}

a:hover {
  color: #0b43a9;
  cursor: pointer;
}

.link-mail {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.011em;
  margin-bottom: 3rem;
  font-weight: 800;
}

.link-intern {
  transition: border-color 200ms ease;
  text-decoration: none;
  font-size: 24px;
  max-width: 450px;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.55;
  color: #1d1d1f;
  font-weight: 600;
}


/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  display: grid;
  place-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 700ms ease;
  will-change: opacity;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay .quote {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.011em;
  margin-bottom: 3rem;
  font-weight: 800;
}

/* Main layout */
.main {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  width: 50%;
  box-sizing: border-box;
}

/* Left (text) */
.text {
  background: #fff;
  padding: clamp(18px, 3vw, 42px);
  padding-top: 30vh;
  padding-bottom: 30vh;
}

/* Right (image) */
.image {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* U ovom boxu je tvoja slika (zamijeni sa <img>) */
.profile-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.company-image {
  width: 100%;
  max-width: 600px;
  height: 100%;
  padding-top: 30vh;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: grayscale(70%);
}


/* Mobile: normalan flow, bez sticky */
@media (max-width: 900px) {

  h1,
  h2,
  p {
    max-width: 70%;
  }

  h1 {
    font-size: 3rem;
  }

  .main {
    flex-direction: column;
    width: 100%;
  }

  .section {
    width: 100%;
  }

  .text {
    padding-bottom: 2em;
  }

  .imageBox {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .image {
    position: static;
    height: auto;
    display: block;

  }
}




/* Minimal DL "table" layout */
.facts {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  /* label width + value */
  column-gap: 24px;
  row-gap: 10px;
}



.facts dt,
.facts dd {
  margin: 0;
  padding: 0;
}

.facts dt {
  font-weight: 500;
  opacity: 0.7;
  /* softer label */
  white-space: nowrap;
  /* keep labels on one line */
}

.facts dd {
  opacity: 1;
}

/* Optional: make long values wrap nicely */
.facts dd {
  overflow-wrap: anywhere;
}

/* Optional: style links subtly */
.facts a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.facts a:hover {
  opacity: 0.85;
}

.vcard {
  max-width: 200px;
}

/* Mobile: normalan flow, bez sticky */
@media (max-width: 900px) {

  .facts {
    column-gap: 4px;
  }
}



.item {
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.meta {
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.nav-home-next {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}