/* Portfolio Styles */

/* Intro */
.portfolio-intro {
  margin: 60px 0 50px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-intro h1 {
  font-size: 42px;
  font-weight: normal;
  margin: 0 0 20px;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.intro-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin: 0;
}

/* Filtry kategorii */
.category-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0;
  padding: 0 20px;
}

.filter-btn {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.filter-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: rgba(172, 190, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* Grid projektów */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

/* Karta projektu */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(172, 190, 255, 0.1);
}

.project-card.hidden {
  display: none;
}

/* Obrazek projektu */
.project-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--bg);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-project {
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
}

/* Treść karty */
.project-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(172, 190, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-title {
  font-size: 20px;
  font-weight: normal;
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.3;
}

.project-description {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0 0 16px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.project-tech code {
  font-size: 12px;
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--ink-dim);
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.project-link:hover {
  opacity: 0.7;
}

/* CTA Section */
.portfolio-cta {
  text-align: center;
  padding: 60px 30px;
  margin: 80px 0 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.portfolio-cta h2 {
  font-size: 32px;
  font-weight: normal;
  margin: 0 0 16px;
  color: var(--accent);
}

.portfolio-cta p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin: 0 0 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 12px 32px;
  font-family: inherit;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  display: inline-block;
}

.cta-btn.primary {
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
}

.cta-btn.primary:hover {
  background: transparent;
  color: var(--accent);
}

.cta-btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.cta-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Featured Portfolio na stronie głównej */
.featured-portfolio {
  margin: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 28px;
  font-weight: normal;
  margin: 0;
  color: var(--accent);
}

.section-header a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.section-header a:hover {
  color: var(--accent);
}

.section-header a::after {
  content: " →";
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  transition: all 0.3s;
}

.featured-card.clickable-card {
  cursor: pointer;
}

.featured-card.card-hover {
  transform: translateY(-4px);
}

.featured-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.featured-card .tag {
  font-size: 10px;
  padding: 3px 8px;
}

.featured-card h3 {
  font-size: 18px;
  font-weight: normal;
  margin: 12px 0 10px;
  color: var(--ink);
}

.featured-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 16px;
}

.featured-card a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s;
}

.featured-card a:hover {
  opacity: 0.7;
}

.featured-card a::after {
  content: " →";
}

/* Responsywność */
@media (max-width: 768px) {
  .portfolio-intro h1 {
    font-size: 32px;
  }

  .intro-text {
    font-size: 15px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-image {
    height: 200px;
  }

  .category-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 16px;
    font-size: 13px;
  }

  .portfolio-cta {
    padding: 40px 20px;
  }

  .portfolio-cta h2 {
    font-size: 26px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btn {
    text-align: center;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Animacje wejścia */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  animation: fadeInUp 0.5s ease-out;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .project-card {
    animation: none;
  }
}

/* Active link w nav */
nav a.active {
  color: var(--accent);
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   GALLERY PORTFOLIO — /portfolio.html
   Image-dominant bento: image fills card, text
   overlays from bottom on hover.
   ═══════════════════════════════════════════════ */

/* ── Page header ── */
.p-header {
  padding: 56px 0 44px;
}

.p-header-meta {
  font-size: 12px;
  color: var(--ink-dim);
  margin: 0 0 18px;
  letter-spacing: 0.4px;
}

.p-sep {
  margin: 0 10px;
  opacity: 0.35;
}

.p-title {
  font-size: 64px;
  font-weight: normal;
  margin: 0 0 20px;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
}

.p-subtitle {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.75;
  margin: 0;
  max-width: 540px;
}

/* ── Terminal filter bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 0 40px;
  flex-wrap: wrap;
  row-gap: 8px;
}

.fb-left {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  flex-shrink: 0;
}

.fb-prompt {
  color: var(--accent);
  font-size: 14px;
  user-select: none;
}

.fb-cmd {
  color: var(--ink-dim);
  font-size: 14px;
}

.fb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1;
}

.fb-btn {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 3px;
  transition: color 0.18s, background 0.18s;
  letter-spacing: 0.2px;
}

.fb-btn:hover {
  color: var(--ink);
  background: rgba(207, 214, 255, 0.06);
}

.fb-btn.active {
  color: var(--accent);
  background: rgba(172, 190, 255, 0.1);
}

.fb-result {
  font-size: 12px;
  color: var(--ink-dim);
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
  letter-spacing: 0.3px;
}

/* ── Bento grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 80px;
}

/* ── Base card: image fills full card, text overlays on hover ── */
.bento-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  height: 380px;
  display: flex;             /* so bc-body can fill height */
  transition:
    border-color 0.25s ease,
    box-shadow   0.3s ease,
    transform    0.3s ease,
    opacity      0.22s ease;
}

.bento-card:hover {
  border-color: rgba(172, 190, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(172, 190, 255, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.75);
  transform: translateY(-4px);
}

.bento-card.bc-wide {
  grid-column: span 2;
  height: 420px;
}

/* ── Full-bleed image ── */
.bc-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bc-image picture {
  position: absolute;
  inset: 0;
}

.bc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.5) brightness(0.65);
  transition: transform 0.55s ease, filter 0.4s ease;
}

.bento-card:hover .bc-image img {
  transform: scale(1.07);
  filter: saturate(0.85) brightness(0.8);
}

/* ── Body: overlay ── */
.bc-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px 20px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5)   0%,
    transparent          30%,
    transparent          45%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

@media (max-width: 480px) {
  .bc-body {
    padding: 14px 16px 16px;
  }
}

/* Top: number + tags always visible */
.bc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.bc-num {
  font-size: 11px;
  color: rgba(172, 190, 255, 0.6);
  letter-spacing: 1.5px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.bento-card:hover .bc-num {
  color: var(--accent);
}

.bc-top .bc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

/* Tags on image get frosted glass backing */
.bc-top .tag {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(172, 190, 255, 0.2);
  backdrop-filter: blur(6px);
  color: rgba(207, 214, 255, 0.8);
}

/* ── Bottom section: always-visible title + revealed content ── */
.bc-bottom {
  display: flex;
  flex-direction: column;
}

.bc-title {
  font-size: 20px;
  font-weight: normal;
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.3;
}

.bento-card.bc-wide .bc-title {
  font-size: 26px;
}

@media (max-width: 560px) {
  .bc-title {
    font-size: 18px;
    margin: 0 0 8px;
  }

  .bento-card.bc-wide .bc-title {
    font-size: 22px;
  }
}

/* Mobile: keep desktop full-bleed overlay style, just collapse bc-wide spans */
@media (max-width: 820px) {
  .pg-main .bento-card.bc-wide,
  .bento-row .bento-card.bc-wide,
  .bento-grid .bento-card.bc-wide {
    grid-column: span 1 !important;
    height: 380px;
  }
}

/* Make bento-row behave like the grid and unify card sizes on small viewports */
.bento-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

@media (max-width: 820px) {
  .bento-row { grid-template-columns: 1fr; }

  /* Ensure description and footer are visible on touch/tablet sizes */
  .bc-desc { max-height: none !important; opacity: 1 !important; margin-bottom: 12px !important; }
  .bc-footer { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 480px) {
  .bc-title {
    font-size: 16px;
    margin: 0 0 6px;
  }

  .bento-card.bc-wide .bc-title {
    font-size: 19px;
  }

  .bc-num {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .bc-desc {
    font-size: 12px;
  }

  .bento-card:hover .bc-desc {
    max-height: 80px;
  }
}

/* Description: hidden at rest → slides in on hover */
.bc-desc {
  font-size: 13px;
  color: rgba(207, 214, 255, 0.75);
  line-height: 1.65;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.32s ease, margin 0.32s ease;
}

.bento-card:hover .bc-desc {
  max-height: 90px;
  opacity: 1;
  margin-bottom: 12px;
}

/* Footer: tech + link, hidden at rest → fades in on hover */
.bc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.06s, transform 0.3s ease 0.06s;
}

.bento-card:hover .bc-footer {
  opacity: 1;
  transform: translateY(0);
}

.bc-tech {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.bc-tech code {
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(172, 190, 255, 0.2);
  border-radius: 3px;
  color: rgba(207, 214, 255, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bc-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.bc-link:hover {
  opacity: 0.75;
}

/* ── Ghost card (sCMS — no image) ── */
.bento-card.bc-ghost {
  height: 380px;
  border: 1px dashed rgba(207, 214, 255, 0.14);
  background: var(--bg-card);
}

.bento-card.bc-ghost:hover {
  border-color: rgba(172, 190, 255, 0.35);
  border-style: solid;
}

.bento-card.bc-ghost .bc-body {
  background: none;
  padding: 26px;
  justify-content: flex-start;
  gap: 12px;
}

.bento-card.bc-ghost .bc-title {
  color: var(--ink);
  font-size: 20px;
  margin-bottom: 8px;
}

.bento-card:hover.bc-ghost .bc-title {
  color: var(--accent);
  transition: color 0.22s;
}

.bento-card.bc-ghost .bc-desc {
  max-height: none;
  opacity: 1;
  color: var(--ink-dim);
  margin-bottom: 14px;
}

.bento-card.bc-ghost .bc-footer {
  opacity: 1;
  transform: none;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}

.bc-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bc-features li {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.3px;
}

.bc-soon {
  font-size: 12px;
  color: var(--ink-dim);
  opacity: 0.5;
  letter-spacing: 0.5px;
}

/* ── Filter animation states ── */
.bento-card.is-hiding {
  opacity: 0;
  transform: scale(0.97) translateY(6px);
}

.bento-card.is-showing {
  opacity: 0;
  transform: translateY(10px);
}

.bento-card.hidden {
  display: none;
}

/* ── Contact section ── */
.p-contact {
  margin: 0 0 60px;
  padding: 44px 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
}

.p-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.pc-terminal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  flex-wrap: wrap;
}

.pc-prompt { color: var(--accent); }
.pc-cmd    { color: var(--ink); }
.pc-flag   { color: var(--ink-dim); }

.pc-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.pc-link:hover {
  border-bottom-color: var(--accent);
}

.pc-socials {
  display: flex;
  gap: 20px;
}

.pc-social {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.pc-social:hover {
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .p-title {
    font-size: 48px;
    letter-spacing: -1.5px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card.bc-wide {
    grid-column: span 2;
  }

  .bento-card {
    height: 340px;
  }

  .bento-card.bc-wide {
    height: 360px;
  }
}

@media (max-width: 560px) {
  .p-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bento-card,
  .bento-card.bc-wide {
    grid-column: span 1;
    height: 320px;
  }

  .fb-result {
    width: 100%;
    margin-left: 0;
  }

  .p-contact {
    padding: 28px 20px;
  }

  .p-contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pc-terminal {
    font-size: 14px;
  }
}

/* Small-screen: keep desktop full-bleed overlay, always show content on touch */
@media (max-width: 560px) {
  .bc-desc { max-height: none; opacity: 1; margin-bottom: 12px; }
  .bc-footer { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bento-card             { transition: none; }
  .bc-image img           { transition: none; }
  .bc-desc                { transition: none; max-height: none; opacity: 1; margin-bottom: 12px; }
  .bc-footer              { transition: none; opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════
   FULL-WIDTH BENTO GRID
   ═══════════════════════════════════════════════ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 80px;
}

.bento-grid .bento-card {
  height: 300px;
}

.bento-grid .bento-card.bc-wide {
  grid-column: span 2;
  height: 460px;
}

/* bc-hero: content always visible (for top hero card) */
.bc-hero .bc-body {
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.15) 0%,
    transparent 20%,
    rgba(0,0,0,0.88) 52%,
    rgba(0,0,0,0.97) 100%);
}

.bc-hero .bc-desc {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 10px;
}

.bc-hero .bc-footer {
  opacity: 1;
  transform: translateY(0);
}

/* Client sites pills inside hero card */
.bc-sites {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bc-sites a {
  font-size: 11px;
  color: var(--ink-dim);
  text-decoration: none;
  border: 1px solid rgba(207,214,255,0.2);
  border-radius: 3px;
  padding: 3px 9px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.bc-sites a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 720px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid .bento-card.bc-wide {
    grid-column: span 1;
    height: 380px;
  }

  .bento-grid .bento-card {
    height: 260px;
  }
}

/* ═══════════════════════════════════════════════
   SPLIT LAYOUT — left projects / right websites
   ═══════════════════════════════════════════════ */

/* ── Two-column split ── */
.portfolio-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
  margin-bottom: 80px;
}

/* ── Left: mini 2-col project bento ── */
.ps-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* First card spans full left width */
.ps-projects .bento-card.bc-wide {
  grid-column: span 2;
  height: 280px;
}

/* Regular cards: shorter than the full bento grid */
.ps-projects .bento-card {
  height: 240px;
}

/* Ghost card: content-driven height */
.ps-projects .bento-card.bc-ghost {
  height: auto;
  min-height: 200px;
}

/* ── Right: websites block ── */
.ps-websites {
  align-self: start;
}

/* Make websites block stick on larger viewports so it doesn't jump around
   and avoid overlap with header. On small viewports keep normal flow. */
@media (min-width: 721px) {
  .ps-websites {
    position: sticky;
    top: 84px; /* offset below sticky header */
    align-self: start;
    z-index: 10;
  }

  .pw-card {
    max-width: 320px;
  }
}

/* ── Websites card ── */
.pw-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}

.pw-header {
  margin-bottom: 16px;
}

.pw-label {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.pw-pitch {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.75;
  margin: 0 0 20px;
}

.pw-pitch strong {
  color: var(--ink);
  font-weight: normal;
}

/* Divider between pitch and list */
.pw-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--border);
}

/* visual cleanup: no bottom border on last item */
.pw-item:last-child { border-bottom: none; }

/* ── Each website item ── */
.pw-item {
  border-bottom: 1px solid var(--border);
}

.pw-link {
  display: block;
  padding: 13px 0;
  text-decoration: none;
  transition: padding-left 0.2s ease;
}

.pw-link:hover {
  padding-left: 4px;
}

.pw-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.pw-domain {
  font-size: 13px;
  color: var(--ink);
  transition: color 0.2s;
}

.pw-arrow {
  font-size: 13px;
  color: var(--ink-dim);
  transition: color 0.2s, transform 0.2s;
}

.pw-link:hover .pw-domain {
  color: var(--accent);
}

.pw-link:hover .pw-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.pw-type {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.3px;
}

/* ── CTA ── */
.pw-cta {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s;
}

.pw-cta:hover {
  opacity: 0.7;
}

/* ── Responsive: stack on tablet/mobile ── */
@media (max-width: 720px) {
  .portfolio-split {
    grid-template-columns: 1fr;
  }

  .ps-websites {
    position: static;
  }

  .ps-projects .bento-card.bc-wide {
    height: 260px;
  }

  .ps-projects .bento-card {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .ps-projects {
    grid-template-columns: 1fr;
  }

  .ps-projects .bento-card.bc-wide {
    grid-column: span 1;
    height: 240px;
  }
}

/* ═══════════════════════════════════════════════
   INDEX MAIN GRID — full width, 4-col
   ═══════════════════════════════════════════════ */

.pg-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 48px;
  margin-bottom: 0;
}

.pg-main .copy-section:last-child {
  padding-bottom: 0;
}

/* bc-wide spans all 4 columns */
.pg-main .bc-wide {
  grid-column: 1 / -1;
}

/* copy-section spans full width */
.pg-main .copy-section {
  grid-column: 1 / -1;
}

/* ASCII belt spans full width */
.pg-main .ascii-belt {
  grid-column: 1 / -1;
  overflow: hidden;
  padding: 20px 0;
}

/* Media variant — title aligned right */
.copy-section--right .copy-title {
  text-align: right;
}

.copy-section--right .copy-section-top {
  flex-direction: row-reverse;
}

/* Hero card height */
.pg-main .bc-hero.bc-wide {
  height: 500px;
}

.pg-main .bc-hero .bc-num {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--accent);
}

/* Small project tiles */
.pg-main .bento-card:not(.bc-wide):not(.bc-ghost) {
  height: 260px;
}

/* One-row bento strip */
.pg-main .bento-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  gap: 10px;
}

.bento-row .bento-card {
  flex: 0 0 calc(25% - 8px);
  min-width: 0;
  height: 220px;
}

@media (max-width: 820px) {
  .bento-row {
    flex-wrap: wrap;
  }

  .bento-row .bento-card {
    flex: 1 1 calc(50% - 5px);
    height: 200px;
  }
}

@media (max-width: 560px) {
  .bento-row .bento-card {
    flex: 1 1 100%;
  }
}

/* ── Tablet ── */
@media (max-width: 900px) {
  .pg-main {
    padding: 0 24px;
  }
}

@media (max-width: 820px) {
  .pg-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .pg-main .bc-hero.bc-wide {
    height: 420px;
  }
}

/* ── Mobile ── */
@media (max-width: 560px) {
  .pg-main {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 8px;
  }

  .pg-main .bento-card:not(.bc-wide):not(.bc-ghost) {
    height: 240px;
  }

  .pg-main .bc-hero.bc-wide {
    height: 360px;
  }
}

/* Small-screen touch: keep content always visible */
@media (max-width: 420px) {
  .bc-desc {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    margin-bottom: 12px !important;
    line-height: 1.5;
    font-size: 13px;
  }

  .bc-footer {
    opacity: 1 !important;
    transform: none !important;
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .pg-main {
    padding: 0 12px;
    gap: 6px;
  }

  .pg-main .bento-card:not(.bc-wide):not(.bc-ghost) {
    height: 220px;
  }

  .pg-main .bc-hero.bc-wide {
    height: 300px;
  }
}

/* ═══════════════════════════════════════════════
   HERO STATEMENT (full-width, defined in style.css)
   ═══════════════════════════════════════════════ */

.hero-headline {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: normal;
  margin: 0 0 24px;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.8;
  margin: 0;
  max-width: 520px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-sub.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   CONCEPT PILLARS
   ═══════════════════════════════════════════════ */

.concept-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1300px;
  margin: 64px auto 56px;
  padding: 0 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cp-item {
  padding: 40px 32px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cp-item:not(:first-child) {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.cp-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.cp-key {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-val {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.5;
}

@media (max-width: 820px) {
  .concept-pillars {
    padding: 0 20px;
  }
  .cp-item {
    padding: 28px 24px 28px 0;
    gap: 10px;
  }
  .cp-item:not(:first-child) {
    padding-left: 24px;
  }
  .cp-val {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .concept-pillars {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .cp-item {
    padding: 24px 0;
    border-left: none !important;
    border-bottom: 1px solid var(--border);
  }

  .cp-item:not(:first-child) {
    padding-left: 0;
  }

  .cp-item:last-child {
    border-bottom: none;
  }

  .cp-val {
    font-size: 14px;
    word-break: break-word;
  }
}

/* ═══════════════════════════════════════════════
   COPYWRITING — editorial section, no card
   ═══════════════════════════════════════════════ */

.copy-section {
  padding: 100px 0;
}

.copy-section-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.copy-label {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.4px;
}

.copy-cta {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.copy-cta:hover {
  opacity: 0.7;
}

.copy-title {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: normal;
  color: var(--ink);
  margin: 0 0 56px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.copy-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.copy-col {
  padding-right: 40px;
  border-right: 1px solid var(--border);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.copy-col.tw-hidden {
  opacity: 0;
  transform: translateY(12px);
}

.copy-col:not(:first-child) {
  padding-left: 40px;
}

.copy-col:last-child {
  border-right: none;
  padding-right: 0;
}

.copy-col-key {
  display: block;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.copy-col-val {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 820px) {
  .copy-section {
    padding: 48px 0;
  }

  .copy-cols {
    grid-template-columns: 1fr 1fr;
  }

  .copy-col:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }

  .copy-col:nth-child(3) {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 24px 0 0;
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .copy-section {
    padding: 40px 0;
  }

  .copy-cols {
    grid-template-columns: 1fr;
  }

  .copy-col {
    padding: 0 0 24px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .copy-col:not(:first-child) {
    padding: 24px 0;
  }

  .copy-col:nth-child(2) {
    border-right: none;
  }

  .copy-col:nth-child(3) {
    grid-column: auto;
    border-top: none;
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
}

/* ═══════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════ */

.contact-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  padding: 80px 48px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
}

.contact-label {
  display: block;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.contact-name {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: normal;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0 0 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 48px;
}

.contact-link {
  font-size: 16px;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--ink);
}

.contact-cta {
  display: inline-block;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 12px 24px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.04em;
}

.contact-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.contact-noise {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--accent);
  opacity: 0.18;
  white-space: pre;
  letter-spacing: 0.05em;
  user-select: none;
}

@media (max-width: 820px) {
  .contact-page {
    padding: 48px 24px;
    align-items: flex-start;
    min-height: 0;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-noise {
    overflow: hidden;
    font-size: 11px;
  }
}

/* ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero-sub,
  .cp-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
