/* portfolio-sections.css — Work / About / Contact section styles */

/* ── Globals ─────────────────────────────────────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  transition: transform 1.6s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

/* Reveal animations */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-child {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.22,1,.36,1), transform 0.6s cubic-bezier(.22,1,.36,1);
}
.reveal-child.visible { opacity: 1; transform: translateY(0); }

/* ── Section shared ──────────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 64px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section divider — spatial transition line */
.section-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.1) 80%, transparent);
}

/* ── Work section ────────────────────────────────────────────────────────── */
.work-cover {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
}

.work-num {
  font-family: var(--sans);
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bg2);
  margin-bottom: 12px;
}

.work-title {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.work-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--text3);
  border-radius: 3px;
}

.work-oneliner {
  font-family: var(--body);
  font-size: 15px;
  color: var(--text3);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 40px;
}

/* Image placeholder */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(160,162,185,0.06) 14px, rgba(160,162,185,0.06) 15px);
}

.img-placeholder-sm {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; color: var(--text3);
  letter-spacing: 0.05em;
  position: relative; overflow: hidden;
}
.img-placeholder-sm::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(160,162,185,0.05) 10px, rgba(160,162,185,0.05) 11px);
}

/* Overview block */
.work-overview {
  font-size: 15px;
  line-height: 1.85;
  color: #6e6e73;
  max-width: 560px;
  margin-bottom: 64px;
}
.work-overview p { margin-bottom: 16px; }

/* Detail block */
.work-block {
  margin-bottom: 80px;
}
.work-block-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 24px;
}
.work-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.work-block-grid.reverse { direction: rtl; }
.work-block-grid.reverse > * { direction: ltr; }
.work-block-text {
  font-size: 14px;
  line-height: 1.8;
  color: #6e6e73;
}
.work-block-text p { margin-bottom: 14px; }
.work-block-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Project info table */
.work-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 48px;
}
.work-info-item {}
.work-info-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 4px;
}
.work-info-value {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.02em;
  word-break: break-all;
}
.work-info-value a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(160,162,185,0.4);
  text-underline-offset: 2px;
}

/* Accent colors per project */
.project-01 .work-num { color: oklch(72% 0.12 65 / 0.32); }
.project-01 .work-tag { border-color: oklch(72% 0.12 65 / 0.28); }
.project-02 .work-num { color: oklch(60% 0.11 172 / 0.28); }
.project-02 .work-tag { border-color: oklch(60% 0.11 172 / 0.28); }
.project-03 .work-num { color: oklch(62% 0.12 44 / 0.28); }
.project-03 .work-tag { border-color: oklch(62% 0.12 44 / 0.28); }
.project-04 .work-num { color: oklch(44% 0.24 302 / 0.32); }
.project-04 .work-tag { border-color: oklch(44% 0.24 302 / 0.30); }

/* ── About section ───────────────────────────────────────────────────────── */
.about-intro {
  font-size: 16px;
  line-height: 1.9;
  color: #6e6e73;
  max-width: 640px;
  margin-bottom: 64px;
}
.about-intro p { margin-bottom: 18px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
}
.skill-card {
  padding: 28px;
  background: oklch(93.5% 0.007 222 / 0.78);
}
.skill-card-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
}
.skill-card-items {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

/* ── Contact section ─────────────────────────────────────────────────────── */
.contact-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-title {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.contact-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text3);
  max-width: 480px;
  margin-bottom: 36px;
}
.contact-links {
  display: flex;
  gap: 28px;
}
.contact-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.contact-links a:hover { border-color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  padding: 40px 64px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text3);
}
