/* ==========================================================
   Kunstniku portfoolio — style.css
   ========================================================== */

:root{
  --bg: #EDE7DC;
  --bg-panel: #F6F3EC;
  --ink: #23301F;
  --ink-soft: #4B5A45;
  --clay: #B8785A;
  --slate: #6C7F8C;
  --line: rgba(35,48,31,0.16);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p, h1, h2, h3, figure{ margin:0; }

.wrap{
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAV ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: rgba(246,243,236,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.nav a{
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 22px;
  transition: color .25s ease;
}
.nav a:hover{ color: var(--clay); }
.nav .logo{
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}

/* ---------- HERO ---------- */
.hero{
  position: relative;
  padding: 130px 0 110px;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg-panel);
}
.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}
.blob-wrap{
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform .3s ease-out;
}
.blob-1{
  width: 560px; height: 560px;
  top: -220px; right: -180px;
  background: radial-gradient(circle at 35% 35%, rgba(184,120,90,0.45), rgba(184,120,90,0) 62%);
  animation: float-a 16s ease-in-out infinite;
}
.blob-2{
  width: 380px; height: 380px;
  top: 40px; right: 60px;
  background: radial-gradient(circle at 60% 60%, rgba(108,127,140,0.40), rgba(108,127,140,0) 65%);
  animation: float-b 20s ease-in-out infinite;
}
@keyframes float-a{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-30px, 30px) scale(1.06); }
}
@keyframes float-b{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(20px,-24px) scale(0.95); }
}
@keyframes float-c{
  0%,100%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(14px,-18px) scale(1.04); }
  66%{ transform: translate(-16px,10px) scale(0.97); }
}

/* section-level decorative blobs (reused across statement / about / works) */
.sec{ position: relative; }
.sec-blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
}
.sec > .wrap{ position: relative; z-index: 1; }

/* floating dust / pollen particles (used on dark sections) */
.particles{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle{
  position: absolute;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite;
}
.particle.slate{ background: var(--slate); }
@keyframes drift{
  0%{ transform: translateY(0) translateX(0); opacity: 0; }
  10%{ opacity: .55; }
  50%{ transform: translateY(-70px) translateX(18px); }
  90%{ opacity: .35; }
  100%{ transform: translateY(-140px) translateX(-10px); opacity: 0; }
}

/* gentle pulse glow on featured cards */
@keyframes glow-pulse{
  0%,100%{ box-shadow: 0 0 0 rgba(184,120,90,0); }
  50%{ box-shadow: 0 0 22px rgba(184,120,90,0.22); }
}
.exh-card.featured{ animation: glow-pulse 5s ease-in-out infinite; }

.hero-inner{ position: relative; z-index: 1; }

.eyebrow{
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 22px;
}
.name{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 66px);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 14px;
}
.role{
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: #D8CBB6;
  margin-bottom: 30px;
}
.tagline{
  max-width: 480px;
  font-size: 16.5px;
  color: #B9C2B2;
}
.scroll-cue{
  margin-top: 56px;
  width: 30px; height: 46px;
  border: 1px solid rgba(246,243,236,0.5);
  border-radius: 20px;
  position: relative;
}
.scroll-cue::before{
  content:"";
  position:absolute;
  top:8px; left:50%;
  width:4px; height:8px;
  margin-left:-2px;
  background: var(--clay);
  border-radius: 2px;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue{
  0%{ transform: translateY(0); opacity:1; }
  70%{ transform: translateY(14px); opacity:0; }
  100%{ opacity:0; }
}

/* ---------- REVEAL (scroll-in) ---------- */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.d1{ transition-delay: .05s; }
.d2{ transition-delay: .15s; }
.d3{ transition-delay: .25s; }
.d4{ transition-delay: .35s; }

/* ---------- SECTIONS ---------- */
section.sec{
  padding: 78px 0;
  border-top: 1px solid var(--line);
}
.kicker{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 34px;
}
.kicker .num{
  width: 34px; height: 34px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--clay);
  font-size: 13px;
  flex-shrink: 0;
}
.kicker.light .num{ border-color: rgba(246,243,236,0.5); color: var(--bg-panel); }
.kicker h2{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  color: var(--ink);
}
.kicker.light h2{ color: var(--bg-panel); }

/* Statement */
.statement p{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px,2.4vw,23px);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 24px;
}
.statement p:last-child{ margin-bottom:0; }

/* About */
.about p{
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.sub-h{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 40px 0 4px;
}

/* Portrait */
.portrait-frame{
  position: relative;
  width: 220px;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-panel);
  margin-bottom: 28px;
}
.portrait-frame img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
}
.portrait-frame .placeholder-text{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  text-align:center; padding: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--slate);
}
.portrait-frame .placeholder-text small{
  display:block;
  margin-top: 6px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  color: var(--ink-soft);
  opacity: .7;
}

/* Timeline with draw-in line */
.timeline{
  position: relative;
  margin-top: 20px;
  padding-left: 2px;
}
.timeline::before{
  content:"";
  position:absolute;
  left: 76px;
  top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.timeline.is-visible::before{ transform: scaleY(1); }

.t-row{
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 11px 0;
}
.t-year{
  font-family: var(--serif);
  font-style: italic;
  color: var(--clay);
  font-size: 15px;
}
.t-text{
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 18px;
}
.t-text strong{ color: var(--ink); font-weight: 500; }

/* Exhibitions (dark) */
.exh{
  background: var(--ink);
  color: var(--bg-panel);
}
.exh-lead{
  font-size: 14.5px;
  color: #C9D0C5;
  max-width: 480px;
  margin: -14px 0 8px;
}
.exh-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-top: 12px;
}
.exh-card{
  padding: 22px 18px;
  border: 1px solid rgba(246,243,236,0.14);
  border-radius: 4px;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.exh-card:hover{
  transform: translateY(-6px);
  border-color: var(--clay);
  background: rgba(184,120,90,0.08);
}
.exh-card.featured{
  border-color: var(--clay);
  background: rgba(184,120,90,0.10);
}
.exh-year{
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  margin-bottom: 4px;
  color: #fff;
}
.exh-card.featured .exh-year{ color: var(--clay); }
.exh-title{
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C9D0C5;
  margin-bottom: 10px;
}
.exh-card p{
  font-size: 13px;
  color: #C9D0C5;
}

/* Gallery */
.works-lead{
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 4px;
}
.gallery{
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px 18px;
}
.g-item{ overflow: hidden; }
.g-frame{
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(35,48,31,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, rgba(184,120,90,0.10), rgba(108,127,140,0.10));
  display:flex; align-items:center; justify-content:center;
  text-align:center; padding:14px;
  cursor: pointer;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease;
}
.g-frame:hover{
  transform: scale(1.035);
  box-shadow: 0 18px 34px rgba(35,48,31,0.18);
}
.g-frame img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
}
.g-frame .placeholder-text{
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  position: relative; z-index: 1;
}
.g-frame .placeholder-text small{
  display:block;
  margin-top: 6px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  opacity: .7;
}
.g-item figcaption{
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s ease;
}
.g-item:hover figcaption{ opacity:1; transform: translateY(0); }
.g-item figcaption strong{ color: var(--ink); font-weight:500; }

/* Lightbox */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(35,48,31,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.is-open{ display: flex; }
.lightbox img{
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.lightbox-close{
  position: absolute;
  top: 24px; right: 32px;
  color: #F6F3EC;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--sans);
}

/* Contact */
.contact{
  background: var(--ink);
  color: var(--bg-panel);
  position: relative;
  overflow: hidden;
}
.contact .blob{
  width: 420px; height: 420px;
  left: -180px; bottom: -180px;
  background: radial-gradient(circle at 50% 50%, rgba(184,120,90,0.25), rgba(184,120,90,0) 65%);
  animation: float-a 18s ease-in-out infinite;
}
.contact-title{
  font-family: var(--serif);
  font-size: 34px;
  color: #fff;
  margin-bottom: 14px;
}
.contact-lead{
  font-size: 14.5px;
  color: #B9C2B2;
  max-width: 480px;
  margin-bottom: 40px;
}
.contact-grid{
  display: grid;
  grid-template-columns: repeat(2,minmax(160px,1fr));
  gap: 26px 40px;
  position: relative; z-index: 1;
}
.c-label{
  display:block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 6px;
}
.c-value{
  font-family: var(--serif);
  font-size: 17px;
  color: #fff;
}
.c-value a{ color:#fff; text-decoration:none; border-bottom:1px solid rgba(255,255,255,.3); }
.c-value a:hover{ border-color:#fff; }

.note{
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.contact .note{
  border-top: 1px dashed rgba(246,243,236,0.18);
  color: #8FA08F;
}

footer.mark{
  text-align:center;
  padding: 26px 0 40px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-panel);
}

@media (max-width: 720px){
  .nav{ padding: 14px 20px; }
  .nav .links{ display:none; }
  .wrap{ padding: 0 22px; }
  .hero{ padding: 96px 0 70px; }
  .exh-grid{ grid-template-columns: 1fr; gap: 18px; }
  .gallery{ grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .timeline::before{ left: 60px; }
}

@media (prefers-reduced-motion: reduce){
  .blob{ animation: none; }
  .reveal{ transition: none; opacity:1; transform:none; }
  .timeline::before{ transition:none; transform:scaleY(1); }
}
