:root{
  --fg: #eef1f7;
  --muted: rgba(238,241,247,0.72);
  --line: rgba(255,255,255,0.14);

  --accent: #b29bff;
  --pad: 28px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;

  /* Background slideshow images */
  --bg1: url("assets/background-1.jpg");
  --bg2: url("assets/background-2.jpg");
  --bg3: url("assets/background-3.jpg");

  --overlayTop: 0.46;
  --overlayBottom: 0.78;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--fg);
  background:#05070c;
  line-height:1.6;
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }
.muted{ color: var(--muted); }

/* ===== Topbar ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(6,8,14,0.60);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.topbar__inner{
  display:flex;
  align-items:center;
  gap:18px;
  padding: 14px var(--pad);
  width: 100%;
}
.brand{
  font-weight: 780;
  letter-spacing: 0.2px;
  position:relative;
}
.brand::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-7px;
  width:26px;
  height:2px;
  background: var(--accent);
  opacity: 0.95;
}
.nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-left: 10px;
}
.nav a{
  color: rgba(238,241,247,0.76);
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a:hover{
  color: var(--fg);
  background: rgba(255,255,255,0.07);
}
.nav a.active{
  color: var(--fg);
  background: rgba(255,255,255,0.10);
}
.links{
  margin-left:auto;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.links a{
  color: rgba(238,241,247,0.64);
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}
.links a:hover{
  color: var(--fg);
  border-bottom-color: rgba(255,255,255,0.18);
}

/* ===== Home: background slideshow ===== */
.home-hero{
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

/* slideshow images */
.bg-slide{
  position:absolute;
  inset:0;
  z-index:0;
}
.bg-slide__img{
  position:absolute;
  inset:-6%;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  filter: saturate(0.96) contrast(1.05) brightness(0.96);
  transform: scale(1.03);
  opacity:0;
  animation: fade 24s infinite ease-in-out;
}
.bg1{ background-image: var(--bg1); animation-delay: 0s; }
.bg2{ background-image: var(--bg2); animation-delay: 8s; }
.bg3{ background-image: var(--bg3); animation-delay: 16s; }

@keyframes fade{
  0%   { opacity:0; }
  10%  { opacity:1; }
  33%  { opacity:1; }
  45%  { opacity:0; }
  100% { opacity:0; }
}

/* overlay so text stays readable */
.home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(900px 560px at 18% 10%, rgba(178,155,255,0.18), transparent 62%),
    linear-gradient(180deg,
      rgba(0,0,0,var(--overlayTop)),
      rgba(0,0,0,var(--overlayBottom))
    );
}

/* ===== Home layout ===== */
.hero-layout{
  position:relative;
  z-index:2;
  padding: 62px var(--pad) 26px var(--pad);

  /* SHIFT RIGHT: use a left margin */
  width: min(1180px, calc(100% - (var(--pad) * 2)));
  margin-left: clamp(18px, 6vw, 90px);
}

.hero-shell{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: start;
}

/* portrait */
.hero-portrait{
  margin:0;
  width: 240px;
}
.hero-portrait img{
  width:100%;
  height: 300px;
  object-fit: cover;
  display:block;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 70px rgba(0,0,0,0.55);
}

/* copy */
.hero-copy{
  padding-top: 4px;
  max-width: 82ch;
}
.eyebrow{
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  color: rgba(178,155,255,0.95);
  margin-bottom: 10px;
}
.hero-title{
  margin: 0;
  font-size: clamp(2.0rem, 3.0vw, 2.9rem);
  letter-spacing: -0.6px;
}
.hero-subtitle{
  margin: 10px 0 16px 0;
  color: rgba(238,241,247,0.78);
  font-size: 1.05rem;
}

/* glass block */
.hero-glass{
  background: rgba(10,12,18,0.40);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 16px 16px 14px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 70px rgba(0,0,0,0.40);
  position: relative;
  overflow:hidden;
}
.hero-glass::after{
  content:"";
  position:absolute;
  inset:-45% -25%;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 58%);
  transform: rotate(-10deg);
  pointer-events:none;
}

.hero-text{
  margin: 0 0 12px 0;
  color: rgba(238,241,247,0.92);
}
.hero-text--tight{
  margin-bottom: 0;
  color: rgba(238,241,247,0.88);
}

.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color: rgba(238,241,247,0.70);
  font-size: 0.95rem;
  margin-top: 12px;
}
.hero-meta .dot{ opacity:0.7; }

/* footer */
.footer{
  margin-top: 22px;
  padding: 14px 0 10px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer--home{
  border-top-color: rgba(255,255,255,0.10);
}

/* ===== Other pages ===== */
.page{
  padding: 46px 0 60px 0;
}
.page__inner{
  padding: 0 var(--pad);
}
.page__title{
  margin: 0 0 18px 0;
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  letter-spacing: -0.3px;
}

/* centered image */
.page__figure{
  margin: 18px auto 0 auto;
  width: min(920px, 92vw);
}
.page__figure img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 70px rgba(0,0,0,0.45);
}
.page__caption{
  margin-top: 10px;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 980px){
  .nav{ display:none; }
  .hero-layout{
    width: calc(100% - (var(--pad) * 2));
    margin-left: 0;
    padding-top: 40px;
  }
  .hero-shell{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-portrait{
    width: 220px;
  }
  
  .hero-portrait img{
    height: 280px;
  }
}

/* Links inside hero text: underline only, same color */
.hero-glass a{
  color: inherit;             
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.hero-glass a:hover{
  text-decoration-thickness: 2px; 
}

/* Highlighted keywords */
.keyword{
  color: rgba(178,155,255,0.95);
  font-weight: 500;   
}
