/* ==========================================================================
   Ahmad Ikhlas | ahmadikhlas.com
   One-page site. Palette lifted from the "Jamairabic" pattern:
   Jamaican gold, green and black, warmed with cream and a stage-light ember.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --ink: #0e0f0b;          /* page background, near black with a green cast */
  --ink-2: #16180f;        /* raised panels */
  --ink-3: #20231a;        /* borders and wells */
  --cream: #f3ead7;        /* main text */
  --cream-dim: #bdb5a2;    /* secondary text */
  --gold: #f4c430;         /* primary accent */
  --gold-deep: #c99a12;
  --green: #1f9d47;        /* secondary accent */
  --ember: #e0532f;        /* used sparingly, like stage light */

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-quote: "Fraunces", Georgia, serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- 3. Type helpers ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .95;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  margin: 0 0 .35em;
}
.kicker {
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .7rem;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.kicker-dark { color: var(--ink); }
.kicker-dark::before { background: var(--ink); }
.lead { font-size: 1.18em; color: #fff; font-weight: 500; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-sub { color: var(--cream-dim); margin: 0; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 800; font-size: .92rem; letter-spacing: .04em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: rgba(243, 234, 215, .45); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.play-dot {
  width: 0; height: 0;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.site-header.is-scrolled {
  background: rgba(14, 15, 11, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--ink-3);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 128px; transition: width .3s; }
.is-scrolled .brand img { width: 104px; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.site-nav a {
  color: var(--cream); text-decoration: none;
  font-weight: 700; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--gold); transition: right .3s var(--ease);
}
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.site-nav .nav-cta { background: var(--gold); color: var(--ink); padding: 8px 18px; border-radius: 999px; }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: #fff; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--cream);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(56px, 8vw, 110px);
  isolation: isolate;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 30% 30%; animation: heroZoom 18s var(--ease) both; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(270deg, rgba(14,15,11,.96) 0%, rgba(14,15,11,.82) 32%, rgba(14,15,11,.1) 62%, rgba(14,15,11,0) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(14,15,11,0) 30%);
}
.hero-content { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hero-content > * { max-width: 560px; }
.eyebrow {
  font-weight: 800; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.2rem;
}
.eyebrow span { color: var(--green); margin: 0 .4em; }
.hero h1 { margin: 0 0 1.4rem; width: 100%; }
.hero-logo { width: 100%; max-width: 540px; margin-left: auto; filter: drop-shadow(0 6px 30px rgba(0,0,0,.45)); }
.hero-lede { font-size: 1.15em; color: var(--cream); margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- 7. Ticker strip ---------- */
.ticker {
  background: var(--gold);
  color: var(--ink);
  overflow: hidden;
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--ink-3);
}
.ticker-track {
  display: flex; width: max-content; align-items: center;
  animation: ticker 32s linear infinite;
  padding: 14px 0;
}
.ticker span { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); text-transform: uppercase; padding: 0 22px; white-space: nowrap; }
.ticker i { font-style: normal; color: var(--green); font-size: 1.1rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 8. About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-media { position: relative; padding: 0 0 70px 0; }
.about-main { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; }
.about-inset {
  position: absolute; right: -24px; bottom: 0;
  width: 42%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--ink);
  box-shadow: 0 0 0 3px var(--gold);
}
.about-copy p { color: var(--cream-dim); }
.about-copy strong { color: var(--cream); }

.pull {
  margin: 2rem 0;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--gold);
}
.pull p { font-family: var(--f-quote); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; color: #fff; margin: 0; }

.facts { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts li { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 18px 16px; }
.fact-num { display: block; font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--gold); }
.fact-label { display: block; font-size: .8rem; color: var(--cream-dim); margin-top: 6px; line-height: 1.35; }

/* ---------- 9. Pattern backgrounds (the Jamairabic tile) ---------- */
.pattern-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/pattern.jpg") repeat center / 220px auto;
}
.pattern-faint { opacity: .06; filter: grayscale(1); }

/* ---------- 10. Featured video ---------- */
.featured { position: relative; isolation: isolate; padding: clamp(64px, 9vw, 120px) 0; color: var(--ink); }
.featured::before {
  /* gold wash over the pattern so text stays legible */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(244,196,48,.97) 0%, rgba(244,196,48,.93) 45%, rgba(244,196,48,.6) 100%);
}
.featured-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.featured .display { color: var(--ink); }
.featured-copy p { font-weight: 500; font-size: 1.08em; }

/* ---------- 11. Video facades ---------- */
.video-frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background: #000;
  cursor: pointer;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; opacity: .85; }
.video-frame:hover img { transform: scale(1.04); opacity: 1; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame-lg { box-shadow: 0 30px 60px -20px rgba(14,15,11,.6); border: 4px solid var(--ink); }

.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gold); border: 0;
  display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(244,196,48,.6);
  transition: transform .25s var(--ease), background .25s;
  animation: pulse 2.6s infinite;
}
.play-btn span { width: 0; height: 0; margin-left: 5px; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.video-frame:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.video-frame-lg .play-btn { background: var(--ink); width: 88px; height: 88px; }
.video-frame-lg .play-btn span { border-left-color: var(--gold); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,196,48,.55); } 70% { box-shadow: 0 0 0 18px rgba(244,196,48,0); } 100% { box-shadow: 0 0 0 0 rgba(244,196,48,0); } }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.video-card h3 { font-size: 1.05rem; margin: 14px 0 2px; line-height: 1.3; }
.video-card h3 em { font-style: normal; color: var(--cream-dim); font-weight: 500; }
.video-card p { margin: 0; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.more-link { margin-top: 40px; font-weight: 700; }

/* ---------- 12. Listen ---------- */
.listen { background: var(--ink-2); border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); }
.listen-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.sc-wrap { border-radius: var(--radius); overflow: hidden; background: #fff; }
.sc-player { display: block; width: 100%; height: 450px; border: 0; }

.podcast {
  display: grid; gap: 4px; margin-top: 32px;
  padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green), #146b30);
  color: #fff; text-decoration: none;
  transition: transform .25s var(--ease);
}
.podcast:hover { transform: translateY(-3px); color: #fff; }
.podcast-tag { font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.podcast-title { font-family: var(--f-display); font-size: 1.8rem; text-transform: uppercase; line-height: 1.1; }
.podcast-cta { font-weight: 700; font-size: .9rem; }

/* ---------- 13. Stages ---------- */
.stages-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.stages-photo { margin-top: 36px; border-radius: var(--radius); width: 78%; aspect-ratio: 3 / 4; object-fit: cover; }
.stage-list { list-style: none; counter-reset: stage; margin: 0; padding: 0; border-top: 1px solid var(--ink-3); }
.stage-list li {
  counter-increment: stage;
  display: grid; grid-template-columns: 54px 1fr auto; align-items: baseline; gap: 12px;
  padding: 22px 4px; border-bottom: 1px solid var(--ink-3);
  transition: background .25s, padding .25s var(--ease);
}
.stage-list li::before { content: counter(stage, decimal-leading-zero); font-family: var(--f-display); color: var(--green); font-size: 1.1rem; }
.stage-list li:hover { background: var(--ink-2); padding-left: 14px; }
.stage-where { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.15; }
.stage-when { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-align: right; }

/* ---------- 14. Gallery ---------- */
.masonry { column-count: 3; column-gap: 16px; }
.m-item { display: block; margin: 0 0 16px; border-radius: 10px; overflow: hidden; break-inside: avoid; position: relative; }
.m-item img { width: 100%; transition: transform .6s var(--ease), filter .4s; filter: saturate(.92); }
.m-item:hover img { transform: scale(1.04); filter: saturate(1.1); }
.m-item::after {
  content: "+"; position: absolute; right: 12px; bottom: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem;
  opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s var(--ease);
}
.m-item:hover::after { opacity: 1; transform: scale(1); }

/* ---------- 15. Book / contact ---------- */
.book { isolation: isolate; overflow: hidden; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.book-copy p { color: var(--cream-dim); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--ink-3); }
.contact-list span { font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.contact-list a { font-size: 1.2rem; font-weight: 700; text-decoration: none; }

.book-form { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3.5vw, 40px); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.field small { color: var(--cream-dim); font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  background: var(--ink); color: var(--cream);
  border: 1px solid var(--ink-3); border-radius: 10px;
  font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6f6a5d; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,196,48,.18); }
.field .is-invalid { border-color: var(--ember); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--ember); }

/* ---------- 16. Footer ---------- */
.site-footer { border-top: 4px solid var(--gold); padding: 56px 0 40px; background: #0a0b08; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-logo { width: 150px; opacity: .9; }
.socials { list-style: none; display: flex; gap: 12px; padding: 0; margin: 0; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--ink-3); color: var(--cream);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }
.credits { color: var(--cream-dim); font-size: .85rem; margin: 0; }

/* ---------- 17. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 9, 6, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 16px;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: min(1100px, 100%); max-height: 100%; border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--cream);
  font-size: 2.6rem; line-height: 1; width: 56px; height: 56px;
}
.lightbox button:hover { color: var(--gold); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- 18. Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 980px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 2; }
  .featured-inner, .listen-grid, .stages-grid, .about-grid, .book-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .stages-photo { display: none; }
}

@media (max-width: 760px) {
  /* Mobile navigation drawer */
  .nav-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(14, 15, 11, .98);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .site-nav a { font-size: 1.3rem; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }

  /* Hero stacks: photo on top, words below */
  /* photo fills the top of the screen, words sit underneath it */
  .hero { min-height: 0; display: block; padding: 56vh 0 56px; }
  .hero-media, .hero-media img { height: 66vh; bottom: auto; }
  .hero-media img { object-position: 38% 22%; }
  .hero-shade { height: 66vh; bottom: auto; background: linear-gradient(0deg, var(--ink) 0%, rgba(14,15,11,.7) 22%, rgba(14,15,11,0) 55%, rgba(14,15,11,.35) 100%); }
  .eyebrow { letter-spacing: .16em; font-size: .72rem; }
  .hero-content { align-items: flex-start; text-align: left; }
  .hero-logo { margin-left: 0; max-width: 340px; }
  .hero-actions { justify-content: flex-start; }

  .about-inset { right: 0; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .facts li { padding: 14px 10px; }
  .fact-num { font-size: 2rem; }
  .sc-player { height: 380px; }
  .stage-list li { grid-template-columns: 40px 1fr; }
  .stage-when { grid-column: 2; text-align: left; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 520px) {
  .video-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
  .brand img { width: 108px; }
}

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
