/* 1) Kill horizontal scroll (safety) */
html, body {
  overflow-x: hidden;
}

/* 2) Make wrapper never exceed screen width */
/* Stop the bottom horizontal scrollbar without cutting content */
html, body {
  overflow-x: clip; /* better than hidden (no layout clipping issues) */
}

/* Fix the REAL cause: 100vw inside a shifted layout (sidebar margin-left) */
#wrapper .fullscreen {
  width: auto !important;     /* prevents 100vw overflow */
  max-width: 100% !important;
}

/* 3) If HTML5UP fullscreen uses 100vw, override it */
.wrapper.fullscreen,
.wrapper.style1.fullscreen {
  width: 100% !important;
  max-width: 100% !important;
}

/* 4) Force all sections and inner containers to stay inside */
#wrapper section,
#wrapper .inner {
  max-width: 100%;
}

/* 5) Make images responsive (your logo can also cause overflow) */
img {
  max-width: 100%;
  height: auto;
  display: block;
}


:root{
  --cream: #f6f1e7;
  --ink: #111111;
  --muted: #444444;
  --line: #e5e0d6;
  --brand: #111111; /* deep green */
  --bg: #ffffff;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; font-family: Arial, sans-serif; color: var(--ink); background: var(--bg); }
a{ color: inherit; }

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}
.brand{
  font-weight: 800;
  text-decoration:none;
  letter-spacing: .2px;
}
.nav{
  display:flex;
  gap:16px;
}
.nav a{
  text-decoration:none;
  color: #222;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover{
  background: rgba(0,0,0,0.04);
}

/* Sections */
.wrapper{ padding: 70px 18px; }
.inner{
  max-width: 1080px;
  margin: 0 auto;
}
.hero{
  background: linear-gradient(180deg, #ffffff, #fbfaf7);
}
.cream{ background: var(--cream); }
.light{ background: #ffffff; }

h1{ font-size: clamp(30px, 4vw, 46px); margin: 10px 0 12px; }
h2{ font-size: 28px; margin: 0 0 10px; }
h3{ font-size: 18px; margin: 0 0 12px; }

.eyebrow{
  font-weight: 700;
  color: #f9f4ea;
  margin:0 0 8px;
}
.lead{
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
}
.muted{ color: var(--muted); line-height:1.7; }

/* Buttons */
.actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top: 18px; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor:pointer;
}
.btn-primary{
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover{ filter: brightness(0.95); }
.btn-ghost{
  background: transparent;
  border-color: rgba(0,0,0,0.14);
  color: #111;
}
.btn-ghost:hover{ background: rgba(0,0,0,0.04); }

/* Fade-up animation */
.fade-up{
  animation: fadeUp 550ms ease both;
}
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}


/* Form */
.form{ margin-top: 22px; }
.card{
  background: #f9f4ea;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 14px 0;
}
.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label{
  display:block;
  font-weight: 700;
  margin: 10px 0 8px;
  color: #111;
}
input, textarea, select{
  width:100%;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  outline: none;
}
textarea{ min-height: 110px; resize: vertical; }

input::placeholder, textarea::placeholder{ color: #666; }

input:focus, textarea:focus, select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47,93,80,0.12);
}

/* Flash */
.flash{
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0 18px;
  font-weight: 700;
}
.flash.success{
  background: rgba(40,167,69,0.12);
  border: 1px solid rgba(40,167,69,0.5);
  color: #1e7e34;
}
.flash.error{
  background: rgba(220,53,69,0.12);
  border: 1px solid rgba(220,53,69,0.5);
  color: #a94442;
}

/* Footer */

	#sidebar + #wrapper + #footer {
		margin-left: 18em;
	}

		@media screen and (max-width: 1280px) {

			#sidebar + #wrapper + #footer {
				margin-left: 0;
			}

		}

	#footer > .inner a {
		border-bottom-color: #111111;
	}

		#footer > .inner a:hover {
			border-bottom-color: transparent;
		}

	#footer > .inner .menu {
		font-size: 0.8em;
		color:#ffffff;
	}

	#header + #wrapper + #footer > .inner {
		margin: 0 auto;
	}
#footer {
  background-color: #0b0b0f;  /* professional biotech green */
}

/* Responsive */
@media (max-width: 820px){
  .row{ grid-template-columns: 1fr; }
}

/* ===== Layout ===== */

/* ============================= */
/* SIDEBAR LAYOUT */
/* ============================= */

#sidebar {
  padding: 1.0em;
  background: #0b0b0f;
  height: 100vh;
  position: fixed;
  top: 0;
  left:0;
  width: 20em;                /* Wider sidebar */
  overflow-y: auto;
  z-index: 10000;
  text-align: right;          /* Tabs on right side */
}

/* Vertically center content */
#sidebar > .inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

/* Reset list */
#sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Remove margins between li */
#sidebar nav ul li {
  margin: 2.0em;
}

/* ============================= */
/* TAB STYLE */
/* ============================= */

#sidebar nav a {
  display: block;
  position: relative;
  padding: 1.6em 0;           /* Space top & bottom */
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.75em;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.45);
  transition: color 0.25s ease;
}

/* Base underline */
#sidebar nav a:before,
#sidebar nav a:after {
  content: "";
  position: absolute;
  bottom: 0.2em;
  right: 0;                   /* Start from RIGHT */
  height: 0.2em;
  width: 120%;                 /* Shorter line */
  border-radius: 0.45em;
}

/* Light base line */
#sidebar nav a:before {
  background: rgba(153,102,255,0.25);
}

/* Animated highlight line */
#sidebar nav a:after {
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  max-width: 0;
  transition: max-width 0.3s ease;
}

/* Hover */
#sidebar nav a:hover {
  color: #ffffff;
}

#sidebar nav a:hover:after {
  max-width:100%;
  box-shadow: 0 0 18px rgba(139,92,246,0.35);
}

/* Active */
#sidebar nav a.active {
  color: #ffffff;
}

#sidebar nav a.active:after {
  max-width: 100%;
  box-shadow: 0 0 22px rgba(217,70,239,0.35);
}

/* ============================= */
/* WRAPPER SHIFT */
/* ============================= */

#sidebar + #wrapper {
  margin-left: 20em;
}

#sidebar + #wrapper + #footer {
  margin-left: 20em;
}

/* Desktop */
@media screen and (min-width: 1440px) {

  #sidebar {
    width: 25em;      /* Desktop width */
  }

  #sidebar + #wrapper,
  #sidebar + #wrapper + #footer {
    margin-left: 25em;
  }

}
/* ============================= */
/* TABLET */
/* ============================= */

@media screen and (max-width: 1280px) {

  #sidebar {
    height: 3.5em;
    width: 100%;
    text-align: center;
    padding: 0;
  }

  #sidebar > .inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: inherit;
  }

  #sidebar nav ul {
    display: flex;
    gap: 0.5em;
  }

  #sidebar nav a {
    padding: 0;
    line-height: 2.5em;
  }

  #sidebar + #wrapper,
  #sidebar + #wrapper + #footer {
    margin-left: 0;
    padding-top: 3.5em;
  }
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media screen and (max-width: 736px) {
  #sidebar {
    display: none;
  }

  #sidebar + #wrapper,
  #sidebar + #wrapper + #footer {
    padding-top: 0;
  }
}


@media screen and (max-width: 1280px) {
  #sidebar nav ul {
    justify-content: space-between;
    gap: 1.6em;
    padding: 0 14px;
  }

  #sidebar nav ul li {
    margin: 0 !important;
  }

  #sidebar nav a {
    font-size: 0.62em;
    letter-spacing: 0.15em;
    white-space: nowrap;
  }
}

/* Center all section content */
#wrapper .inner {
  max-width: 1150px;   /* control content width */
  margin-left: 60px;
  margin-right: 30px;
}

/* Different cream tones for each section */

#intro {
  background: #f9f4ea;   /* very light cream */
}

#one {
  background: #f6f1e7;   /* soft cream */
}

#two {
  background: #FFFFFF;   /* slightly deeper cream */
}

#three {
  background: #f9f4ea;   /* warm neutral cream */
}

<style>

/* Cream background already inline above, but can control here */
#two {
  background-color: #FFFFFF;
}



/* Logo Grid */
.portfolio-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  align-items: center;
  margin-top: 50px;

}

/* Logo Items */
.logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: all 0.3s ease;
}

.logo-item img {
  max-width: 360px;
  max-height: 220px;
  object-fit: contain;
  opacity: 1;
  transition: all 0.3s ease;
}

.logo-item:hover img {
  transform: scale(1.05);
}


</style>


/* Contact */

	ul.contact {
		list-style: none;
		padding: 0;
	}

		ul.contact > li {
			padding: 0;
			margin: 1.5em 0 0 0;
		}

			ul.contact > li:first-child {
				margin-top: 0;
			}


/* Icons */

	ul.icons {
		cursor: default;
		list-style: none;
		padding-left: 0;
	}

		ul.icons li {
			display: inline-block;
			padding: 0 0.75em 0 0;
		}

			ul.icons li:last-child {
				padding-right: 0;
			}

			ul.icons li > a, ul.icons li > span {
				border: 0;
			}

				ul.icons li > a .label, ul.icons li > span .label {
					display: none;
				}


<style>
/* ---------- SECTION #three FORM — FINAL FIX ---------- */

#three {
  background-color: #f6f1e7;
  color: #111111;
}

#three * {
  color: #111111;
}

/* IMPORTANT: force black typed text for ALL controls */
#three input,
#three textarea,
#three select {
  background:  #f6f1e7 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;  /* critical for Chrome */
  caret-color: #000000 !important;              /* cursor color */
  border: 1.5px solid #000000 !important;
  border-radius: 8px;
}

/* placeholders */
#three input::placeholder,
#three textarea::placeholder {
  color: #666666 !important;
  -webkit-text-fill-color: #666666 !important;
}

/* focus */
#three input:focus,
#three textarea:focus,
#three select:focus {
  outline: none !important;
  border-color: #007BFF !important;
}

/* Chrome autofill (common reason text "disappears") */
#three input:-webkit-autofill,
#three textarea:-webkit-autofill,
#three select:-webkit-autofill {
  -webkit-text-fill-color: #000000 !important;
  caret-color: #000000 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Make your cards actually readable on cream */
#three .card {
  background: rgba(0,0,0,0.01) !important; /* subtle gray tint */
}

/* grid */
#three .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#three .btn-primary {
  background: #111 !important;
  color: #fff !important;
  border: 2 !important;
   margin-top: 25px;
}
</style>

/* ============================= */
/* TYPOGRAPHY (Clean Modern) */
/* ============================= */

body,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;      /* Base font */
  line-height: 1.6;
  color: #111;
}

/* Headings */

h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 16px;
}

h6 {
  font-size: 14px;
}

/* Paragraph */

p {
  font-size: 25px;
  margin-bottom: 18px;
  color: #111;
}

/* Strong text */

strong {
  font-weight: 700;
}

/* Links */

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #000;
}

@media (max-width: 1024px) {

  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  h3 { font-size: 18px; }

}

@media (max-width: 736px) {

  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 17px; }

  body { font-size: 15px; }

}

#wrapper .inner {
  line-height: 1.85;
}

#one > section:nth-child(1) { background: #fbf7ee; }
#one > section:nth-child(2) { background: #f6f1e7; }
#one > section:nth-child(3) { background: #f2ebdf; }
