/* ============================================================
   portfolio.css — Portfolio page specific styles
   Barbara Virsik Portfolio · barbaravirsik.com
   ============================================================ */

/* ══ HERO ══ */
#hero {
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 5rem 3rem;
  align-items: center;
  gap: 5rem;
}
.hero-eyebrow-main {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}
.hero-eyebrow-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.hero-name em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 2rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
}
.hero-intro {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.2rem;
}
.hero-btns { display: flex; gap: 0.8rem; }
.hero-photo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-photo-wrap.fade-in { transition-delay: 0.15s; }
.hero-photo-frame { position: relative; width: 100%; max-width: 440px; }
.hero-photo-frame::before {
  content: '';
  position: absolute;
  top: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 2px solid var(--accent);
  border-radius: 12px;
  opacity: 0.25;
  z-index: 0;
}
.hero-photo-frame img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  display: block;
  position: relative;
  z-index: 1;
}
.hero-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.hero-location svg { color: var(--accent); }

/* ══ ABOUT / MY JOURNEY ══ */
#about { padding: 6rem 0; }
.journey-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 2.5rem;
}
.journey-title em { font-style: italic; color: var(--accent); }

/* Story pagination */
.story-container { margin-bottom: 2.5rem; }
.story-pages { position: relative; }
.story-page { display: none; }
.story-page.active { display: block; }
.story-page-inner { display: grid; grid-template-columns: 1fr 220px; gap: 3rem; align-items: start; }
.story-page p { font-size: 0.97rem; color: var(--ink-mid); line-height: 1.85; margin-bottom: 1.15rem; }
.story-page p:last-child { margin-bottom: 0; }
.story-page p em { font-style: italic; color: var(--ink); }
.story-page-img { width: 220px; height: 220px; object-fit: cover; border-radius: 10px; flex-shrink: 0; display: block; }

/* Page turn animations */
@keyframes fadeSlideIn  { from { opacity: 0; transform: translateX(28px); }  to { opacity: 1; transform: none; } }
@keyframes fadeSlideInR { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.story-page.anim-fwd { animation: fadeSlideIn  0.38s ease forwards; }
.story-page.anim-bwd { animation: fadeSlideInR 0.38s ease forwards; }

.story-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.story-nav-left { display: flex; align-items: center; gap: 0.5rem; }
.story-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background 0.2s; }
.story-dot.active { background: var(--accent); }
.story-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--sans);
  padding: 0.3rem 0;
  transition: opacity 0.2s, gap 0.2s;
}
.story-btn:hover { gap: 0.55rem; }
.story-btn:disabled { opacity: 0; pointer-events: none; }
.story-btn.prev { color: var(--ink-muted); }
.story-btn.prev:hover { color: var(--ink); }
.story-nav-right { display: flex; align-items: center; gap: 1.2rem; }

/* ══ MY WHY ══ */
#manifesto { background: var(--dark-bg); color: white; padding: 7rem 0; }
.manifesto-top-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
  margin-bottom: 5rem;
}
.manifesto-left .section-num { color: rgba(255,255,255,0.25); margin-bottom: 1rem; }
.manifesto-belief {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  border-left: 3px solid var(--accent);
  padding-left: 1.4rem;
  margin-bottom: 1.8rem;
}
.manifesto-belief strong { font-weight: 700; font-style: normal; color: white; }
.manifesto-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.manifesto-approach h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: white; margin-bottom: 0.9rem; }
.manifesto-approach p { font-size: 0.95rem; color: rgba(255,255,255,0.6); max-width: 580px; line-height: 1.8; }
.manifesto-approach p em { color: rgba(255,255,255,0.9); font-style: italic; }

/* Process chain */
.process-chain {
  background: var(--dark-surface);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.process-step { display: flex; flex-direction: column; align-items: center; width: 100%; }
.process-node {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  width: 100%;
  transition: border-color 0.2s;
}
.process-node:hover { border-color: rgba(15,102,116,0.6); }
.process-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(15,102,116,0.3);
  border: 1px solid rgba(15,102,116,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.process-label { font-family: var(--sans); font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.92); line-height: 1.3; }
.process-sublabel { font-size: 0.74rem; color: rgba(255,255,255,0.45); margin-top: 0.15rem; }
.process-arrow { padding: 0.25rem 0; color: var(--accent); font-size: 1.1rem; font-weight: 700; }

/* Observations (1-2-3 nav) */
.observations-section { margin-top: 0; }
.obs-label-row {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-bottom: 2rem;
}
.observations-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.obs-nav { display: flex; flex-direction: column; gap: 0.4rem; position: sticky; top: 80px; }
.obs-btn {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: none;
  border: none;
  border-left: 2px solid rgba(255,255,255,0.08);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 0 6px 6px 0;
}
.obs-btn:hover { background: rgba(255,255,255,0.04); border-left-color: rgba(255,255,255,0.2); }
.obs-btn.active { border-left-color: var(--accent); background: rgba(15,102,116,0.12); }
.obs-btn .obs-num {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.obs-btn .obs-name { font-size: 0.82rem; color: rgba(255,255,255,0.45); font-weight: 500; line-height: 1.3; margin-top: 0.1rem; transition: color 0.2s; }
.obs-btn.active .obs-name { color: rgba(255,255,255,0.85); }

.obs-card-wrap { position: relative; min-height: 320px; }
.obs-card {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  background: var(--dark-surface);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateY(16px);
}
.obs-card.active { opacity: 1; pointer-events: auto; transform: translateY(0); position: relative; }
.obs-card .obs-card-num { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: #4DC0D0; margin-bottom: 0.7rem; font-weight: 600; }
.obs-card h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: #EDDFC8; margin-bottom: 1rem; line-height: 1.25; }
.obs-card .obs-quote {
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.95);
  border-left: 3px solid #4DC0D0;
  padding-left: 0.9rem;
  margin-bottom: 1.1rem;
  line-height: 1.7;
}
.obs-card .obs-body { font-size: 0.9rem; color: rgba(255,255,255,0.82); line-height: 1.75; margin-bottom: 1rem; }
.obs-solution {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  background: rgba(15,102,116,0.2);
  border-left: 3px solid #4DC0D0;
  border-radius: 0 6px 6px 0;
}
.obs-solution p { font-size: 0.875rem; color: rgba(255,255,255,0.92); line-height: 1.7; }
.obs-solution p::before { content: "→ "; color: #4DC0D0; font-weight: 700; }

/* ══ ENERGIZERS ══ */
#energizers { padding: 7rem 0; }
.energizers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.energy-col h3 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--ink-mid);
  font-weight: 600;
  margin-bottom: 1.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.energy-item { padding: 1.3rem 0; border-bottom: 1px solid var(--border); }
.energy-item:last-child { border-bottom: none; }
.energy-item-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.energy-icon { font-size: 1.1rem; flex-shrink: 0; }
.energy-item h4 { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--ink); }
.energy-item p { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.7; }

/* ══ PORTFOLIO ══ */
#portfolio { padding: 7rem 0; background: var(--surface); }
.ptabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 3rem;
  overflow-x: auto;
}
.ptab {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--sans);
}
.ptab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Case study card */
.cs-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cs-left {
  background: var(--dark-bg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}
.cs-tag-line { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1rem; }
.cs-left h3 { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: white; line-height: 1.15; }
.cs-puzzle-wrap { margin-top: auto; padding-top: 1.2rem; margin-left: -3rem; margin-right: -3rem; margin-bottom: -3rem; }
.cs-puzzle-img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 0 0 0 12px; opacity: 0.9; }
.cs-right { padding: 3rem; }
.cs-right .eyebrow { margin-bottom: 0.6rem; }
.cs-right h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 1rem; line-height: 1.25; }
.cs-right p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 1.5rem; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem; }
.cs-chip { font-size: 0.72rem; padding: 4px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; color: var(--ink-muted); }
.cs-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.87rem; text-decoration: none; transition: gap 0.2s; }
.cs-link:hover { gap: 10px; }
.coming-panel { border: 2px dashed var(--border); border-radius: 12px; padding: 4rem 2rem; text-align: center; }
.coming-panel .cp-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.coming-panel p { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* ══ WRITING ══ */
#writing { padding: 7rem 0; }
.blog-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 1.5rem; }
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.blog-card.featured { background: var(--dark-bg); border-color: transparent; }
.bc-eyebrow { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; margin-bottom: 0.8rem; display: block; }
.blog-card:not(.featured) .bc-eyebrow { color: var(--accent); }
.blog-card.featured .bc-eyebrow { color: rgba(255,255,255,0.4); }
.blog-card h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.8rem; }
.blog-card:not(.featured) h3 { color: var(--ink); }
.blog-card.featured h3 { color: white; font-size: 1.4rem; }
.blog-card p { font-size: 0.85rem; line-height: 1.65; }
.blog-card:not(.featured) p { color: var(--ink-muted); }
.blog-card.featured p { color: rgba(255,255,255,0.5); }
.bc-read { display: inline-flex; align-items: center; gap: 5px; margin-top: 1.2rem; font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: gap 0.2s; }
.blog-card:not(.featured) .bc-read { color: var(--accent); }
.blog-card.featured .bc-read { color: rgba(255,255,255,0.6); }
.bc-read:hover { gap: 9px; }

/* ══ RECS ══ */
#recs { padding: 7rem 0; background: var(--surface); }
.rec-toggle { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; }
.rec-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 0.2s;
  font-family: var(--sans);
}
.rec-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.recs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.rec-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.rec-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.rec-cover { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.rec-cover.book { background: var(--dark-bg); }
.rec-cover.film { background: #1a1530; }
.rec-info { padding: 0.9rem; }
.rec-title { font-family: var(--serif); font-size: 0.88rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.2rem; }
.rec-sub { font-size: 0.72rem; color: var(--ink-faint); }
.rec-placeholder { border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; min-height: 200px; border-radius: 8px; }
.rec-placeholder p { font-size: 0.7rem; color: var(--ink-faint); text-align: center; text-transform: uppercase; letter-spacing: 0.1em; }

/* ══ CONTACT ══ */
#contact { background: var(--dark-bg); padding: 8rem 0 0; }
.contact-inner { text-align: center; }
.contact-inner .section-num { color: rgba(255,255,255,0.2); margin-bottom: 1.2rem; }
.contact-inner h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: white; margin-bottom: 1rem; line-height: 1.2; }
.contact-inner h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.contact-inner p { color: rgba(255,255,255,0.5); font-size: 1rem; max-width: 440px; margin: 0 auto 2.5rem; line-height: 1.7; }
.contact-btns { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.8rem 3rem;
  margin-top: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
}
.footer-bar span { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer-bar a { color: rgba(255,255,255,0.25); text-decoration: none; font-size: 0.75rem; transition: color 0.2s; }
.footer-bar a:hover { color: var(--accent); }

/* ══ CTA PULSE ANIMATION ══ */
@keyframes ctaPulse {
  0%   { transform: scale(1);    box-shadow: 0 4px 18px rgba(15,102,116,0.28); }
  40%  { transform: scale(1.06); box-shadow: 0 6px 26px rgba(15,102,116,0.42); }
  70%  { transform: scale(0.97); box-shadow: 0 3px 14px rgba(15,102,116,0.2); }
  100% { transform: scale(1);    box-shadow: 0 4px 18px rgba(15,102,116,0.28); }
}
.cta-pulse { animation: ctaPulse 0.55s ease; }

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
  #hero, .manifesto-top-grid, .energizers-grid { grid-template-columns: 1fr; }
  .observations-layout { grid-template-columns: 1fr; }
  .obs-nav { flex-direction: row; position: static; }
  .blog-grid, .cs-card { grid-template-columns: 1fr; }
  .recs-grid { grid-template-columns: repeat(2, 1fr); }
}
