html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Avoid horizontal scrollbars from fixed 150vw */
body {
  display: block;
  width: 100%;
  background-color: #ffffff;
  background-image: url('../images/robot_on_tree_fade.png');
  /* ← add this line */
  background-size: auto 100vh;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-attachment: fixed;
  font-family: Couture, Arial, 'Gill Sans', sans-serif;
}

p {
  font-size: 16px;
}

/* NAV: robust, responsive bar */
.floater {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* better than width:100vw to avoid overflow with scrollbars */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: #fff;
  z-index: 100;
  padding: 0.5rem 1rem;
  min-height: 3.5rem;
  /* let content breathe; avoids clipping on small devices */
  border-top: 0 solid #000;
  box-sizing: border-box;
}

.floater a {
  margin: 0;
  padding: 0;
}

.logo {
  /* height: 2.5rem;          /* fixed, predictable logo height */
  height: 4em;
  /* your previous cap still respected */
  width: auto;
  flex-shrink: 0;
}

/* === NAV LIST === */
nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* space items to the right of the logo */
  flex: 1 1 auto;
  /* middle area expands/contracts */
  gap: 2.0rem;

  /* important: do not inherit height/line-height; avoid pushing off-screen */
  /* height: auto;
    line-height: normal; */

  /* no width 100% + margin-top; let flex do the layout */
  width: auto;
  margin: 0 1rem;
  padding: 0;
  list-style: none;
  overflow: hidden;
  /* prevent overflow before hiding */
}

nav>ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline-flex;
  align-items: center;
}

/* Links: remove stray comment token and avoid vertical offsetting */
nav ul a {
  transition: color 0.2s ease;
  border: 0;
  color: rgba(0, 0, 0, 0.65);
  display: block;
  font-size: .75em;
  font-weight: bold;
  letter-spacing: 0.25em;
  line-height: 1.75;
  outline: 0;
  padding: 0.6em 0;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-lines {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.7;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block: 0.25rem;
}

.contact-row span:first-child {
  min-width: 7.5rem;
  font-weight: 500;
}

.email-link {
  display: inline-flex;
  align-items: center;
}

.email-icon {
  height: 1.0ex;
  width: auto;
  transition: opacity 0.2s ease;
  vertical-align: baseline;
  cursor: pointer;
}

.email-link:hover .email-icon {
  opacity: 0.7;
}

/* plain email text: not clickable, no underline */
.email-text {
  color: inherit;
  text-decoration: none;
  cursor: text;
  /* indicates you can select/copy it */
  user-select: all;
  /* makes it easier to copy */
}



/* Language toggle button (inside nav). Add class="lang-toggle persistent" to it. */
.lang-toggle {
  white-space: nowrap;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.9rem;
  line-height: 1;
  backdrop-filter: blur(4px);

  flex-shrink: 0;
  margin-left: 1rem;
}

.lang-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* progressively hide nav items on smaller screens */
@media (max-width: 1000px) {
  .hide-s4 {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .hide-s3 {
    display: none !important;
  }
}

@media (max-width: 800px) {
  .hide-s2 {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .hide-s1 {
    display: none !important;
  }
}

/* ensure language button remains always visible */
.persistent {
  display: inline-flex !important;
  visibility: visible !important;
}

/* Remove the old "hide entire ul" rule */
/* @media (max-width: 500px) { nav ul { display: none; } }  */

/* --- Content sections (unchanged semantics, small safety tweaks) --- */
.translucent-box {
  position: static;
  display: flex;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
}

.opaque-box {
  position: relative;
  display: flex;
  width: 100%;
  background-color: rgba(255, 255, 255, 1);
  z-index: 55;
}

.text-box {
  position: sticky;
  top: 0;
  left: 5%;
  width: 90vw;
  z-index: 60;
}

#intro .text-box {
  padding-top: 5.5em;
}

#press_interviews .text-box {
  padding-bottom: 10em;
}

.scrolly.active,
.scrolly:focus {
  color: rgba(0, 0, 0, 1.0);
}

.section-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Optional: subtle hover feedback for all linked sections */
.section-link:hover .opaque-box,
.section-link:hover .translucent-box {
  background-color: rgba(240, 240, 240, 0.9);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.job-box {
  margin-top: 1.5em;
  padding: 1.5em;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-box {
  width: 100%;
  overflow: hidden;
}

.project-box img {
  width: 100%;
  height: auto;
  display: block;
}

.sticky-view_more {
  position: fixed;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 3vh 7.5vw;
  background-color: rgb(255, 255, 255);
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}

.pdf_class {
  width: 100%;
  aspect-ratio: 0.8;
  margin-bottom: 2em;
}

.opaque-box .description {
  width: 90%;
  margin-top: 2em;
  margin-bottom: 2em;
}

#cinema-container.cinema-mode {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}