/* ===== Base ===== */
:root{
  --bg: #0b0b0e;
  --fg: #f3f3f6;
  --muted: rgba(243,243,246,0.75);
  --shadow: rgba(0,0,0,0.55);
  --maxw: 1100px;
  --pad: clamp(16px, 3vw, 32px);
  --title: clamp(44px, 8vw, 108px);
  --quote: clamp(28px, 4.4vw, 36px);
  --subtitle: clamp(14px, 2.2vw, 18px);
  --radius: 18px;
  --stairsOpacity: 0.16;
}

/* nice default */
*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* ===== Layout ===== */
.hero{
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}

.hero::before{
  /* background photo */
  content:"";
  position:absolute; inset:0;
  background-image: var(--hero);
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) saturate(0.95);
  transform: scale(1.02);
}

.hero::after{
  /* dark vignette overlay */
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 800px at 50% 45%, rgba(0,0,0,0.15), rgba(0,0,0,0.75)),
    linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.70));
}

/* ===== Stairs motif (pure CSS) ===== */
.motif{
  position:absolute; inset:0;
  pointer-events:none;
  opacity: var(--stairsOpacity);
  mix-blend-mode: screen;
  /* “stair steps” using layered gradients */
  background:
    /* step edges */
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.22) 0px,
      rgba(255,255,255,0.22) 2px,
      rgba(255,255,255,0.0) 2px,
      rgba(255,255,255,0.0) 64px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.18) 0px,
      rgba(255,255,255,0.18) 2px,
      rgba(255,255,255,0.0) 2px,
      rgba(255,255,255,0.0) 64px
    );
  /* shift the grid to feel like a “stairwell plan” */
  transform: perspective(900px) rotateX(55deg) rotateZ(-12deg) translateY(12%) scale(1.2);
  filter: blur(0.2px);
  pointer-events: none;
}

.content{
  position: relative;
  width: min(var(--maxw), 100%);
  padding: var(--pad);
  text-align: center;
  z-index: 5;
}

.quo{
  margin: 14px auto 0;
  max-width: 58ch;
  font-size: var(--quote);
  /*color: var(--muted);*/
  text-shadow: 0 6px 24px var(--shadow);
}

.smallNav {
  position: absolute;
  top: 10%;
  left: 10%;
  z-index: 10;
}

.title{
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--title);
  line-height: 0.9;
  text-shadow: 0 10px 40px var(--shadow);
}

.sub{
  margin: 14px auto 0;
  max-width: 58ch;
  font-size: var(--subtitle);
  color: var(--muted);
  text-shadow: 0 6px 24px var(--shadow);
}

.nav{
  margin-top: 22px;
  display:flex;
  justify-content:center;
  gap: 16px;
  flex-wrap: wrap;
}

a.btn{
  color: var(--fg);
  text-decoration:none;
  border: 1px solid rgba(243,243,246,0.28);
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.18);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
a.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(243,243,246,0.50);
  background: rgba(0,0,0,0.28);
}

footer{
  position:absolute;
  left:0; right:0; bottom: 14px;
  text-align:center;
  z-index:2;
  font-size: 12px;
  color: rgba(243,243,246,0.55);
}

/* ===== About page tweaks ===== */
.aboutCard{
  margin: 0 auto;
  max-width: 820px;
  text-align: left;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(243,243,246,0.18);
  border-radius: var(--radius);
  overflow:hidden;
  backdrop-filter: blur(10px);
}

.aboutGrid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
}
@media (max-width: 860px){
  .aboutGrid{ grid-template-columns: 1fr; }
}

.aboutImg{
  min-height: 360px;
  background-image: var(--about);
  background-size: cover;
  background-position: center;
}

.aboutText{
  padding: clamp(16px, 2.8vw, 26px);
}

.quote{
  margin: 0;
  font-size: clamp(18px, 2.6vw, 26px);
  line-height: 1.35;
}
.sig{
  margin-top: 10px;
  color: rgba(243,243,246,0.72);
}

.smallNav{
  margin-top: 18px;
}

/* ===== Gallery grid ===== */
.gallery{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
}

@media (max-width: 900px){
  .gallery{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
}

.thumb{
  border: 1px solid rgba(243,243,246,0.18);
  background: rgba(0,0,0,0.20);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.thumb:hover{
  transform: translateY(-1px);
  border-color: rgba(243,243,246,0.40);
  background: rgba(0,0,0,0.28);
}
.thumb img{
  display:block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* prevent scrolling when modal is open */
.noScroll{ overflow: hidden; }

/* ===== Modal ===== */
.modal{
  border: 1px solid rgba(243,243,246,0.18);
  border-radius: 16px;
  padding: 16px;
  background: rgba(10,10,14,0.92);
  color: var(--fg);
  max-width: min(920px, 92vw);
  width: 92vw;
  overflow: hidden;

  /* important: make absolute close button position against dialog */
  position: relative;
}

.modal::backdrop{
  background: rgba(0,0,0,0.72);
}

.modalFigure{
  margin: 0;
  display: flex;
  flex-direction: column; /* caption then image */
  gap: 12px;
}

/* caption at top */
.modalFigure figcaption{
  margin: 0;
  color: rgba(243,243,246,0.78);
  font-size: 14px;
  line-height: 1.45;
}

/* modal image: don't inherit thumbnail constraints */
.modalFigure img,
#modalImg{
  width: 100%;
  height: auto !important;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(243,243,246,0.14);
}

/* Close button */
.modalClose{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(243,243,246,0.22);
  background: rgba(0,0,0,0.22);
  color: var(--fg);
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
}
.modalClose:hover{
  border-color: rgba(243,243,246,0.45);
  background: rgba(0,0,0,0.32);
}