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

/* ===== VARIABLES ===== */
:root {
  --bg: #f9f9f9;
  --primary: #1a1c1c;
  --secondary: #4c4546;
  --black: #000000;
  --white: #ffffff;
  --nav-h: 82px;
  --pad-x: 64px;
  --max-w: 1440px;
  --content-w: 1152px;
}

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background-color: var(--bg);
  color: var(--primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
}

/* ===== SHARED LABEL ===== */
.label-sm {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--secondary);
  letter-spacing: 1.2px;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.label-dark {
  color: var(--primary);
  letter-spacing: 0.6px;
}

/* ===== SECTION HEADER BORDER ===== */
.section-header {
  width: 100%;
  border-bottom: 2px solid var(--black);
  padding-bottom: 34px;
  display: flex;
  align-items: center;
}

/* ===== HEADER / NAV ===== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--black);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--black);
  letter-spacing: -1.6px;
  line-height: 40px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--secondary);
  letter-spacing: 0.6px;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* ===== MAIN ===== */
#main {
  margin-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 192px;
}

/* ===== HERO ===== */
.hero {
  width: 100%;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 123.45px var(--pad-x);
  min-height: 819px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--black);
  margin-bottom: 48px;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-title {
  font-family: 'Pretendard', sans-serif;
  font-weight: 900;
  font-size: 192px;
  color: var(--primary);
  letter-spacing: -9.6px;
  line-height: 172.8px;
  text-transform: uppercase;
  word-break: break-word;
}

.hero-bottom {
  width: 100%;
  padding-top: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero-desc {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--secondary);
  line-height: 32.5px;
  max-width: 672px;
  padding-right: 20px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

.meta-text {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--black);
  letter-spacing: 0.6px;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.meta-slash {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  color: var(--black);
  letter-spacing: 0.6px;
  line-height: 16px;
}

/* ===== SERVICES ===== */
.services {
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.services-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 129px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

.services-label-col {
  grid-column: 1 / span 4;
  padding-top: 6px;
}

.services-body {
  grid-column: 5 / span 8;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.services-heading {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: var(--primary);
  letter-spacing: -0.96px;
  line-height: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.service-item {
  border-top: 1px solid var(--black);
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.6px;
  line-height: 16px;
}

.service-item p {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--secondary);
  line-height: 24px;
}

/* ===== PROJECTS ===== */
.projects {
  width: 100%;
  max-width: var(--content-w);
  padding-top: 128px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.project-logo {
  width: 96px;
  height: 96px;
  background: #fff300;
  border-radius: 24px;
  box-shadow: 0px 8px 40px 0px rgba(255, 243, 0, 0.4);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.project-logo-img-wrap {
  position: absolute;
  width: 59.438px;
  height: 67.688px;
  left: 18.28px;
  top: 12.75px;
  overflow: hidden;
}

.project-logo-img-wrap img {
  position: absolute;
  width: 166.56%;
  height: 137.4%;
  left: -33.28%;
  top: -18.7%;
  max-width: none;
}

.project-name {
  font-family: 'Pretendard', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--primary);
  letter-spacing: -0.32px;
  line-height: 40px;
  text-align: center;
  margin-top: 16px;
}

.project-tagline {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--primary);
  line-height: 24px;
  text-align: center;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.status-icon {
  width: 16.667px;
  height: 16.667px;
}

/* ===== CONTACT / CTA ===== */
.contact {
  width: 100%;
  max-width: var(--content-w);
  padding-top: 128px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 128px;
  padding-bottom: 128px;
  gap: 0;
}

.available-text {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--secondary);
  letter-spacing: 1.2px;
  line-height: 16px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  margin-bottom: 55px;
}

.cta-title {
  font-family: 'Pretendard', sans-serif;
  font-weight: 900;
  font-size: 76.8px;
  color: var(--primary);
  letter-spacing: -3.84px;
  line-height: 76.8px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 128px;
}

.email-link {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.15s ease;
}

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

.email-text {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--primary);
  letter-spacing: -0.32px;
  line-height: 40px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.arrow-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
#footer {
  width: 100%;
  background: var(--bg);
  border-top: 2px solid var(--black);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--black);
  letter-spacing: -0.32px;
  line-height: 40px;
  white-space: nowrap;
}

.footer-copy {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--secondary);
  letter-spacing: 0.6px;
  line-height: 16px;
  white-space: nowrap;
}

/* ===== RESPONSIVE — TABLET (≤ 1024px) ===== */
@media (max-width: 1024px) {
  :root {
    --pad-x: 40px;
  }

  .hero-title {
    font-size: clamp(72px, 11vw, 192px);
    letter-spacing: clamp(-4px, -0.05em, -9.6px);
    line-height: 0.9;
  }

  .services-inner {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .services-label-col {
    grid-column: 1;
  }

  .services-body {
    grid-column: 1;
    gap: 64px;
  }

  .services-heading {
    font-size: 40px;
    line-height: 48px;
  }
}

/* ===== RESPONSIVE — MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
    --nav-h: 66px;
  }

  /* Nav */
  .nav-inner {
    height: 64px;
  }

  .logo {
    font-size: 22px;
    letter-spacing: -0.8px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 11px;
    letter-spacing: 0.4px;
  }

  /* Hero */
  .hero-inner {
    padding: 60px var(--pad-x);
    min-height: unset;
  }

  .hero-title {
    font-size: clamp(52px, 14vw, 120px);
    letter-spacing: clamp(-2.6px, -0.05em, -6px);
    line-height: 0.9;
  }

  .hero-desc {
    font-size: 16px;
    line-height: 26px;
    max-width: 100%;
    padding-right: 0;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 32px;
  }

  /* Services */
  .services-inner {
    padding: 80px var(--pad-x);
  }

  .services-heading {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.64px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Projects */
  .projects {
    padding: 80px var(--pad-x) 0;
    max-width: 100%;
    gap: 48px;
  }

  /* Contact */
  .contact {
    padding: 80px var(--pad-x) 0;
    max-width: 100%;
  }

  .contact-body {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cta-title {
    font-size: clamp(40px, 10vw, 76.8px);
    letter-spacing: clamp(-2px, -0.05em, -3.84px);
    line-height: 1;
    white-space: normal;
    margin-bottom: 64px;
  }

  .available-text {
    white-space: normal;
    text-align: center;
    margin-bottom: 40px;
  }

  .email-text {
    font-size: clamp(18px, 4.5vw, 32px);
    word-break: break-all;
  }

  /* Footer */
  .footer-inner {
    padding: 40px var(--pad-x);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-logo {
    font-size: 24px;
  }

  /* Main */
  #main {
    padding-bottom: 96px;
  }
}

/* ===== RESPONSIVE — SMALL MOBILE (≤ 480px) ===== */
@media (max-width: 480px) {
  :root {
    --pad-x: 20px;
  }

  .hero-title {
    font-size: clamp(44px, 15vw, 80px);
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 10px;
    letter-spacing: 0.3px;
  }

  .logo {
    font-size: 20px;
  }

  .cta-title {
    font-size: clamp(36px, 12vw, 60px);
  }

  .email-text {
    font-size: clamp(15px, 4vw, 22px);
  }
}
