/* ============================================================
   COMPONENT STYLES — Kihyun Louis Park · Portfolio
   Design tokens live in css/tokens.css (loaded first).
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--text); color: var(--bg); }
.section-fill {
  width: 100%;
  height: 90vh;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(var(--blur-nav));
}

/* left — logo wordmark */
.nav-brand {
  justify-self: start;
  display: inline-flex; align-items: center;
  text-decoration: none;
  color: var(--text);
}
.nav-logo { height: 24px; width: auto; display: block; }

/* center — section links (Body 2 / medium) */
.nav-links {
  justify-self: center;
  display: flex; align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  font-size:      var(--body-2-size);
  line-height:    var(--body-2-line);
  letter-spacing: var(--tracking);
  font-weight:    var(--weight-medium);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }

/* Button — reusable, tokenized (used in nav + hero) */
.btn {
  display: inline-flex; align-items: center;
  font-size:      var(--body-2-size);
  line-height:    var(--body-2-line);
  letter-spacing: var(--tracking);
  font-weight:    var(--weight-regular);
  color: var(--btn-fg);
  background: var(--btn-bg);
  padding: 6px 12px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.btn:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
}

/* right — CTA position in nav */
.nav-cta { justify-self: end; }

/* ── HERO ── */
.hero {
  max-width: 556px;
  margin: 0 auto;
  display: flex;
  flex-flow: column;
  place-content: center;
  align-items: center;
  gap: 20px;   /* headline ↔ CTA spacing */
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-hero);
  font-size:      var(--title-1-size);
  line-height:    var(--title-1-line);
  letter-spacing: var(--tracking-tight);
  font-weight:    var(--weight-regular);
  max-width: 1200px;
  color: var(--text);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.2s;
}

.hero .btn {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.1s;
}

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── ABOUT ME · media band ── */
.about-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 40px 48px;
}
.about-media-item {
  width: 100%;
  max-width: 1200px;
  height: 200px;
  background: var(--grey-200);   /* placeholder fill */
  object-fit: cover;             /* applies once it's an <img> */
  display: block;
}

.about-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 박스 비율에 맞춰 잘라 채움 */
  display: block;
}

/* ── ABOUT ME · intro ── */
.about-me {
  padding: 80px 60px;
  flex-direction: column;
  text-align: left;
  display: flex;
  justify-content: flex-start;
}

.about-me-inner {
  max-width: 556px;
  margin: 0 auto;
}

.about-me-label {
  height: 24px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
.about-me-text {
  max-width: 556px;          /* intro never exceeds 550px */
  font-size:      var(--body-2-size);
  line-height:    var(--body-2-line);
  letter-spacing: var(--tracking);
  color: var(--text-dim);
}

.about-me-headline{
  max-width: 556px;         
  font-family: var(--font-display);
  font-size:      var(--title-3-size);
  line-height:    var(--title-3-line);
  letter-spacing: var(--tracking-tight);
  font-weight:    var(--weight-semibold);
  color: var(--text);
  margin-bottom: 12px;
}

/* section — full-width wrapper; this padding sits OUTSIDE the grey box */
.myPOV {
  padding: 80px 48px;
  text-align: left;
}

.myPOV-inner {
  max-width: 556px;          /* 556 content + 40px padding each side */
  margin: 0 auto;
  background: var(--grey-100);
  padding: 40px;
  border-radius: 12px;
}

.myPOV-headline{
  max-width: 556px;
  font-family: var(--font-display);
  font-size:      var(--title-3-size);
  line-height:    var(--title-3-line);
  letter-spacing: var(--tracking-tight);
  font-weight:    var(--weight-semibold);
  color: var(--text);
  margin-bottom: 12px;
}

.myPOV-text{
  max-width: 556px;         
  font-size:      var(--body-2-size);
  line-height:    var(--body-2-line);
  letter-spacing: var(--tracking);
  color: var(--text-dim);
}

/* ── CAPABILITIES ── */
.capabilities {
  padding: 80px 48px;
  text-align: left;
}
.capabilities-inner {
  max-width: 556px;
  margin: 0 auto;
}
.cap-headline {
  font-family: var(--font-display);
  font-size:      var(--title-2-size);
  line-height:    var(--title-2-line);
  letter-spacing: var(--tracking-tight);
  font-weight:    var(--weight-medium);
  color: var(--text);
  margin-bottom: 48px;
}
.cap-group {
  margin-bottom: 48px;
}
.cap-label {
  font-size:      var(--body-2-size);
  line-height:    var(--body-2-line);
  letter-spacing: var(--tracking);
  font-weight:    var(--weight-semibold);
  color: var(--text);
  margin-bottom: 16px;
}
.cap-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* each chip shrinks to content, one per line */
  gap: 8px;
}
.cap-services {
  display: inline-block;
  font-size:      var(--body-2-size);
  line-height:    var(--body-2-line);
  letter-spacing: var(--tracking);
  font-weight:    var(--weight-medium);
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── PROFILE · self-intro above footer ── */
.profile {
  padding: 0px 48px 80px;
  text-align: left;
}
.profile-inner {
  max-width: 556px;
  margin: 0 auto;
}
.profile-headline {
  max-width: 556px;
  font-family: var(--font-display);
  font-size:      var(--title-3-size);
  line-height:    var(--title-3-line);
  letter-spacing: var(--tracking-tight);
  font-weight:    var(--weight-medium);
  color: var(--text);
  margin-bottom: 12px;
}
.profile-text {
  max-width: 556px;
  font-size:      var(--body-2-size);
  line-height:    var(--body-2-line);
  letter-spacing: var(--tracking);
  color: var(--text-dim);
  margin-bottom: 40px;
}
.profile-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--grey-200);   /* placeholder until real photo */
  border-radius: 16px;
  overflow: hidden;              /* clip image to rounded box */
  display: block;
  margin-bottom: 24px;
}
.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fill the box, crop overflow */
  display: block;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── LOGO STRIP · affiliations ── */
.logo-strip {
  padding: 100px 48px;
  display: flex;
  justify-content: center;
}
.logo-strip-inner {
  width: 100%;
  max-width: 1200px;       /* cap width, center via margin auto */
  display: flex;
  align-items: center;
  justify-content: space-between;   /* auto-distribute across 1200 */
  flex-wrap: wrap;
  gap: 40px;
}
.logo-strip-item {
  height: 40px; 
  padding: 0px 40px;          
  width: auto;
  display: block;
}

/* ── ABOUT + WORK SECTION ── */
.two-col-section {
  padding: 0px 48px;
  margin-left: 281px;
}
.two-col-row {
  display: grid;
  grid-template-columns: 280px 120px 1fr;
  gap: 0;
  margin-bottom: 80px;
  align-items: start;
}
.two-col-row:last-child { margin-bottom: 0; }
.col-line {
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
}
.col-line::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: var(--text-muted);
  margin-top: 8px;
}
.col-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  padding-top: 4px;
}
.col-date {
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 6px;
}
.col-content {
  font-family: var(--font-body-serif);
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4em;
  letter-spacing: 0.02em;
  max-width: 600px;
}

/* ── PROJECTS SECTION · two-column gallery ── */
.projects-section {
  padding: 60px 0;
}
/* row container (.framer-1lmpllv) */
.projects-row {
  background-color: #fff;
  display: flex;
  flex-flow: row;
  place-content: flex-start center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  height: min-content;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}
/* columns — stack cards with 80px row gap */
.projects-col {
  display: flex;
  flex-flow: column;
  place-content: center flex-start;
  align-items: center;
  gap: 80px 20px;
  height: min-content;
  padding: 0;
  position: relative;
}
.projects-col--lead { width: 60%; flex: none; }     /* .framer-1dtuldn */
.projects-col--fill { width: 1px; flex: 1 0 0; }    /* .framer-1flf5tc */

/* card */
.project-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;   /* card is now a link */
  color: inherit;
}
.project-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--grey-200);
  border-radius: 8px;
  object-fit: cover;   /* crop thumbnail to box */
  display: block;
}
.project-card-title {
  font-size:      var(--title-3-size);
  line-height:    var(--title-3-line);
  letter-spacing: var(--tracking-tight-tighter);
  font-weight:    var(--weight-medium);
  color: var(--text);
}
.project-card-desc {
  font-size:      var(--body-2-size);
  line-height:    var(--body-2-line);
  letter-spacing: var(--tracking);
  color: var(--text-dim);
}
.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.proj-tag {
  padding: 4px 12px;
  background: var(--grey-100);
  border-radius: 100px;
  font-size:   var(--caption-1-size);
  line-height: var(--caption-1-line);
  font-weight: var(--weight-medium);
  color: var(--text-dim);
}

/* ── PROJECTS · last 3 in a 3-up row ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 80px 20px 0;   /* top gap separates from the 2-col feature */
}
.proj-row-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;   /* card is now a link */
  color: inherit;
}
.proj-row-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--grey-200);
  border-radius: 12px;
  object-fit: cover;   /* crop thumbnail to box */
  display: block;
}

/* card hover — subtle feedback now that cards are clickable */
.project-card-media,
.proj-row-media { transition: opacity 0.3s; }
.project-card:hover .project-card-media,
.proj-row-card:hover .proj-row-media { opacity: 0.88; }
.proj-row-title {
  font-size:      var(--title-3-size);
  line-height:    var(--title-3-line);
  letter-spacing: var(--tracking-tight);
  font-weight:    var(--weight-medium);
  color: var(--text);
}
.proj-row-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.proj-row-tag {
  padding: 5px 12px;
  border-radius: 8px;
  font-size:   var(--caption-1-size);
  line-height: var(--caption-1-line);
  font-weight: var(--weight-medium);
  background: var(--grey-100);
  color: var(--text-dim);
}
.proj-row-tag--accent {
  background: var(--tag-accent-bg);
  color: var(--tag-accent-fg);
}

/* ── FOOTER ── */
footer {
  padding: 48px 16px;
  background-color: var(--grey-900);
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-size: 12px;
  color: var(--grey-50);
}
/* left-aligned link column — 16px between items */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  width: fit-content;
  color: var(--grey-50);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
/* © + location row — kept stretched to the edges, below the links */
.footer-meta {
  display: flex;
  justify-content: space-between;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
/* ============================================================
   CASE STUDY · shared detail-page layout (projects/*.html)
   Title block (full-width) → Overview (sticky 40% / scroll 60%).
   Per-project CSS files add accents/specifics on top of this.
   ============================================================ */
.case { width: 100%; }

/* ── Title block — full-width, left-aligned headline ── */
.case-head {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  padding: 140px 16px 40px;
}

.case-title {
  max-width: 900px;
  font-family: var(--font-display);
  font-size:      var(--title-1-size);
  line-height:    var(--title-1-line);
  letter-spacing: var(--tracking-tight);
  font-weight:    var(--weight-semibold);
  color: var(--text);
}

/* ── Overview — sticky visual (left) + scrolling content (right) ── */
.case-overview {
  display: flex;
  align-items: flex-start;
  width: 100%;
}
.case-aside {
  position: sticky;
  top: 0;
  flex: 0 0 40%;
  width: 40%;
  height: 90vh;
  overflow: hidden;
  padding: 65px 40px 40px;
  z-index: 1;
}
.case-aside-media {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--grey-100);
}
.case-aside-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-flow: column;
  gap: 20px;
  padding: 60px 40px 120px 0;
}

/* meta: project name + tag chips */
/* name + tags grouped; wrapper owns the 8px gap and the gap to first block */
.case-name-area {
  display: flex;
  flex-direction: column;
  gap: 8px;            /* name ↔ tags */
  margin-bottom: 48px; /* area ↔ first block */
}
.case-name {
  font-family: var(--font-display);
  font-size:      var(--title-3-size);
  line-height:    var(--title-3-line);
  letter-spacing: var(--tracking-tight);
  font-weight:    var(--weight-semibold);
  color: var(--text);
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-tag {
  padding: 6px 12px;
  background: var(--grey-100);
  border-radius: 100px;
  font-size:      var(--caption-1-size);
  line-height:    var(--caption-1-line);
  letter-spacing: var(--tracking);
  font-weight:    var(--weight-medium);
  color: var(--text-dim);
}

/* content blocks: label + body, divided by hairlines */
.case-block {
  display: flex;
  flex-flow: column;
  gap: 12px;
}
.case-block:last-child { border-bottom: 1px solid var(--border); }
.case-block-label {
  font-size:      var(--body-2-size);
  line-height:    var(--body-2-line);
  letter-spacing: var(--tracking);
  font-weight:    var(--weight-medium);
  color: var(--text-muted);
}
.case-block-text {
  max-width: 620px;
  font-size:      var(--body-2-size);
  line-height:    var(--body-2-line);
  letter-spacing: var(--tracking);
  font-weight:    var(--weight-regular);
  color: var(--text-dim);
}
.case-block-text + .case-block-text { margin-top: 8px; }

@media (max-width: 900px) {
  /* logo ← stretched → CTA, 20px side margins */
  nav { display: flex; justify-content: space-between; padding: 16px 20px; }
  .hero { padding: 100px 24px 60px; }
  .hero h1 { letter-spacing: -1.5px; }
  .two-col-section { padding: 60px 24px; margin-left: 0; }
  .two-col-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 60px;
  }
  .col-line { display: none; }
  .col-date { margin-bottom: 4px; }
  .projects-section { padding: 60px 0; }
  /* stack the two project columns on mobile */
  .projects-row { flex-flow: column; gap: 40px; }
  .projects-col--lead,
  .projects-col--fill { width: 100%; flex: none; }
  /* 3-up row → single column on mobile */
  .projects-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  footer { padding: 24px; gap: 24px; }
  .footer-meta { flex-direction: column; gap: 8px; }

  /* nav — hide center links, keep logo + CTA */
  .nav-links { display: none; }

  /* new sections — tighten side padding on mobile */
  .about-media { padding: 40px 24px; gap: 12px; }
  .about-media-item { height: 60px; }
  .about-me { padding: 60px 24px; }
  .myPOV { padding: 48px 24px; }
  .myPOV-inner { padding: 24px; }
  .capabilities { padding: 60px 24px; }
  .profile { padding: 0 24px 60px; }
  .logo-strip { padding: 60px 24px; }
  .logo-strip-inner { justify-content: center; gap: 24px 32px; }
  .logo-strip-item { padding: 0 16px; }

  /* case study — stack: title, then visual above scrolling content */
  .case-head { padding: 120px 24px 48px; }
  .case-overview { flex-flow: column; }
  .case-aside {
    position: static;
    width: 100%;
    flex: none;
    height: 240px;
    padding: 0 24px 24px;
  }
  .case-body { padding: 24px 24px 80px; }
}
