:root {
  --bg: #f5f2ea;
  --surface: #fffdfa;
  --ink: #141414;
  --muted: #5b5a57;
  --line: #d8d2c5;
  --primary: #0059ff;
  --accent: #ff5c31;
  --primary-soft: #dbe7ff;
  --accent-soft: #ffdcd2;
  --shadow: 0 16px 50px rgba(20, 20, 20, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(24px);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 11s ease-in-out infinite;
}

.blob-a {
  width: 380px;
  height: 380px;
  background: var(--primary-soft);
  top: -120px;
  left: -80px;
}

.blob-b {
  width: 460px;
  height: 460px;
  background: var(--accent-soft);
  right: -110px;
  top: 240px;
  animation-delay: 1.2s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20, 20, 20, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-family: "Space Grotesk", sans-serif;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #1f7aff);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

.brand-name {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-header nav a.active {
  color: var(--ink);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-btn.active {
  background: var(--ink);
  color: #fff;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
}

.section {
  margin-top: 4.8rem;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2.45rem);
  line-height: 1.2;
}

.hero {
  display: grid;
  grid-template-columns: 1.38fr 0.62fr;
  gap: 1rem;
}

.hero-main,
.hero-card,
.fit-card,
.project-card,
.timeline-card,
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 1.75rem 1.8rem;
}

.hero h1 {
  margin: 0.6rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 2.6vw + 0.8rem, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

html:lang(ja) .hero h1 {
  font-size: clamp(2rem, 2.6vw + 0.8rem, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero h1 span {
  display: block;
  width: fit-content;
  margin-top: 0.06em;
  margin-left: -0.2em;
  padding: 0.1em 0.2em;
  background: linear-gradient(120deg, rgba(0, 89, 255, 0.16), rgba(255, 92, 49, 0.18));
  border-radius: 10px;
}


.hero-copy {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 89, 255, 0.27);
}

.btn-primary:hover {
  background: #0044c3;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.metric-grid {
  list-style: none;
  padding: 0;
  margin: 1.7rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric-grid li {
  border-radius: 14px;
  padding: 0.75rem;
  background: #fdfaf4;
  border: 1px solid var(--line);
}

.metric-grid strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
}

.metric-grid span {
  font-size: 0.84rem;
  color: var(--muted);
}

.fit-tags {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fit-tags li {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #c6dafc;
  color: #0b429f;
  background: #edf3ff;
}

.hero-card {
  padding: 1rem 1rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.hero-card-intro {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-card-top {
  display: grid;
  grid-template-columns: minmax(124px, 42%) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.hero-card-profile {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 28%;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid var(--line);
  background: #f0ebe2;
}

.hero-card-body {
  padding: 0.04rem 0.02rem 0;
  display: grid;
  gap: 0.3rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.34;
}

.hero-card-body > p {
  display: grid;
  grid-template-columns: 2.85em minmax(0, 1fr);
  column-gap: 0.42rem;
  align-items: start;
}

.hero-card-body > p > span:first-child {
  display: block;
  margin-right: 0;
}

.hero-card-body > p:first-child {
  margin-top: 0.25rem;
}

.hero-card-contact {
  margin-top: 0;
  padding-top: 0.55rem;
  padding-left: 0.08rem;
  border-top: 1px solid #e7ecf5;
}

.hero-card-contact h4 {
  margin: 0 0 0.2rem;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.22;
}

.hero-card-contact p {
  margin: 0 0 0.16rem;
  color: #1d2330;
  font-size: 1.06rem;
  line-height: 1.32;
}

.hero-card span {
  color: var(--ink);
  font-weight: 700;
  margin-right: 0.45rem;
}

.hero-card-footer-wrap {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-card-footer-title {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding-left: 0.08rem;
  margin-bottom: 0.80rem;
}

.hero-card-footer {
  width: 100%;
  aspect-ratio: 1080 / 367;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #f5f7fb;
}

.fit-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.fit-card {
  padding: 1.2rem;
}

.fit-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.fit-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.jp-card {
  border-left: 6px solid var(--accent);
  background: linear-gradient(180deg, #fffdfa, #fff4ee);
}

.requirement-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.requirement-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.requirement-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.requirement-card ul {
  margin: 0.68rem 0 0;
  padding-left: 1rem;
}

.requirement-card li {
  margin-top: 0.32rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.project-rationale {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d4e1ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #f6f9ff, #eef4ff);
}

.project-rationale strong {
  display: block;
  font-size: 0.96rem;
}

.project-rationale p {
  margin: 0.5rem 0 0;
  color: #3f4d68;
  font-size: 0.9rem;
}

.project-card {
  padding: 1.2rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(15, 30, 60, 0.1);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.project-top h3 {
  margin: 0;
  font-size: 1.1rem;
}

.project-top span {
  font-family: "Space Grotesk", sans-serif;
  color: var(--muted);
  font-size: 0.85rem;
}

.project-one-liner {
  margin: 0.6rem 0 0;
  color: #2a2a2a;
  font-size: 0.95rem;
  font-weight: 600;
}

.project-type {
  margin: 0.52rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #3b4e73;
}

.project-card ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.project-card li {
  margin-top: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.project-card li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.35rem;
}

.stack {
  margin: 0.8rem 0 0;
  display: inline-flex;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: #f3f7ff;
  border: 1px solid #d4e1ff;
  color: #0b429f;
  font-size: 0.78rem;
  font-weight: 700;
}

.project-links {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.65rem;
}

.project-grid > .project-card {
  display: block;
}

.project-grid > .project-card > .project-proof {
  margin-top: 0.75rem;
}

@media (min-width: 961px) {
  html:lang(ja) .project-grid > .project-card:nth-child(2) ul::after {
    content: "";
    display: block;
    height: 1.25em;
  }

  .project-grid > .project-card:nth-child(-n + 2) {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .project-grid > .project-card:nth-child(-n + 2) > .stack {
    margin-bottom: 0.75rem;
  }

  .project-grid > .project-card:nth-child(-n + 2) > .project-proof {
    margin-top: auto;
  }
}

.inline-link {
  margin-top: 0.55rem;
  display: inline-flex;
  color: #1248a8;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  font-size: 0.9rem;
}

.project-proof {
  margin-top: 0.95rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 16 / 9;
}

.project-proof img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #f8f8f8;
}

.achievement-layout {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.timeline-card {
  padding: 1.2rem;
}

.timeline-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.timeline {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  border-left: 2px dashed #c9d7f0;
}

.timeline li {
  padding-left: 0.75rem;
  margin-top: 0.9rem;
  position: relative;
}

.timeline li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: -6px;
  top: 0.45rem;
}

.timeline span {
  font-family: "Space Grotesk", sans-serif;
  color: var(--primary);
  font-size: 0.82rem;
}

.timeline p,
.style-list li {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.style-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.style-list li {
  margin-top: 0.55rem;
}

.style-list li::before {
  content: "↳";
  color: var(--accent);
  margin-right: 0.35rem;
}

.contact {
  padding: 1.7rem;
  background: linear-gradient(140deg, rgba(0, 89, 255, 0.07), rgba(255, 92, 49, 0.1));
}

.contact-copy {
  margin: 0.95rem 0 0;
  color: #3f3f3f;
  font-size: 1rem;
}

.contact-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  animation: reveal-in 0.55s ease both;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -20px, 0);
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .fit-grid,
  .project-grid,
  .requirement-grid {
    grid-template-columns: 1fr;
  }

  .achievement-layout {
    grid-template-columns: 1fr;
  }

  .project-card ul {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    border-radius: 18px;
    padding: 0.7rem 0.9rem;
  }

  .header-tools {
    margin-left: auto;
  }

  .site-header nav {
    display: none;
  }

  main {
    margin-top: 1.4rem;
  }

  .hero-main,
  .contact {
    padding: 1.2rem;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

}
