/* --------- Design tokens --------- */
:root{
  --bg: #0a0a0a;
  --bg-2:#121212;
  --text:#e8e8e8;
  --muted:#c0c0c0;
  --brand:#e7e2d9;
  --accent:#b89f6b;
  --card:#151515;
  --border:#242424;
  --maxw:1120px;
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.3);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Utilities */
.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 20px}
.section{padding:80px 0}
.section.bg-contrast{background:var(--bg-2)}
.section-head{max-width:900px;margin:0 auto 40px}
.section-head .eyebrow{letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:600}
.lede{color:var(--muted)}
a{color:silver;text-decoration:none}
a:hover{color:#ddd}

.stack{display:flex;flex-direction:column}
.gap-l{gap:18px}
.sr-only{position:absolute;left:-9999px;height:1px;width:1px;overflow:hidden}


.hero-inner{position:relative; z-index:2}
/* Header / Nav */
.site-header{position:fixed;top:0;left:0;right:0;width:100%;z-index:100;}
.brand{display:flex;align-items:center;text-decoration:none;color:var(--text);gap:10px}
.brand-text{font-weight:800;letter-spacing:.4px}

.site-nav{display:flex;gap:22px;align-items:center}
.site-nav a{color:var(--text);opacity:.9}
.site-nav a.cta{padding:8px 14px;border:1px solid var(--border);border-radius:999px}
.site-nav a:hover{opacity:1}

.nav-toggle{display:none;align-items:center;justify-content:center;gap:4px;border:1px solid var(--border);border-radius:10px;background:transparent;color:var(--text);padding:10px 12px}
.nav-toggle .bar{display:block;width:18px;height:2px;background:var(--text);margin:2px 0}

/* Hero */
.hero{position:relative;min-height:78vh;display:flex;align-items:center}
.hero-media{
  position:absolute;inset:0;
  background:
    url('assets/services.jpg'),
    radial-gradient(1000px 500px at 20% 30%, rgba(184,159,107,.18), transparent 60%),
    radial-gradient(700px 400px at 80% 70%, rgba(231,226,217,.10), transparent 60%),
    linear-gradient(120deg, #111 0%, #0a0a0a 60%);
  background-size: cover, auto, auto, auto;
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
 z-index:0;}
.hero-overlay{
  position:absolute;inset:0;
  /* Stronger darkening to improve text contrast */
  background:
    linear-gradient(0deg, rgba(0,0,0,0.48), rgba(0,0,0,0.48)),
    linear-gradient(180deg, rgba(0,0,0,.00), rgba(0,0,0,.35));
  z-index:1;
  pointer-events:none;
}
.hero-grid{display:grid;grid-template-columns: 120px 1fr;gap:40px;align-items:center}
.hero-vertical{display:flex;flex-direction:column;gap:4px;align-items:center;opacity:.8}
.hero-vertical span{font-weight:800;font-size:24px;letter-spacing:.08em}
.hero-copy h1{font-size: clamp(40px, 6vw, 72px);margin:0 0 10px}
.hero-copy p{color:var(--muted);max-width:700px;margin:0 0 20px}
.hero-actions{display:flex;gap:12px}
.btn{display:inline-block;padding:12px 18px;border-radius:14px;background:var(--accent);color:#111;font-weight:700;text-decoration:none}
.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--border)}
.btn.small{padding:8px 12px;border-radius:10px;font-weight:600}

/* About grid */
.grid-two{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:center}
.img-ratio{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--card);border:1px solid var(--border)}
.img-ratio::before{content:"";display:block;padding-top:62%}
.img-ratio>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}

/* Checklist */
.checklist{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.checklist li{padding-left:26px;position:relative}
.checklist li::before{content:"";position:absolute;left:0;top:8px;width:14px;height:14px;border-radius:50%;border:2px solid var(--accent)}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transform:translateY(0);transition:transform .25s ease}
.card:hover{transform:translateY(-4px)}
.card-media{border-bottom:1px solid var(--border)}
.card-body{padding:16px}
.card h3{margin:0 0 6px}

/* Contact */
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.contact-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px}
.copy-row{display:flex;align-items:center;gap:10px}
code{background:#0b0b0b;border:1px solid var(--border);padding:6px 8px;border-radius:10px}

/* Footer */
.site-footer{border-top:1px solid var(--border);padding:20px 0;background:#0a0a0a}
.footer-inner{display:flex;justify-content:center;align-items:center}
.muted{color:var(--muted)}

/* Reveal on scroll */
.reveal{opacity:0;transform:translateY(12px);transition:opacity .5s ease, transform .5s ease}
.reveal.is-visible{opacity:1;transform:none}

/* Responsive */
@media (max-width: 980px){
  .grid-two{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2,1fr)}
  .contact-grid{grid-template-columns:1fr}
  .hero-grid{grid-template-columns: 80px 1fr}
}

@media (max-width: 900px){
  .site-nav{display:none;position:fixed;right:16px;top:calc(var(--header-h) + 8px);background:var(--card);border:1px solid var(--border);border-radius:16px;padding:10px;flex-direction:column;gap:8px;min-width:200px}
  .site-nav.open{display:flex}
  .nav-toggle{display:inline-flex}
  .cards{grid-template-columns:1fr}
  .hero-grid{grid-template-columns: 1fr}
  .hero-vertical{flex-direction:row;justify-content:center}
}


/* Make the hero's "What I do" button black */
.hero .btn.btn-ghost{
  background:#000;
  border-color:#000;
  color:#fff;
}
.hero .btn.btn-ghost:hover{
  opacity:.95;
}


/* Scroll-to-top button */
.scroll-top{
  position:fixed;
  right:20px;
  bottom:20px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#000;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: var(--shadow);
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s step-end;
  z-index: 60;
}
.scroll-top.is-visible{
  opacity:1;
  visibility:visible;
  transform: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s step-start;
}
.scroll-top:hover{opacity:.95}
.scroll-top:focus{outline:2px solid var(--accent); outline-offset:2px}
@media (prefers-reduced-motion: reduce){
  .scroll-top{transition:none}
}


/* Skills/Bullets layout under "What I do" */
.skills{max-width:900px; margin: 0 auto 28px}
.bullets{
  margin: 10px 0 0;
  padding-left: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px 24px;
}
.bullets li{margin-left: 0}
@media (max-width: 900px){
  .bullets{grid-template-columns: 1fr}
}


/* Address brand emphasis */
.addr-brand{ color: var(--accent); font-weight: 900; letter-spacing: .2px; }


/* Larger tagline under Think Forward */
.hero .hero-copy p{
  font-size: clamp(20px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}


/* Tweak tagline size: smaller than v35, larger than original; avoid breaking on wide screens */
.hero .hero-copy p{
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  max-width: none;
}
@media (min-width: 980px){
  .hero .hero-copy p{ white-space: nowrap; }
}


/* Link pill row (Spotify artists) */
.pill-row{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:12px}
.pill{display:inline-flex;justify-content:center;align-items:center;padding:8px 12px;border-radius:999px;border:1px solid var(--border);color:var(--text);text-decoration:none;font-weight:600;background:#0b0b0b}
.pill:hover{opacity:.95}


/* Responsive embed inside ratio wrapper */
.img-ratio iframe{position:absolute; inset:0; width:100%; height:100%; border:0}


/* Ensure equal spacing between nav items */
.site-nav a.cta{ padding: 0; border: 0; border-radius: 0 }


/* Logo in header */
.brand img{display:block;height:auto;max-height:44px;width:auto}
@media (max-width: 900px){
  .brand img{max-height:36px}
}
/* Normalize nav item alignment next to logo */
.site-nav a{display:inline-flex;align-items:center;}


/* Ensure YouTube embeds perfectly match the card's rounded corners */
.card-media, .img-ratio{ border-radius: var(--radius); }
.img-ratio iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
  border-radius: inherit;           /* iOS/Safari needs this */
  display:block; background:#000;   /* avoids white flashes during load */
}


/* Ensure 16:9 ratio for media blocks (videos/images) to avoid top/bottom bars */
.img-ratio{ aspect-ratio: 16 / 9; }

.card-media{ overflow:hidden }


/* Floating X (Twitter) link - centered bottom */
.social-x{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 70;
  opacity: .92;
}
.social-x:hover{ opacity: 1 }
.social-x img{ display:block; width:24px; height:24px }
@media (max-width: 900px){
  .social-x{ bottom: 16px; width: 44px; height: 44px }
  .social-x img{ width:22px; height:22px }
}


/* Footer social icon stacked above copyright */
.footer-inner{ flex-direction: column; gap: 8px; }
.footer-social{ display:flex; align-items:center; justify-content:center; }
.footer-x{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:999px;
  background:#000; border:1px solid var(--border);
  box-shadow: var(--shadow); opacity:.92;
}
.footer-x:hover{ opacity:1 }
.footer-x img{ display:block; width:22px; height:22px }


:root{ --header-h:64px; }
@media (max-width: 900px){ :root{ --header-h:56px; } }
body{ padding-top: var(--header-h); }


/* Site-wide background image (hugs bottom, fades to black at top 30%) */
body{ position: relative; }
.site-bg{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 30%),
    url('assets/meije-moon-eclips.jpg');
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center top, center bottom;
  /* Ensure sharp rendering and good performance */
  will-change: transform;
}
/* Keep all real content above the decorative background */
.site-header, main, footer{ position: relative; z-index: 1; }

/* On very short viewports, favor keeping the subject anchored at bottom */
@media (max-height: 700px){
  .site-bg{
    background-position: center top, center bottom;
    background-size: cover, contain;
  }
}


/* Remove default browser margins so the fixed menu hugs the very top */
html, body { margin:0; padding:0; }

/* Ensure header is flush with top with no accidental margins */
.site-header { top:0; margin-top:0; }


/* Desktop: keep nav on the right, inline with logo */
@media (min-width: 901px){
  .site-header{
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .site-header .brand{ flex: 0 0 auto; }
  .site-nav{
    display: flex !important;
    position: static !important;
    margin-left: auto;
    gap: 24px;
    background: transparent;
    box-shadow: none;
  }
  .nav-toggle{ display: none !important; }
}


/* Ensure the header is fixed and nav stays top-right on desktop */
.site-header{position:fixed;top:0;left:0;right:0;width:100%;z-index:100;}
@media (min-width: 901px){
  .site-header{display:flex;align-items:center;gap:16px;}
  .site-header .brand{flex:0 0 auto;}
  .site-nav{display:flex !important;position:static !important;margin-left:auto;gap:24px;background:transparent;box-shadow:none;}
  .nav-toggle{display:none !important;}
}


/* Add comfortable horizontal padding so the header isn't glued to the edges */
.site-header{
  padding-left: clamp(12px, 3vw, 28px);
  padding-right: clamp(12px, 3vw, 28px);
}
