/* ============================================================
   Sausage Labs · single-column site (black & white)
   Content lives in index.html. Design knobs are here.
   ============================================================ */

:root {
  --bg:     #ffffff;   /* background */
  --ink:    #0B0B0B;   /* primary text / black */
  --muted:  #6A6A6A;   /* secondary text */
  --line:   #E4E4E4;   /* hairlines */

  --col: 1140px;       /* max content width */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --geo:  "Jost", var(--sans);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px; /* keep headings clear of the sticky nav */
}

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ---------- TOP BAR (sticky) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(22px, 5vw, 56px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* animated keypoint logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
}
.logo__fig { height: 44px; width: auto; display: block; flex: none; }
.logo__rule { width: 1.5px; height: 38px; background: var(--ink); flex: none; }
.logo__word {
  font-family: var(--geo);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 17px;
  line-height: 1.04;
}

.nav { display: flex; gap: clamp(16px, 3vw, 38px); }
.nav a {
  font-family: var(--geo);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); border-color: var(--ink); outline: none; }

/* ---------- SCREEN: fit one viewport ---------- */
.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- STAGE: centered, fills remaining height ---------- */
.stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 2.1vh, 34px);
  padding: clamp(12px, 2vh, 32px) clamp(22px, 5vw, 40px);
}

/* top region: hero (left) + Thesis/Work/Project (right) */
.top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

/* ---------- HERO ---------- */
.hero { margin-bottom: 0; }

.hero__actions { display: flex; gap: 12px; }

.hero__title {
  font-weight: 500;
  font-size: clamp(28px, min(3.4vw, 5.4vh), 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(14px, 2.2vh, 24px);
}
.hero__title span { display: block; }
.hero__title--muted { color: var(--muted); font-weight: 400; }

/* ---------- ENTRANCE ANIMATION (on page open) ---------- */
@keyframes sl-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sl-read {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
.hero__line         { animation: sl-rise 0.6s ease-out both 0.10s; }
.hero__title--muted { animation: sl-read 0.95s ease both 0.55s; }
.hero__lede         { animation: sl-rise 0.6s ease-out both 0.85s; }
.hero__actions      { animation: sl-rise 0.6s ease-out both 1.10s; }

@media (prefers-reduced-motion: reduce) {
  .hero__line,
  .hero__title--muted,
  .hero__lede,
  .hero__actions { animation: none; }
}

.hero__lede {
  font-size: clamp(15px, min(1.55vw, 2.1vh), 18px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 clamp(14px, 2.2vh, 26px);
  max-width: 640px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background 0.16s ease, color 0.16s ease;
}
.btn:hover { background: var(--bg); color: var(--ink); }

/* ---------- SECTIONS (stacked, single column) ---------- */
.panels {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.panel {
  padding: clamp(12px, 2vh, 26px) 0;
  border-bottom: 1px solid var(--line);
}

/* left column: keep only the dividers between the stacked sections */
.panels--right { border-top: none; }
.panels--right .panel:first-child { padding-top: 0; }
.panels--right .panel:last-child { border-bottom: none; padding-bottom: 0; }

.panel__body h2 {
  font-family: var(--geo);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  margin: 0 0 10px;
}
.panel__body p {
  margin: 0;
  font-size: clamp(14px, min(1.3vw, 1.9vh), 16px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 640px;
}

.panel__people { display: flex; flex-direction: column; gap: 6px; }
.panel__people strong { color: var(--ink); font-weight: 600; }

.panel__mail {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.panel__mail:hover { color: var(--muted); border-color: var(--muted); }

/* ---------- FOOTER: Contact (left) + animated mark (right) ---------- */
.footer {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(16px, 2.6vh, 30px) clamp(22px, 5vw, 40px) clamp(20px, 3vh, 36px);
  border-top: 1px solid var(--line);
}
.footer__contact h2 {
  font-family: var(--geo);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  margin: 0 0 10px;
}
.footer__contact p {
  margin: 0;
  font-size: clamp(14px, min(1.3vw, 1.9vh), 16px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
}
.footer__mark {
  width: clamp(64px, 9vw, 84px);
  height: auto;
  color: var(--ink);
  flex: none;
}

/* ---------- RESPONSIVE: stack to one column on narrow screens ---------- */
@media (max-width: 820px) {
  .screen { min-height: 0; }
  .stage { justify-content: flex-start; }
  .top { grid-template-columns: 1fr; gap: 0; }
  .hero { margin-bottom: clamp(28px, 5vh, 44px); }
  .hero__title { font-size: clamp(30px, 8vw, 44px); }
}

/* phones: put the nav on its own row so it never crowds the logo */
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; row-gap: 12px; }
  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px;
  }
}
