/*
Theme Name: bw-web-base-v1
Theme URI: https://bradymwilson.com
Author: Brady Wilson + ChatGPT
Author URI: https://bradymwilson.com
Description: A fast, animated portfolio theme with a custom Project post type, filterable grid, and tasteful motion.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bw-web-base-v1
Tags: portfolio, responsive, grid, animation
*/

:root{
  --bw-primary:#00594c;
  --bw-bg:#00594c;
  --bw-surface:#00594c;
  --bw-text:#ffffff;
  --bw-muted:#ffffff;
  --bw-accent:#00594c;
  --bw-radius:16px;
  --bw-gap:20px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:#00594C;
  color:var(--bw-text);
}
.content, h1, h2, h3, h4, h5, h6, p{font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"}
/* Headings: Montserrat Bold */
h1, h2, h3, h4, h5, h6{font-weight:700}
/* Paragraphs: Montserrat Regular */
p{font-weight:400}
/* Other text elements inherit Montserrat */
ul, ol, li, blockquote, figure, figcaption, label, a, small{font-family: inherit}
/* Form controls use site font */
input, textarea, select, button{font: inherit}
.container{width:min(1100px, 92vw); margin:0 auto; padding:0 0 60px}
header.site-header{position:sticky; top:0; z-index:1000; background:#00594C; backdrop-filter: blur(8px); border-bottom:1px solid #00594C}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand a{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--bw-text); font-weight:700; letter-spacing:.3px}
.brand .dot{width:10px; height:10px; border-radius:50%; background:var(--bw-primary); display:inline-block}
.menu{display:flex; gap:18px}
.menu a{color:var(--bw-muted); text-decoration:none; font-weight:600}
.menu a:hover{color:var(--bw-text)}
.hero{padding:64px 0 32px; text-align:center}
.hero h1{font-size: clamp(32px, 5vw, 56px); line-height:1.06; margin:10px 0}
.hero p{color:var(--bw-muted); font-size: clamp(16px, 2.4vw, 18px)}
.hero .cta{margin-top:24px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap}
.social-links{display:flex; gap:12px; justify-content:center; align-items:center; margin:14px 0}
.social-links .social-btn{display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:999px; border:1px solid rgba(255,255,255,.6); color:#ffffff; text-decoration:none; background:transparent; transition: background .2s ease, transform .2s ease}
.social-links .social-btn:hover{background: rgba(255,255,255,.15); transform: translateY(-1px)}
.social-links .social-btn:focus-visible{outline:2px solid #fff; outline-offset:2px}
.social-links .social-btn svg{display:block}
.social-links .social-btn img{display:block; width:20px; height:20px}
.hero-avatar{width:140px; height:140px; border-radius:50%; object-fit:cover; display:block; margin:18px auto 0; border:0; box-shadow:0 6px 16px rgba(0,0,0,.25)}
.button{display:inline-flex; align-items:center; gap:8px; padding:12px 18px; border-radius: var(--bw-radius); border:1px solid #00594C; background:#00594C; color:var(--bw-text); text-decoration:none; font-weight:700}
.button.primary{ background:#00594C; border-color:#00594C}
.section{padding: 36px 0 0}
.section h2{font-size: clamp(24px, 3.5vw, 32px); margin:0 0 8px}
.section p.lead{color:var(--bw-muted); margin:0 0 24px}
.grid{display:grid; grid-template-columns: repeat( auto-fill, minmax(260px, 1fr)); gap: var(--bw-gap)}
.card{position:relative; overflow:hidden; border-radius: var(--bw-radius); background:#00594C; border:1px solid #00594C; transform: translateZ(0)}
.card .thumb{aspect-ratio:16/10; width:100%; object-fit:cover; display:block; filter:saturate(1.05) contrast(1.05)}
.card .content{padding:14px 14px 16px}
.card h3{margin:0 0 6px; font-size:18px}
.card .meta{font-size:13px; color:var(--bw-muted)}
.card .tags{margin-top:10px; display:flex; gap:8px; flex-wrap:wrap}
.tag{font-size:12px; color:#ffffff; background:var(--bw-accent); border-radius:999px; padding:6px 10px; font-weight:700}
.site-footer{padding:40px 0; color:var(--bw-muted); text-align:center; font-size:14px}
.reveal{opacity:0; transform: translateY(14px)}
.reveal.in{opacity:1; transform:none; transition: opacity .65s cubic-bezier(.2,.65,.2,1), transform .65s cubic-bezier(.2,.65,.2,1)}
.card:hover{transform: translateY(-2px)}
.card:hover .thumb{filter:saturate(1.1) contrast(1.07)}
a.skip-link{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden}
a.skip-link:focus{position:static; width:auto; height:auto; padding:10px; background:#00594C; color:#fff; z-index:9999}
/* Video styling */
/* Scroll video container (no mist) */
.scroll-video{position:relative; width:100%; aspect-ratio:16/9; border-radius: var(--bw-radius); overflow:hidden}
.scroll-video video{opacity:0; transform:scale(.985); transition: opacity .35s ease, transform .35s ease; pointer-events:none}
.scroll-video.video-visible video{opacity:1; transform:none; pointer-events:auto}

video.hero-video{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  max-width:100%;
  border-radius: var(--bw-radius)
}

/* Exploration Journey Timeline */
#exploration-journey-timeline{margin-top:28px}
#exploration-journey-timeline h2{margin:0 0 12px}
.ejt-rail-wrap{position:relative}
.ejt-rail{position:absolute; left:0; right:0; top:50%; height:3px; transform:translateY(-50%); background:linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.16), rgba(255,255,255,.08)); border-radius:999px; pointer-events:none; z-index:0}
.ejt-scroll{position:relative; z-index:1; display:grid; grid-auto-flow:column; grid-auto-columns: clamp(320px, 78vw, 420px); gap:20px; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scroll-padding-inline:20px; padding:24px 12px; -webkit-overflow-scrolling:touch}
.ejt-scroll:focus{outline:2px dashed rgba(255,255,255,.6); outline-offset:4px}
.ejt-item{position:relative; scroll-snap-align:center; display:flex; align-items:center; justify-content:center}
.ejt-card{position:relative; background: var(--bw-surface); border:1px solid rgba(255,255,255,.18); border-radius: var(--bw-radius); padding:16px; color:var(--bw-text); min-height:160px; box-shadow:0 4px 14px rgba(0,0,0,.22)}
.ejt-title{margin:0 0 6px; font-size:18px}
.ejt-dates{color: var(--bw-muted); font-size:13px; margin-bottom:10px}
.ejt-points{margin:0; padding-left:18px}
.ejt-points li{margin:4px 0}

/* Timeline arrow controls */
.ejt-nav{position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:40px; height:40px; border-radius:999px; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.12); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; backdrop-filter:saturate(120%) blur(4px)}
.ejt-prev{left:4px}
.ejt-next{right:4px}
.ejt-nav:hover{background:rgba(255,255,255,.18)}
.ejt-nav:focus-visible{outline:2px solid #fff; outline-offset:2px}

/* Reveal animation defaults */
.ejt-card{opacity:0; transform: translateX(24px); will-change: opacity, transform; transition: opacity .6s cubic-bezier(.2,.65,.2,1), transform .6s cubic-bezier(.2,.65,.2,1); transition-delay: var(--ejt-delay, 0ms)}
.ejt-item.in-view .ejt-card{opacity:1; transform:none}

@media (prefers-reduced-motion: reduce){
  .ejt-card{opacity:1; transform:none; transition:none}
}
