/* =========================================================
   TOMAŽ BOŠKIN — portfolio
   Design: "meh" diatonične harmonike kot vodilni vizualni motiv
   ========================================================= */

:root{
  --bg: #171310;
  --bg-alt: #1D1712;
  --panel: #241B15;
  --brass: #C6992F;
  --brass-soft: #E4C878;
  --wine: #8C2F39;
  --wine-soft: #B24450;
  --text: #F4ECDD;
  --text-muted: #A99987;
  --border: rgba(244,236,221,0.12);
  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --max-w: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 600; margin: 0 0 0.4em; letter-spacing: -0.01em; }
p{ margin: 0 0 1em; color: var(--text-muted); }
ul, ol{ list-style:none; margin:0; padding:0; }

.section-inner{ max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.eyebrow{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  color: var(--brass);
  margin-bottom: 14px;
}

/* focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ============ HEADER ============ */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  background: rgba(23,19,16,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  max-width: var(--max-w); margin: 0 auto; padding: 16px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{
  font-family: var(--font-display); font-weight:700; font-size: 20px;
  color: var(--brass-soft); text-decoration:none; letter-spacing: 0.02em;
}
.main-nav{ display:flex; align-items:center; gap: 28px; }
.main-nav a{
  text-decoration:none; color: var(--text-muted); font-size: 14.5px; font-weight:500;
  transition: color .2s ease;
}
.main-nav a:hover{ color: var(--text); }
.nav-cta{
  color: var(--bg) !important; background: var(--brass);
  padding: 8px 16px; border-radius: 999px; font-weight:600 !important;
}
.nav-cta:hover{ background: var(--brass-soft); }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding: 8px; }
.nav-toggle span{ display:block; width:22px; height:2px; background: var(--text); margin: 5px 0; }

/* ============ HERO ============ */
.hero{
  min-height: 100svh;
  display:flex; align-items:center; justify-content:space-between; gap: 40px;
  max-width: var(--max-w); margin: 0 auto; padding: 140px 32px 80px;
  flex-wrap: wrap;
}
.hero-inner{ flex: 1 1 480px; max-width: 640px; }
.hero-name{
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.95;
  margin: 0 0 24px;
  color: var(--text);
}
.hero-tagline{
  font-size: 18px; max-width: 46ch; color: var(--text-muted);
}
.hero-actions{ display:flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.btn{
  display:inline-block; padding: 13px 26px; border-radius: 999px;
  text-decoration:none; font-weight:600; font-size: 14.5px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary{ background: var(--brass); color: var(--bg); }
.btn-primary:hover{ background: var(--brass-soft); transform: translateY(-1px); }
.btn-ghost{ border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover{ border-color: var(--brass); color: var(--brass-soft); }

.hero-portrait{ flex: 0 0 320px; }
.portrait-frame{
  width: 320px; height: 400px; border-radius: 4px;
  border: 1px solid var(--border);
  overflow:hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.portrait-illustration{ width:100%; height:100%; }
.portrait-illustration svg{ width:100%; height:100%; display:block; }
.portrait-illustration img{ width:100%; height:100%; object-fit: cover; display:block; }

/* ============ BELLOWS DIVIDER (signature element) ============ */
.bellows{
  height: 46px;
  background:
    repeating-linear-gradient(
      115deg,
      var(--panel) 0px, var(--panel) 22px,
      var(--bg-alt) 22px, var(--bg-alt) 44px
    );
  clip-path: polygon(
    0% 0%, 4% 100%, 8% 0%, 12% 100%, 16% 0%, 20% 100%, 24% 0%, 28% 100%,
    32% 0%, 36% 100%, 40% 0%, 44% 100%, 48% 0%, 52% 100%, 56% 0%, 60% 100%,
    64% 0%, 68% 100%, 72% 0%, 76% 100%, 80% 0%, 84% 100%, 88% 0%, 92% 100%,
    96% 0%, 100% 100%, 100% 0%
  );
}
.bellows-flip{ transform: scaleY(-1); }

/* ============ SECTIONS ============ */
.section{ padding: 100px 0; background: var(--bg); }
.section h2{ font-size: clamp(30px, 4vw, 44px); max-width: 16ch; }

.about{ background: var(--bg-alt); }
.about-grid{ display:grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
.about-label h2{ position: sticky; top: 120px; }
.about-text p{ font-size: 16.5px; }

/* ============ TIMELINE ============ */
.milestones{ background: var(--bg); }
.timeline{
  margin-top: 56px;
  border-left: 2px solid var(--border);
  padding-left: 40px;
  display:flex; flex-direction: column; gap: 48px;
  position: relative;
}
.timeline-item{ position: relative; }
.timeline-item::before{
  content:"";
  position:absolute; left: -46px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-year{
  font-family: var(--font-mono); color: var(--brass);
  font-size: 14px; letter-spacing: 0.05em; display:block; margin-bottom: 6px;
}
.timeline-content h3{ font-size: 22px; margin-bottom: 6px; }
.timeline-content p{ max-width: 60ch; margin: 0; }

/* ============ PROJECTS ============ */
.projects{ background: var(--bg-alt); }
.project-grid{
  margin-top: 48px;
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.project-card{
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 32px 28px; display:flex; flex-direction:column;
}
.project-tag{
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--wine-soft); margin-bottom: 14px;
}
.project-card h3{ font-size: 24px; margin-bottom: 12px; }
.project-card p{ font-size: 15px; flex:1; }
.project-card a{
  color: var(--brass-soft); text-decoration:none; font-weight:600; font-size: 14px; margin-top: 8px;
}
.project-card a:hover{ text-decoration: underline; }

/* ============ TEACHING ============ */
.teaching{ background: var(--bg); }
.teaching-grid{ display:grid; grid-template-columns: 1.3fr 0.7fr; gap: 60px; align-items:start; }
.teaching-grid p{ font-size: 16.5px; max-width: 56ch; }
.mentors h3{
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); font-weight:500; margin-bottom: 18px;
}
.mentor-list li{
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-size: 18px;
}
.mentor-list li:last-child{ border-bottom:none; }

/* ============ MEDIA ============ */
.media{ background: var(--bg-alt); }
.media-note{ max-width: 60ch; }
.media-grid{
  margin-top: 32px; display:grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.media-placeholder{
  aspect-ratio: 16/10; border: 1.5px dashed var(--border); border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  color: var(--text-muted); font-family: var(--font-mono); font-size: 13px;
}
.social-row{ margin-top: 36px; display:flex; gap: 14px; flex-wrap: wrap; }
.social-pill{
  border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px;
  text-decoration:none; font-size: 14px; font-weight:500; color: var(--text);
  transition: border-color .2s ease, color .2s ease;
}
.social-pill:hover{ border-color: var(--brass); color: var(--brass-soft); }

/* ============ CONTACT / FOOTER ============ */
.contact{ background: var(--panel); padding: 100px 0 40px; }
.contact-inner{ display:flex; flex-direction:column; gap: 40px; }
.contact h2{ font-size: clamp(28px,4vw,42px); }
.email-link{
  display:inline-block; margin-top: 12px; font-family: var(--font-display);
  font-size: 22px; color: var(--brass-soft); text-decoration:none; border-bottom: 1px solid var(--brass-soft);
}
.footer-fine{ font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 24px; margin:0; }

/* ============ SCROLL REVEAL ============ */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .about-grid, .teaching-grid{ grid-template-columns: 1fr; }
  .about-label h2{ position: static; }
  .project-grid{ grid-template-columns: 1fr; }
  .media-grid{ grid-template-columns: 1fr; }
  .main-nav{ display:none; }
  .nav-toggle{ display:block; }
  .hero{ padding-top: 120px; }
  .hero-portrait{ flex: 0 0 auto; margin: 0 auto; }
}

@media (max-width: 900px){
  .main-nav.is-open{
    display:flex; position: fixed; top: 65px; left:0; right:0;
    background: var(--bg); flex-direction: column; padding: 24px 32px; gap: 20px;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 520px){
  .portrait-frame{ width: 100%; max-width: 320px; height: 340px; }
  .section{ padding: 70px 0; }
  .hero{ padding-bottom: 60px; }
}
