/*
Theme Name: Bear Grove
Author: Bear Grove
Version: 0.2.1
Text Domain: bear-grove
*/

:root{
  --bg: #0b0c0f;
  --white: rgba(255,255,255,0.95);
  --white-70: rgba(255,255,255,0.7);
  --stroke: rgba(255,255,255,0.18);
  --radius: 18px;
  --topbar-h: 72px;
  --bottombar-h: 88px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

.container{
  margin: 0 auto;
}




.site-topbar{
  position: fixed;
  top: calc(env(safe-area-inset-top) + 14px);
  left: 20px;
  right: 20px;
  z-index: 50;
  pointer-events: none;
}

.site-topbar .topbar-inner{
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--topbar-h);
  padding: 0 8px 0 18px;
}

@media (max-width: 440px){
  .site-topbar{
    top: env(safe-area-inset-top);
  }
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand .logo{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand .logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand .name{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 20px;
	font-weight: bold;
  letter-spacing: 4px;
}

.site-nav{ margin-left: auto; }

.site-nav ul{
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.site-nav a{
  font-size: 14px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  padding: 10px 10px;
  border-radius: 12px;
}

.site-nav a:hover,
.site-nav a:focus{
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.08);
}

/* iOS Safari viewport fix */
.home-rail{
  height: 100dvh;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
	position:relative;

  /* This replaces padding-top 
  scroll-padding-top: calc(env(safe-area-inset-top) + var(--topbar-h) + 24px);*/
}
@media (max-width: 440px) {
.home-rail{
border-radius: 24px;
}

body{
background: #000;
}
}

.home-section{
  height: 100dvh;
  scroll-snap-align: start;
	position: relative;
}


@supports not (height: 100dvh) {
  .home-rail{ height: 100vh; }
  .home-section{ height: 100vh; }
}


.home-section .media{ position: absolute; inset: 0; }

.home-section img,
.home-section video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-section::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 40%),
              linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.45));
  pointer-events: none;
}

.section-bottom{
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 18px 34px 18px;
  opacity: 1;
  transition: opacity 120ms linear;
}

.project-title{
  font-size: 95px;
  font-weight: 800;
  letter-spacing: 0.2px;
	text-transform: uppercase;
	line-height: 85px;
}

.project-title .title-first{
  color: rgba(255, 255, 255, 0.55);
}

.project-title .title-rest{
  color: rgba(255, 255, 255, 0.95);
}


.project-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
	margin-bottom: 0px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 120ms linear, transform 120ms linear, border-color 120ms linear;
}

.project-cta:hover,
.project-cta:focus{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.26);
  transform: translateX(6px);
}

.project-cta:focus{
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 4px;
}


.arrow{ width: 22px; height: 22px; display: block; }
.home-rail.safe-top-space{
  padding-top: calc(env(safe-area-inset-top) + var(--topbar-h) + 32px);
}


@media (max-width: 440px){
	.site-topbar {top:0px;}
	.brand{ min-width: unset; }
	.brand .name { font-size: 0; letter-spacing:0px;}
	.brand .name::after { content: "B"; font-size: 16px;  }
	.site-nav ul{ gap: 10px; }
	.site-nav a{ padding: 10px 8px; }
	.project-title{ font-size: 45px;line-height: 50px; }
	.project-hero{border-radius: 24px 24px 0 0;}
}


/* Project template */
.project-hero{
  position: relative;
  height: 55vh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}

.project-hero-media{ position: absolute; inset: 0; }

.project-hero img,
.project-hero video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.75));
  pointer-events:none;
}

.project-hero-overlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 38px 26px;
  z-index: 2;
}

.project-title-xl{
  margin: 0;
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: 0.2px;
}

.project-meta{ margin-top: 12px; }

.project-back{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}

.project-back:hover,
.project-back:focus{ background: rgba(255,255,255,0.14); }

.project-body{ padding: 34px 38px 90px; }

.project-content{
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  font-size: 16px;
}

.project-content h2,
.project-content h3{ line-height: 1.25; }

.project-content a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.more-projects{
  padding: 22px 38px 46px;
}

.more-projects-title{
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.7);
}

.more-projects-rail{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.more-project-card{
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}

.more-project-thumb{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.more-project-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.more-project-thumb-fallback{
  display: block;
  width: 100%;
  height: 100%;
}

.more-project-name{
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.9);
}

.more-project-card:focus{
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 4px;
}

