@font-face{
  font-family: "ABMS";
  src: url("assets/abms-reg.woff2") format("woff2"),
       url("assets/abms-reg.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  /* Column + spacing tuned to your comp */
  --pad: 28px;
  --col-max: 900px;

  --text: rgba(255,255,255,0.92);
  --line: rgba(255,255,255,0.30);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  overscroll-behavior: none;
}

html{
  background: #000; /* keep black for rubber-band */
}

body{
  margin: 0;
  color: var(--text);
  font-family: "ABMS", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  background: transparent;
  position: relative;
  z-index: 0;
}

.bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("assets/bg.jpg") center / cover no-repeat;
  pointer-events: none;
  transform: translateZ(0); /* helps iOS rendering */
}

.hero{
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate; 
}

.top-title{
  position: absolute;
  top: 26px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.01em;
  z-index: 3;
  padding: 0 var(--pad);
  white-space: nowrap;
}

.logo1{
  position: absolute;
  right: 0;
  top: 46%;
  height: min(78vh, 900px);
  width: auto;
  z-index: 2;
  pointer-events: none;

  will-change: opacity;
  transform: translateY(-50%) translateZ(0);
}

/* Optional: clicking anywhere can scroll (kept invisible) */
.scroll-link{
  position: absolute;
  inset: 0;
  z-index: 4;
  text-decoration: none;
}

/* -------------------------
   SECTIONS
   ------------------------- */
.main{ position: relative; }

.section{
  padding: clamp(44px, 7vh, 90px) var(--pad);
}

#mission.section{
  padding-top: 10px;
}

#newsletter.section{
  padding-bottom: 0;
}

.content-column{
  width: min(var(--col-max), 100%);
  margin: 0 auto;
}

.mission{
  margin: 0;
  font-size: clamp(30px, 2.2vw, 32px);
  line-height: 1.30;
  letter-spacing: 0.005em;
}

.mission-sub{
  margin-top: 28px; 
  font-size: 18px;  
  line-height: 1.4;
}

.small-label{
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.newsletter{
  margin-top: 14px;
  display: grid;
  gap: 10px;
  width: 100%;
}

.newsletter input{
  width: 640px;
  padding: 10px 12px;
  font: inherit;
  font-size: 18px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  outline: none;
}

.newsletter input::placeholder{
  color: rgba(255,255,255,0.65);
}

.newsletter button{
  width: fit-content;
  padding: 8px 14px;
  font: inherit;
  font-size: 18px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.newsletter button:hover{
  background: rgba(255,255,255,0.08);
}

/* logo2.svg */
.logo2{
  display: block;
  width: min(880px, 92vw);
  height: auto;
  margin-top: 44px;
  margin-left: 0; /* true viewport left */
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

/* Desktop: cancel the section’s left padding so logo2 touches the browser edge */
@media (min-width: 701px){
  #newsletter .logo2{
    margin-left: calc(-1 * var(--pad));
  }
}

.contact{
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.2;
}

.contact-inline{
  margin-top: 60px;
}

.contact a{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.0);
}

.contact a:hover{
  border-bottom-color: rgba(255,255,255,0.6);
}

/* Screen reader-only utility */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* -------------------------
   MOBILE
   ------------------------- */
@media (max-width: 700px){
  :root{
    --pad: 18px;
    --col-max: 100%;
  }

.mission-sub{
  margin-top: 20px;
  font-size: 15px;
}

  /* Prevent sideways drift / pinch-style layout break */
  html, body{
    width: 100%;
    overflow-x: hidden;
  }

  /* Let logo2 hit the viewport edge: remove section side padding */
  #newsletter.section{
    padding-left: 0;
    padding-right: 0;
  }

  .hero{
    overflow: hidden;
  }

  .top-title{
    top: 16px;
    font-size: 16px;
  }

  /* Keep logo1 pinned to the right edge */
  .logo1{
    top: 42%;
    height: 62vh;
    right: 0;
    transform: translateY(-50%);
  }

  /* Ensure mission column margins */
  .content-column{
    width: 100%;
    margin: 0;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  .mission{
    font-size: 22px;
    line-height: 1.35;
  }

.mission-sub{
  margin-top: 20px;
}

  .newsletter{
    max-width: 100%;
  }

  .newsletter input{
    width: 100%;
  }

  .logo2{
    display: block;
    width: min(520px, 92vw);
    height: auto;
    margin-left: 0;
  }

  /* Font size consistency */
  .small-label,
  .newsletter input,
  .newsletter button,
  .contact{
    font-size: 15px;
  }
}