/* ═══════════════════════════════════════════════════════════════
   INDEX.CSS — Home Page · Grey Studio
═══════════════════════════════════════════════════════════════ */

#main-content { padding-top: 0; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 72px;
  border-bottom: 1px solid var(--border);
}

/* Top bar */
.hero-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--header-height) + 32px) 0 40px;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(8px);
  animation: fadeUp 0.5s ease 0.1s forwards;
}
.hero-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 400; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 2px;
}
.status-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #3d9e6e;
  animation: pulseDot 2.6s ease-in-out infinite;
}
.hero-loc { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 2px; }

/* Center — name */
.hero-center {
  display: flex;
  align-items: flex-end;
  padding: 48px 0 0;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 80px);
  font-weight: 700;
  line-height: 1.0; letter-spacing: -1.8px;
  color: var(--text-1);
  user-select: none; align-self: end;
}
.hero-line { display: block; opacity: 0; transform: translateY(32px); }
.hero-line:nth-child(1) { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.25s forwards; }
.hero-line:nth-child(2) { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.38s forwards; }

/* Bottom bar */
.hero-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.5s ease 0.55s forwards;
}
.hero-role { font-size: 13.5px; font-weight: 400; color: var(--text-2); line-height: 1.7; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-1); text-decoration: none;
  background: var(--text-1); color: var(--bg);
  border-radius: 40px; padding: 12px 22px;
  transition: opacity 0.2s;
}
.hero-cta:hover { opacity: 0.78; }
.hero-cta i { font-size: 10px; }

/* ── MARQUEE ─────────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 13px 0; white-space: nowrap; background: var(--bg-surface);
}
.marquee-inner {
  display: inline-flex; gap: 36px;
  animation: marqueeScroll 24s linear infinite;
  font-family: var(--font-body);
  font-size: 10px; font-weight: 500;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 2.5px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-inner span:nth-child(even) { color: var(--text-2); }

/* ── SELECTED WORK ───────────────────────────────────────────── */
.work-section { padding: 0 72px 80px; }

.work-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0 0; margin-bottom: 0;
}
.work-label {
  font-size: 10px; font-weight: 500; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 3px;
}
.work-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--text-3); text-decoration: none;
  text-transform: uppercase; letter-spacing: 1.5px;
  transition: color 0.18s;
}
.work-all:hover { color: var(--text-1); }
.work-all i { font-size: 9px; }

.work-list { list-style: none; }
.work-item {
  display: grid;
  grid-template-columns: 1fr 160px 80px;
  align-items: center; gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(10px);
  transition: background 0.18s;
}
.work-item:first-child { border-top: 1px solid var(--border); }
.work-item.visible { animation: fadeUp 0.5s ease forwards; }
.work-list:hover .work-item { opacity: 0.3; }
.work-list:hover .work-item:hover { opacity: 1; background: var(--bg-surface); }

.work-item-name {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 700; letter-spacing: -0.4px; line-height: 1.2;
  color: var(--text-1); transition: color 0.15s; padding-left: 8px;
}
.work-item:hover .work-item-name { color: var(--text-2); }
.work-item-cat {
  font-size: 10px; font-weight: 400; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1.5px;
  text-align: center;
}
.work-item-year {
  font-size: 11px; font-weight: 400; color: var(--text-3);
  text-align: right; padding-right: 8px;
}

/* Skeleton */
.work-skeleton {
  height: 62px; border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Hover preview image */
.work-hover-img {
  position: fixed; pointer-events: none; z-index: 200;
  width: 260px; height: 180px; object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  opacity: 0; transform: scale(0.9) rotate(-1.5deg);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22,1,0.36,1);
  will-change: transform, opacity;
}
.work-hover-img.show { opacity: 1; transform: scale(1) rotate(0deg); }

/* ── HOME SECTIONS — teaser tiap menu ───────────────────────── */
.home-section {
  padding: 56px 72px;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.home-section.visible { opacity: 1; transform: translateY(0); }

.hs-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px;
}
.hs-label {
  font-size: 10px; font-weight: 500; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 3px;
}
.hs-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--text-3); text-decoration: none;
  text-transform: uppercase; letter-spacing: 1.5px;
  transition: color 0.18s;
}
.hs-all:hover { color: var(--text-1); }
.hs-all i { font-size: 9px; }

/* About teaser */
.ha-bio {
  font-family: var(--font-body);
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 300; line-height: 1.55;
  color: var(--text-1);
  max-width: 30em; margin-bottom: 32px;
}
.ha-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.ha-stat { display: flex; align-items: baseline; gap: 10px; }
.ha-stat-num {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 700; color: var(--text-1); line-height: 1;
  letter-spacing: -0.5px;
}
.ha-stat-lbl {
  font-size: 10.5px; font-weight: 500; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1.5px;
}

/* Experience teaser */
.he-row {
  display: grid;
  grid-template-columns: 220px 1fr auto 20px;
  align-items: baseline; gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}
.he-row:first-child { border-top: 1px solid var(--border); }
.he-period { font-size: 12px; color: var(--text-3); letter-spacing: 0.3px; }
.he-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 700; letter-spacing: -0.3px;
  color: var(--text-1); transition: color 0.15s;
}
.he-row:hover .he-title { color: var(--text-2); }
.he-company { font-size: 12px; color: var(--text-2); text-align: right; }
.he-arrow {
  font-size: 10px; color: var(--text-3);
  opacity: 0; transform: translateX(-5px);
  transition: opacity 0.2s, transform 0.2s;
}
.he-row:hover .he-arrow { opacity: 1; transform: translateX(0); }

/* Skills teaser */
.hk-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px 40px;
}
.hk-cat {
  font-size: 10.5px; font-weight: 500; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 2px;
  display: block; margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.hk-names { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.hk-names li {
  font-family: var(--font-body); font-size: 14px; font-weight: 400;
  color: var(--text-2);
}

/* Credentials teaser */
.hc-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.hc-col-head {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none;
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.hc-col-title {
  font-size: 10.5px; font-weight: 500; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 2px;
  transition: color 0.18s;
}
.hc-col-head:hover .hc-col-title { color: var(--text-1); }
.hc-col-count { font-size: 10.5px; color: var(--text-3); }
.hc-row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.hc-row:last-child { border-bottom: none; }
.hc-name {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 700; letter-spacing: -0.2px; line-height: 1.35;
  color: var(--text-1); transition: color 0.15s;
}
.hc-row:hover .hc-name { color: var(--text-2); }
.hc-sub { font-size: 12px; color: var(--text-3); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.home-footer {
  border-top: 1px solid var(--border);
  padding: 56px 72px 44px;
  background: var(--bg-surface);
}
.footer-cta { margin-bottom: 48px; }
.footer-big {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 700; letter-spacing: -1px; line-height: 1.05;
  color: var(--text-1); margin-bottom: 24px;
}
.footer-email {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 400; color: var(--text-2);
  text-decoration: none; transition: color 0.18s;
  border-bottom: 1px solid var(--border-mid); padding-bottom: 3px;
}
.footer-email:hover { color: var(--text-1); border-color: var(--text-1); }
.footer-email i { font-size: 10px; }

.footer-meta { display: flex; justify-content: space-between; align-items: flex-end; }
.footer-socials { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-socials a {
  font-size: 10px; color: var(--text-3); text-decoration: none;
  text-transform: uppercase; letter-spacing: 1.5px; transition: color 0.18s;
}
.footer-socials a:hover { color: var(--text-1); }
.footer-copy { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }

/* ── MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 0 20px; grid-template-rows: auto 1fr auto; }
  .hero-top { padding-top: calc(var(--header-height) + 20px); }
  .hero-name { font-size: clamp(34px, 8.5vw, 52px); letter-spacing: -1.2px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work-section { padding: 0 20px 56px; }

  .home-section { padding: 36px 20px; }
  .hs-head { margin-bottom: 24px; }
  .ha-bio { font-size: 17px; margin-bottom: 24px; }
  .ha-stats { gap: 28px; }
  .ha-stat-num { font-size: 21px; }

  .he-row {
    grid-template-columns: 1fr 16px;
    grid-template-areas: "period arrow" "title arrow" "company arrow";
    gap: 3px 10px; padding: 14px 0;
  }
  .he-period  { grid-area: period; font-size: 11px; }
  .he-title   { grid-area: title; font-size: 16px; }
  .he-company { grid-area: company; text-align: left; font-size: 11.5px; }
  .he-arrow   { grid-area: arrow; align-self: center; opacity: 1; transform: none; }

  .hk-groups { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hk-names li { font-size: 13px; }

  .hc-cols { grid-template-columns: 1fr; gap: 32px; }
  .work-item { grid-template-columns: 1fr auto; gap: 12px; }
  .work-item-cat { display: none; }
  .home-footer { padding: 40px 20px 36px; }
  .footer-big { letter-spacing: -1.5px; }
  .footer-meta { flex-direction: column; gap: 20px; align-items: flex-start; }
}
