/* BANGLADESH — an opening still, then a treatment document on the sand. */

:root {
  --sand: #e4d6b6;
  --sand-deep: #d6c49c;
  --ink: #1f1810;
  --ink-soft: #4f4335;
  --ink-faint: rgba(31, 24, 16, 0.55);
  --rule: rgba(42, 33, 24, 0.16);
  --sky: #2f5f8f;
  --bg: var(--sand);
  --surface: #ece0c6;
  --border: var(--rule);
  --accent: var(--ink);
  --accent-ink: var(--sand);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font: var(--sans);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.28;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' seed='11' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='linear' slope='0.18'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}

/* ---------- Topbar ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; background: transparent; border: 0; backdrop-filter: none; z-index: 3; }
.topbar-inner { padding: 18px 26px; max-width: none; }
.topbar-home, .topbar-links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.78);
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.topbar-home:hover, .topbar-links a:hover { color: #fff; }

/* ---------- The opening still (unchanged) ---------- */
.still {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
/* darken the top for the title, dissolve the bottom into the sand of the page */
.still::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 32%, rgba(228,214,182,0) 54%, rgba(228,214,182,0.9) 80%, var(--sand) 100%);
}
.still-text {
  position: absolute;
  top: clamp(100px, 17vh, 180px);
  left: 0; right: 0;
  text-align: center;
  padding: 0 24px;
  z-index: 1;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin: 0 0 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.still h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}

/* ---------- The document, starting on the image ---------- */
.doc {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: -24vh auto 0;
  padding: 0 28px 14vh;
}

.entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px 56px;
  padding: 52px 0;
  border-top: 1px solid var(--rule);
}
/* the first entry sits on the photo's fade: give it its own sand to stand on */
.entry:first-child {
  border-top: 0;
  background: linear-gradient(180deg, rgba(228,214,182,0.72) 0%, var(--sand) 55%);
  margin: 0 -28px;
  padding-left: 28px;
  padding-right: 28px;
}

.entry-head { position: sticky; top: 36px; align-self: start; }
.num {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--sky);
  margin-bottom: 8px;
}
.entry-head h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  text-align: left;
}

.entry-body { max-width: 58ch; }
.entry-body p {
  font-family: var(--sans);
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 16px;
}
.entry-body p:last-child { margin-bottom: 0; }

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.person { display: flex; gap: 16px; align-items: center; }
.person .photo {
  position: relative;
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(42, 33, 24, 0.06);
  border: 1px dashed rgba(42, 33, 24, 0.35);
  overflow: hidden;
}
.person .photo.has-photo { border-style: solid; border-color: rgba(42,33,24,0.2); }
.person .photo .auto-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person .name { font-family: var(--serif); font-size: 1.02rem; margin: 2px 0 3px !important; line-height: 1.2 !important; }
.person .role { font-size: 0.82rem !important; line-height: 1.45 !important; color: var(--ink-soft); margin: 0 !important; }
.person .role.placeholder { font-style: italic; color: var(--ink-faint); }

/* ---------- Register ---------- */
.signup { display: flex; gap: 12px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.45);
  border: 1px solid rgba(42, 33, 24, 0.45);
  border-radius: 0;
  padding: 12px 14px;
}
.signup input[type="email"]::placeholder { color: var(--ink-faint); font-style: italic; }
.signup input[type="email"]:focus-visible { outline: none; border-color: var(--ink); background: rgba(255, 250, 240, 0.7); }
.signup button {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 24px;
  cursor: pointer;
  white-space: nowrap;
}
.signup button:hover { background: #3d3226; }
.signup button:disabled { opacity: 0.6; cursor: wait; }
.form-message { font-size: 0.84rem !important; color: var(--ink-soft); min-height: 1.3em; margin: 10px 0 0 !important; }
.helps { font-family: var(--serif) !important; font-style: italic; font-size: 1.02rem !important; color: var(--ink-soft); margin: 6px 0 22px !important; }
.contact { font-size: 0.82rem !important; letter-spacing: 0.02em; color: var(--ink-faint); margin: 0 !important; }
.contact a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(42,33,24,0.3); }
.contact a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .still img { object-position: center 35%; }
  .doc { margin-top: -18vh; padding: 0 22px 10vh; }
  .entry { grid-template-columns: 1fr; gap: 14px; padding: 38px 0; }
  .entry:first-child { margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
  .entry-head { position: static; }
}
