@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;200;300;400&display=swap');

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

body {
  background: #ffffff;
  color: #1a1828;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ── */
.ps-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4%;
  border-bottom: 1px solid #1e1e2a;
}

.ps-nav-back {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5a5870;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.2s;
}

.ps-nav-back:hover { color: #1a1828; }

.ps-nav-brand {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5a5870;
}

/* ── Page container ── */
.kaf-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 4% 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Header ── */
.kaf-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #1e1e2a;
  margin-bottom: 0;
}

.kaf-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #1a1828;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.kaf-meta {
  font-size: clamp(0.62rem, 0.85vw, 0.75rem);
  letter-spacing: 0.06em;
  color: #5a5870;
  line-height: 1.5;
}

/* ── Hero ── */
.kaf-hero {
  width: 100%;
  margin-top: 0;
}

.kaf-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Two-column layout ── */
.kaf-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 2rem;
  margin-top: 3px;
  align-items: start;
}

.kaf-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kaf-columns--fill {
  display: flex;
  align-items: stretch;
  gap: 3px 2rem;
}

.kaf-columns--fill .kaf-col {
  flex: 1;
  min-width: 0;
}

/* ── Labeled cell ── */
.kaf-cell--labeled {
  position: relative;
}

.kaf-label {
  position: absolute;
  top: 0.6rem;
  left: 0.7rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #e8e6e0;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.1em 0.45em;
  z-index: 1;
}

/* ── Images ── */
.kaf-img {
  width: 100%;
  height: auto;
  display: block;
}

.kaf-img--cafe {
  width: 75%;
  height: auto;
  display: block;
  margin: 1rem 1rem 1rem auto;
}

.kaf-img--sq {
  width: 100%;
}

/* ── Captions ── */
.kaf-caption {
  font-size: clamp(0.72rem, 0.9vw, 0.84rem);
  line-height: 1.8;
  color: #2a2838;
  font-weight: 300;
  padding: 1rem 0.85rem;
  background: #ffffff;
}

.kaf-caption--lead {
  border-bottom: none;
}

/* ── Analysis grid (3 photos) ── */
.kaf-analysis {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3px;
}

.kaf-analysis img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Footer ── */
.kaf-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid #1e1e2a;
  margin-top: 1.25rem;
}

.kaf-footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.kaf-footer-text span {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(0.5rem, 1.1vw, 0.68rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a5870;
  line-height: 1.2;
}

.kaf-footer-back {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5a5870;
  transition: color 0.2s;
}

.kaf-footer-back:hover { color: #1a1828; }

/* ── About section (dark bio block) ── */
#about { background: #0a0a0a; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3.75%;
  align-items: stretch;
}
.about-photo { position: relative; }
.about-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.about-slide--active { opacity: 1; }
.about-content {
  padding: 3.75% 3.75% 3.75% 0;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.about-header { padding-top: 2.5rem; }
.about-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1rem, 1.75vw, 2.1rem);
  font-weight: 200; letter-spacing: 0.12em;
  color: #e8e6e0; line-height: 1.05; margin-bottom: 0.4rem;
}
.about-role-tag {
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #6a6870;
}
.about-bio {
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  line-height: 1.85; color: #a8a6a0;
}
.about-link {
  color: #e8e6e0; text-decoration: none;
  border-bottom: 1px solid rgba(232,230,224,0.35);
  transition: border-color 0.2s;
}
.about-link:hover { border-color: #e8e6e0; }
.about-cv {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: 1px solid #1e1e2a; margin-top: 0.5rem;
}
.about-cv-col {
  padding: 1.25rem 1.25rem 2.25rem 1.25rem;
  border-right: 1px solid #1e1e2a;
}
.about-cv-col:last-child { border-right: none; }
.about-cv-col--right { display: flex; flex-direction: column; gap: 0.6rem; }
.about-cv-sub + .about-cv-sub { padding-top: 0.6rem; }
.about-cv-title {
  font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: #e8e6e0; font-weight: 600;
  padding-bottom: 0.35rem; border-bottom: 1px solid #2a2a38; margin-bottom: 0.85rem;
}
.about-cv-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.45rem;
}
.about-cv-list li {
  font-size: 0.8rem; line-height: 1.3; color: #6a6870;
  display: flex; flex-direction: column; gap: 0.05rem;
}
.about-cv-year { font-size: 0.68rem; letter-spacing: 0.06em; color: #4a4a6a; }
.about-cv-org { font-size: 0.8rem; color: #a8a6a0; font-weight: 400; }
.about-cv-desc { font-size: 0.75rem; color: #5a5870; line-height: 1.35; }
.about-cv-steps { font-size: 0.72rem; color: #5a5870; line-height: 1.35; }
.about-cv-tools { font-size: 0.8rem; font-weight: 400; line-height: 1.35; color: #a8a6a0; }
.about-contact { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.75rem; }
.about-contact-label {
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: #6a6870;
  opacity: 1; transition: opacity 0.6s ease;
}
.about-qr-wrap { display: flex; align-items: flex-start; gap: 5rem; }
.about-qr-item { display: flex; flex-direction: column; align-items: center; }
.about-qr-link {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; text-decoration: none; opacity: 0.85; transition: opacity 0.2s;
}
.about-qr-link:hover { opacity: 1; }
.about-qr { width: 140px; height: auto; display: block; border-radius: 6px; }
.about-qr-label {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #a8a6a0;
}
.about-qr-link:hover .about-qr-label { color: #e8e6e0; }
.about-back-link { opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.about-back-link:hover { opacity: 1; color: #e8e6e0; }
.about-tap-links { display: none; }
.about-tap-btn {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 1.25rem; border: 1px solid #2a2a38;
  color: #a8a6a0; text-decoration: none;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.about-tap-btn:hover { border-color: #5a5870; color: #e8e6e0; background: rgba(255,255,255,0.03); }

/* ── Author block ── */
.kaf-author {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0 2.5rem;
  padding: 1.5rem 0 1.25rem;
  border-top: 1px solid #1e1e2a;
  margin-top: 1.5rem;
}

.kaf-author-tag {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a98b0;
  margin-bottom: 0.55rem;
}

.kaf-author-id .kaf-author-name {
  display: block;
  font-weight: 400;
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1828;
  margin-bottom: 0.2rem;
}

.kaf-author-id .kaf-author-title {
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  color: #5a5870;
}

.kaf-author-skills ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.kaf-author-skills li {
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  color: #2a2838;
  line-height: 1.7;
  padding-left: 1em;
  position: relative;
}

.kaf-author-skills li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #c8c6d8;
}

.kaf-author-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.kaf-author-contacts a {
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  color: #2a2838;
  transition: color 0.2s;
  display: block;
}

.kaf-author-contacts a:hover { color: #1a1828; }

/* ── Author statement (project-specific) ── */
.kaf-author-statement {
  grid-column: 1 / -1;
  padding-top: 1rem;
  margin-top: 0.85rem;
  border-top: 1px solid #e8e6f0;
}

.kaf-author-statement p {
  font-size: clamp(0.72rem, 0.95vw, 0.84rem);
  line-height: 1.85;
  color: #2a2838;
  font-weight: 300;
  font-style: italic;
  max-width: 72ch;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .kaf-inner { padding: 2.5rem 5% 2rem; }
  .kaf-columns { grid-template-columns: 1fr; }
  .kaf-columns--fill { flex-direction: column; }
  .kaf-img--cafe { width: 100%; margin: 0; }
  .kaf-analysis { height: 28vw; }
  .kaf-analysis img { object-fit: cover; }
  .kaf-author { grid-template-columns: 1fr; gap: 1.25rem 0; }
  .about-inner { grid-template-columns: 1fr; padding: 3rem 6%; gap: 2rem 0; }
  .about-photo { position: relative; height: auto; aspect-ratio: 4/5; width: 70%; margin: 0 auto; }
  .about-cv { grid-template-columns: 1fr; }
  .about-cv-col { border-right: none; border-bottom: 1px solid #1e1e2a; }
  .about-cv-col:last-child { border-bottom: none; }
  .about-qr-item { display: none; }
  .about-contact { padding-top: 1.75rem; }
  .about-tap-links { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
  .about-tap-btn { justify-content: center; padding: 1rem 1.25rem; font-size: 0.8rem; }
}
