/* JAwendo palette: black, warm dark brown, one olive accent (Brand_Identity.md). */
:root {
  --bg: #0b0908;
  --surface: #2c201c;
  --surface-2: #1a1412;
  --text: #f2eeea;
  --muted: #b0b0b0;
  --olive: #608424;
  --olive-text: #9cc25a; /* lighter olive for text on dark, keeps contrast */
  --line: #3a2d28;
  --radius: 8px;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(11, 9, 8, .85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.mark { font-weight: 700; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; font-size: 14px; }
.top nav { display: flex; gap: clamp(12px, 3vw, 28px); font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a:focus-visible { color: var(--text); }

.kicker {
  margin: 0 0 6px; color: var(--olive-text);
  font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 24px; }
h3 { font-size: 16px; margin: 24px 0 6px; }

.hero {
  position: relative; min-height: min(86vh, 760px);
  display: flex; align-items: flex-end; overflow: hidden;
  padding: 0 var(--gutter) clamp(32px, 8vh, 72px);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .45;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 8%, rgba(11, 9, 8, .3) 60%, rgba(11, 9, 8, .6));
}
.hero-text { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { font-size: clamp(40px, 8vw, 84px); letter-spacing: -.01em; }
.headline { font-size: clamp(17px, 2.4vw, 22px); font-weight: 600; margin: 10px 0 2px; }
.subline { color: var(--muted); margin: 0 0 16px; }
.intro { max-width: 620px; margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--olive); color: #fff; font-weight: 600; text-decoration: none; font-size: 15px;
}
.btn.ghost { background: transparent; border: 1px solid var(--muted); }
.btn:hover, .btn:focus-visible { filter: brightness(1.12); }

.section { padding: clamp(48px, 9vh, 96px) var(--gutter); max-width: 1280px; margin: 0 auto; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; text-align: left; color: inherit; font: inherit; padding: 0;
  transition: border-color .2s, transform .2s;
}
.card:hover, .card:focus-visible { border-color: var(--olive); transform: translateY(-2px); outline: none; }
.card .media { aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.card video, .card img { width: 100%; height: 100%; object-fit: cover; }
.card .info { padding: 16px 18px 18px; }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .count { color: var(--olive-text); font-size: 12px; font-weight: 600; margin-top: 8px; }

.photo-group { margin-bottom: 40px; }
.photo-group h3 { margin: 0 0 2px; font-size: 18px; }
.photo-group .note { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }
.photos button {
  padding: 0; border: 0; background: #000; cursor: zoom-in; border-radius: 6px; overflow: hidden;
  aspect-ratio: 4 / 5;
}
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photos button:hover img, .photos button:focus-visible img { transform: scale(1.03); }

.about-cols { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr; }
.about p { margin: 0 0 16px; max-width: 640px; }
.tool-group { margin-bottom: 18px; }
.tool-group h3 { margin: 0 0 8px; font-size: 13px; color: var(--olive-text); text-transform: uppercase; letter-spacing: .1em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); }

.contact .links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.contact .links a {
  display: inline-block; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 500;
}
.contact .links a:hover, .contact .links a:focus-visible { border-color: var(--olive); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 24px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
}

dialog {
  border: 0; padding: 0; background: var(--surface-2); color: var(--text);
  width: min(1100px, 100vw - 24px); max-height: calc(100dvh - 24px); border-radius: var(--radius);
}
dialog::backdrop { background: rgba(0, 0, 0, .82); }
.close {
  position: sticky; top: 8px; float: right; margin: 8px 8px 0 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 26px; line-height: 1;
}
.pd-body { padding: clamp(18px, 4vw, 40px); }
.pd-body > p { max-width: 760px; }
.pd-video { margin: 22px 0; }
.pd-video video { width: 100%; max-height: 78dvh; background: #000; border-radius: 6px; margin: 0 auto; }
.pd-video.vertical video { width: auto; max-width: 100%; }
.pd-video p { margin: 8px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.pd-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 20px 0 0; font-size: 14px; }
.pd-meta dt { color: var(--olive-text); font-weight: 600; }
.pd-meta dd { margin: 0; color: var(--muted); }

#lightbox { background: #000; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
#lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 16px; }
#lightbox img { max-height: calc(100dvh - 120px); object-fit: contain; }
#lightbox figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }
#lightbox .close { position: absolute; top: 12px; right: 12px; float: none; margin: 0; }
#lightbox .nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px;
}
#lightbox .prev { left: 10px; }
#lightbox .next { right: 10px; }

@media (max-width: 760px) {
  .about-cols { grid-template-columns: 1fr; }
  .top nav a:nth-child(2) { display: none; } /* keep the bar to one line on phones */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .photos img { transition: none; }
}
