/* ======================================
   ROOT — COLORS + GLOBAL SYSTEM
====================================== */
:root{
  --bg: #000;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --accent: #093e1e;

  --max: 1180px;
  --radius: 22px;

  --hero-offset: 40px;
  --header-h: 110px;
}

@media (max-width: 768px){
  :root{ --hero-offset: 20px; }
}
@media (max-width: 780px){
  :root{ --header-h: 84px; }
}

.hero__stats .stat:hover{ text-decoration: none; }

/* ======================================
   FONTS
====================================== */
@font-face{
  font-family: "LunaHeader";
  src: url("./fonts/HumanSans-Bold.woff2") format("woff2"),
       url("./fonts/HumanSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ======================================
   Cookies
====================================== */
.cookie{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.9);
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  z-index: 99999;
}

.cookie__inner{
  width: min(100% - 44px, var(--max));
  margin: 0 auto;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 14px;
  font-size: 13px;
}

.cookie button{
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color:#fff;
  border: 1px solid rgba(255,255,255,.2);
}

.cookie__accept{
  background: var(--accent);
  border-color: var(--accent);
}

/* ======================================
   BASE RESET
====================================== */
*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

html{
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

section, main{ scroll-margin-top: calc(var(--header-h) + 10px); }

/* ======================================
   TYPOGRAPHY
====================================== */
body{
  font-family: "source-code-pro", monospace;
  font-weight: 300;
  font-style: normal;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

h1, h2, h3, .hero__title{
  font-family: "LunaHeader", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

/* ======================================
   LAYOUT HELPERS
====================================== */
.container{
  width: min(100% - 44px, var(--max));
  margin: 0 auto;
}

/* ======================================
   HEADER (fixed + glass on scroll)
====================================== */
.header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;

  padding: 18px 0;
  background: rgba(0,0,0,0.0);
  backdrop-filter: none;
  border-bottom: 1px solid transparent;

  transition:
    background 380ms ease,
    backdrop-filter 380ms ease,
    padding 260ms ease,
    border-color 260ms ease;
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}

.brand__logo{
  height: 80px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: transform 320ms ease, opacity 320ms ease;
}

.nav{
  display:flex;
  gap: 30px;
  align-items:center;
  opacity: 0.85;
  transition: opacity 320ms ease;
}

.nav a{
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

@media (max-width: 780px){
  .brand__logo{ height: 44px; }
  .nav{ gap: 16px; }
  .nav a{ font-size: 11px; }
}

.header.is-scrolled{
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.12);
  padding: 12px 0;
}
.header.is-scrolled .brand__logo{
  transform: scale(0.88);
  opacity: 0.95;
}
.header.is-scrolled .nav{ opacity: 1; }

/* ======================================
   HERO (PINNED)
====================================== */
.hero{
  position: fixed;
  inset: 0;
  height: 100vh;
  min-height: 100vh;
  padding: 140px 0 60px;
  overflow: hidden;
  z-index: 0;
}

.hero__bg{
  position:absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;

  --cycle: 12s;
  --hero-delay: 0s;

  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(9,62,30,0.25), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.62)),
    url("./hero-image.webp");
  background-size: 108%;
  background-position: center 80%;
  background-repeat: no-repeat;

  transform: scale(1.04);
}

.hero__bg::before,
.hero__bg::after{
  content:"";
  position:absolute;
  inset: 0;

  background-size: 108%;
  background-position: center 80%;
  background-repeat: no-repeat;

  opacity: 0;
  pointer-events: none;

  animation-duration: var(--cycle);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-delay: var(--hero-delay, 0s);
}

.hero__bg::before{
  background-image: url("./hero-image2-light1.webp");
  animation-name: heroLight2;
}

.hero__bg::after{
  background-image: url("./hero-image2-light2.webp");
  animation-name: heroLight3;
}

@keyframes heroLight2{
  0%, 33.333%{ opacity: 0; }
  40%, 66.666%{ opacity: 1; }
  72%, 100%{ opacity: 0; }
}

@keyframes heroLight3{
  0%, 66.666%{ opacity: 0; }
  72%, 100%{ opacity: 1; }
}

@media (prefers-reduced-motion: reduce){
  .hero__bg::before,
  .hero__bg::after{
    animation: none !important;
    opacity: 0 !important;
  }
}

.hero__grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-height: 100%;
  align-content: end;
  padding-bottom: var(--hero-offset);
}

.hero__copy{ color: #fff; }

.hero__title{
  margin: 14px 0 0;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 18ch;
}

.hero__sub{
  margin: 14px 0 0;
  font-size: 18px;
  color: rgba(255,255,255,0.86);
  max-width: 68ch;
}

.hero__stats{
  margin-top: 22px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 980px;
}

.stat{
  display:block;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  padding: 14px 16px;
}
.stat__value{ font-weight: 750; letter-spacing: -0.01em; }
.stat__label{ color: rgba(255,255,255,0.78); font-size: 13px; margin-top: 4px; }

.hero__card{
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  padding: 18px;
  color: rgba(255,255,255,0.9);
}

.meta + .meta{ margin-top: 12px; }
.meta__k{
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.meta__v{
  margin: 6px 0 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (min-width: 980px){
  .hero__grid{ grid-template-columns: 1.35fr 0.65fr; align-items: end; }
  .hero__stats{ grid-template-columns: repeat(3, 1fr); }
}

/* ======================================
   STACK (scrolls over hero)
====================================== */
.stack{
  position: relative;
  z-index: 2;
  margin-top: 100vh;
  padding-top: var(--header-h);
}

/* ======================================
   INTRO
====================================== */
.intro-wide{
  padding: 70px 0 34px;
  border-top: 1px solid rgba(255,255,255,0.9);
  background: #000;
}

.intro-wide__title{
  margin: 0;
  font-size: clamp(30px, 3.8vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: rgba(255,255,255,0.92);
}

.intro-wide__cols{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,0.35);
  padding-top: 18px;
}

.intro-wide__col{
  margin: 0;
  color: rgba(255,255,255,0.80);
  font-size: 16px;
  max-width: 48ch;
}

@media (min-width: 900px){
  .intro-wide__cols{ grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* ======================================
   TICKER
====================================== */
.ticker-wrap{
  border-top: 1px solid rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.9);
  background: #000;
  overflow:hidden;
}

.ticker__track{
  display:flex;
  gap: 10px;
  padding: 14px 0;
  width: max-content;
  animation: ticker 18s linear infinite;
  will-change: transform;
}

.ticker__item{
  color: rgba(255,255,255,0.9);
  font-size: 28px;
  letter-spacing: 0.16em;
}

@keyframes ticker{
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ======================================
   ARTICLE / SECTIONS BASE
====================================== */
.main{ padding: 0 0 110px; }

.article{
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  background: #000;
  overflow: hidden;
}

.section{
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.section--alt{ background: #050505; }

.section__head{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.h2{
  margin: 0;
  font-size: clamp(26px, 2.6vw, 40px);
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.92);
}

.kicker{
  margin: 0;
  color: rgba(255,255,255,0.70);
  max-width: 42ch;
}

.p{
  margin: 12px 0 0;
  color: rgba(255,255,255,0.70);
  max-width: 78ch;
  font-size: clamp(15px, 1.1vw, 17px);
}

.cols{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 960px){
  .cols{ grid-template-columns: 1.15fr 0.85fr; }
}

.mini,
.step,
.note{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 16px;
}

.mini__k,
.note__k{
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.mini__v,
.note__v{
  margin: 10px 0 0;
  font-weight: 650;
  color: rgba(255,255,255,0.88);
}

.quote{
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 16px;
  border-left: 3px solid rgba(9,62,30,0.65);
  background: rgba(9,62,30,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 20px;
}

.steps{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 960px){
  .steps{ grid-template-columns: repeat(3, 1fr); }
}

.step{
  display:flex;
  gap: 14px;
}

.step__n{
  font-weight: 850;
  letter-spacing: 0.08em;
  color: rgba(9,62,30,0.75);
}

.section-grid{
  display: grid;
  grid-template-rows: auto 1fr;
  row-gap: 25px;
}

.section-title{ margin: 0; }
.section-body{ min-width: 0; }

.presence-quote{
  display: block;
  white-space: nowrap;
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.35;
}

.swatch:hover{ text-decoration: none; }

/* ======================================
   ABOUT
====================================== */
.section--about{
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 56px;
  padding-bottom: 56px;
}

.about__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.about__copy{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about__eyebrow{
  margin: 0;
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
}

.about__title{
  margin: 0;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.94);
}

.about__kicker{
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: clamp(16px, 1.5vw, 18px);
  max-width: 64ch;
}

.about__lead{
  margin: 10px 0 0;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.88);
  max-width: 62ch;
}

.about__cards{
  display: grid;
  gap: 12px;
}

.about__card{
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 18px;
}

.about__card-k{
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.about__card-v{
  margin: 10px 0 0;
  font-weight: 650;
  color: rgba(255,255,255,0.88);
}

@media (min-width: 900px){
  .about__grid{
    grid-template-columns: 1.25fr 0.75fr;
    align-items: stretch;
    gap: 26px;
  }

  .about__cards--sticky{
    position: sticky;
    top: calc(var(--header-h) + 18px);
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}

.section--flush{ padding: 0; }

.about__gallery{
  padding: 0 !important;
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.about__images{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 !important;
  margin: 0;
  width: 100%;
}

@media (min-width: 900px){
  .about__images{
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.about__image{
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  aspect-ratio: 16 / 10;
}

.about__image img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.gallery__item{
  display:block;
  overflow:hidden;
}
.gallery__item img{
  width: 100%;
  height: auto;
  display: block;
}

.side-notes{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 0 0 !important;
  margin: 0;
}

@media (min-width: 960px){
  .side-notes{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px){
  .cols--materials{ align-items: stretch; }
  .cols--materials .col--bottom{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
  }
}

.persp-cols{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 960px){
  .persp-cols{
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}
.persp-cols .p{ max-width: none; }

/* ======================================
   PRESENCE — layout
====================================== */
.presence-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 960px){
  .presence-grid{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    row-gap: 30px;
    column-gap: 22px;
    align-items: stretch;
  }

  .presence-title{
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin: 0;
  }

  .presence-left{
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .presence-right{
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    align-items: stretch;
  }

  .presence-right .figure{
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .presence-right .figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

.presence-title{ margin: 0; }

.presence-left .kicker{
  max-width: none;
  width: 100%;
}

.presence-left .swatches{
  margin-top: 14px;
  width: 100%;
}

@media (min-width: 960px){
  .presence-left .swatches{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .presence-left .swatch{
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 959px){
  .presence-left .swatches{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
}

.swatch{
  display:flex;
  align-items:center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 10px 12px;
  color: rgba(255,255,255,0.70);
  font-size: 14px;
}

.swatch span{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
}

/* ======================================
   FIGURE (generic)
====================================== */
.figure{
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.figure img{
  width: 100%;
  height: auto;
  display:block;
}

/* =====================================================
   WORK — gallery (container width, not full-bleed)
===================================================== */
#gallery .section-grid{ width: 100%; }

#gallery .gallery{
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  box-sizing: border-box;
}

@media (min-width: 960px){
  #gallery .gallery{ grid-template-columns: repeat(2, 1fr); }
}

#gallery .gallery__item{
  display: block;
  overflow: hidden;
  border-radius: 0px;
}

#gallery .gallery__item img{
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* ======================================
   BUTTON / CONTACT
====================================== */
.btn{
  display:inline-block;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 20px 60px rgba(9,62,30,0.25);
}
.btn:hover{
  text-decoration:none;
  opacity: .95;
  transform: translateY(-1px);
  transition: 160ms ease;
}

.btn--ghost{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  box-shadow: none;
}
.btn--ghost:hover{
  opacity: 1;
  transform: translateY(-1px);
  transition: 160ms ease;
}

.links{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.70);
}
.links a:hover{ text-decoration:none; color: rgba(255,255,255,0.92); }

.backtop{
  padding: 24px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.70);
}
.contact-clean{
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
}

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

/* =====================================================
   PRODUCT — toggle pill should look like the other pills
===================================================== */

/* Make the toggle look like a .btn */
.project__toggle{
  width: 100%;
  margin-top: 0;                 /* let the actions gap handle spacing */
  display: block;
  text-align: center;
  cursor: pointer;

  /* match .btn base look */
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  box-shadow: none;

  /* prevent weird layout shifts */
  box-sizing: border-box;
}

/* Hover like ghost pill (same as .btn--ghost hover) */
.project__toggle:hover{
  text-decoration: none;
  transform: none;               /* avoid overlap in stacks */
  opacity: 1;
}

/* Optional: “active/on” state to match your accent pill */
.project__toggle.is-on{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 20px 60px rgba(9,62,30,0.25);
}

/* Icon inside the toggle pill (minimal dot) */
.project__toggle-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  width: 100%;
}

.project__toggle-icon{
  display:grid;
  place-items:center;
  width: 10px;
  height: 10px;
}

.project__toggle-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.78;
  transition: opacity 200ms ease, transform 200ms ease, box-shadow 220ms ease;
}

/* ON: glow only on dot (button colors remain as defined above) */
.project__toggle.is-on .project__toggle-dot{
  opacity: 1;
  transform: scale(1.05);
  box-shadow:
    0 0 6px rgba(255,255,255,0.45),
    0 0 14px rgba(255,255,255,0.22);
}

/* ======================================
   REVEAL ANIMATION
====================================== */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .ticker__track{ animation: none; }
  .reveal { opacity: 1; transform: none; }
}

.js .reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   PROJECT DETAIL PAGE
====================================== */
.project{
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 90px;
  background: var(--bg);
}

.project__head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.project__back{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.project__back:hover{ text-decoration:none; color: rgba(255,255,255,0.92); }

.project__title{
  margin: 0;
  font-size: clamp(28px, 3.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.project__subtitle{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.72);
  max-width: 68ch;
}

.project__grid{
  margin-top: 22px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 980px){
  .project__grid{
    grid-template-columns: 1.25fr 0.75fr;
    align-items:start;
    gap: 26px;
  }
  .project__info{
    position: sticky;
    top: calc(var(--header-h) + 18px);
  }
}

.project__media{
  display:grid;
  gap: 12px;
}

.project__img{
  margin: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  border-radius: 0px;
}

.project__img img{
  width: 100%;
  height: auto;
  display:block;
  object-fit: cover;
}

/* info cards */
.project__info{
  display:grid;
  gap: 12px;
}

.project__card{
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 18px;
}

.project__label{
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.specs{
  margin-top: 12px;
  display:grid;
  gap: 10px;
}

.spec{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 10px;
}
.spec:last-child{ border-bottom: none; padding-bottom: 0; }

.spec__k{
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec__v{
  color: rgba(255,255,255,0.86);
  font-weight: 600;
  text-align: right;
}

.project__desc{
  margin-top: 12px;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 999999;
  padding: 24px;
}

.lightbox__img{
  max-width: min(1100px, 100%);
  max-height: 82vh;
  border-radius: 0px;
  border: 1px solid rgba(255,255,255,0.14);
}

.lightbox__close{
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
}

.lightbox[hidden]{ display:none; }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 999999;
}

/* =====================================================
   PRODUCT — action pills (clean + no overlap)
===================================================== */

.project__actions{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.project__actions .btn{
  width: 100%;
  display: block;
  text-align: center;
}

.project__actions .btn:hover{
  transform: none;
}

/* Light toggle active state */
.project__toggle.is-on{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 20px 60px rgba(9,62,30,0.25);
}


/* ======================================
   BLOG
   - Details accordion with (+ / —)
   - Editorial image wrap (float right on desktop)
====================================== */

.blog{
  padding-top: calc(var(--header-h) + 22px);
  padding-bottom: 90px;
}

.blog__head{
  padding: 22px 0 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.blog__title{
  margin: 0;
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.blog__lede{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.70);
  max-width: 70ch;
}

/* Entries */
.entries{
  padding-top: 22px;
  display: grid;
  gap: 30px;
}

.entry{
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.entry__meta{
  padding: 18px 18px 0;
  display:flex;
  gap: 10px;
  align-items:center;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry__tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}

.entry__title{
  margin: 10px 18px 0;
  font-size: clamp(20px, 2.2vw, 32px);
  letter-spacing: -0.03em;
}

.entry__lede{
  margin: 10px 18px 0;
  color: rgba(255,255,255,0.70);
  max-width: 78ch;
}

.entry__hero{
  margin: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.entry__hero img{
  width: 100%;
  height: auto;
  display:block;
}

/* Sections */
.entry__sections{
  padding: 18px;
  display:grid;
  gap: 10px;
}

.entry__panel{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.entry__summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}
.entry__summary::-webkit-details-marker{ display:none; }

.entry__summary-text{
  display: block;
  font-family: "LunaHeader", sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.25vw, 18px);
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(255,255,255,0.92);
}

/* Plus/minus icon via pseudo element */
.entry__summary::after{
  content:"+";
  width: 28px;
  height: 28px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  font-size: 16px;
}

.entry__panel[open] .entry__summary::after{
  content:"—";
}

/* Body */
.entry__body{
  padding: 14px 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* Editorial: float image on desktop, stack on mobile */
.entry__body--editorial{
  display:block;
}

.entry__media{
  margin: 0 0 14px 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
}
.entry__media img{
  width: 100%;
  height: auto;
  display:block;
}

/* ======================================
   BLOG — Editorial image wrap (clean)
====================================== */

/* allow float to work properly */
.entry__body--editorial{
  display: block;
}

/* Float image on desktop / tablet */
@media (min-width: 720px){
  .entry__media--float{
    float: right;
    width: clamp(240px, 40%, 360px);
    margin: 0 0 14px 22px;
  }
}

/* Stack image on mobile */
@media (max-width: 719px){
  .entry__media--float{
    float: none;
    width: 100%;
    margin: 0 0 14px 0;
  }
}

/* Clear float after wrapped content */
.entry__text--wrap::after{
  content: "";
  display: block;
  clear: both;
}

/* Paragraph styling */
.entry__p{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.70);
}

/* Important: allow text to use full available width next to image */
.entry__text--wrap .entry__p{
  max-width: none;
}

.entry__list{
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.72);
}

.entry__specs{
  margin-top: 16px;
  display: block;         /* key: allow float wrap like editorial text */
}

.entry__spec + .entry__spec{
  margin-top: 10px;       /* replaces grid gap */
}

.entry__spec{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 10px;
}
.entry__spec:last-child{ border-bottom:none; padding-bottom: 0; }

/* Ensure body text is not bold */
.entry__text{
  font-weight: 300;
}

/* Switch appearance of spec key/value */
.entry__spec-k{
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  text-align: right;
}
.entry__spec-v{
  color: rgba(255,255,255,0.62);
  font-weight: 300;
  text-align: left;
}

/* ======================================
   LEGAL PAGES (Datenschutz / Impressum)
====================================== */
body.legal{
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 90px;
}

.legal-main .container{
  width: min(100% - 44px, 860px);
}

body.legal h1{
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 56px);
  letter-spacing: -0.04em;
}

body.legal h2{
  margin: 28px 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

body.legal p{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

/* ======================================
   FOOTER (simple)
====================================== */
.footer{
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.70);
  font-size: 14px;
}

.footer__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer__links{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__links a{
  color: rgba(255,255,255,0.70);
}

.footer__links a:hover{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}

/* =====================================================
   PRODUCT — force 2×2 image grid on desktop
   (add at END of style.css so it overrides safely)
===================================================== */
.project__media{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 719px){
  .project__media{
    grid-template-columns: 1fr;
  }
}

/* Footer Fix Make sure the hero never shines through at the bottom */

.footer{
  background: #000;
}

/* Index: prevent hero showing through below the article */
.stack .main{
  padding-bottom: 0;
}

/* LANGUAGE SWITCH (make buttons visible) */
/* LANGUAGE SWITCH (links, not JS buttons) */
.lang-switch{
  display:flex;
  gap: 10px;
  align-items:center;
}

.lang-switch .lang-btn{
  display:inline-block;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.lang-switch .lang-btn:hover{
  border-color: rgba(255,255,255,0.6);
  text-decoration: none;
}
