:root {
  --bg: #eef3f8;
  --surface: #fffaf1;
  --surface-2: #ffffff;
  --ink: #172033;
  --navy: #0d1d3a;
  --muted: #667085;
  --line: #ccd7e4;
  --blue: #1f64e0;
  --teal: #078575;
  --amber: #c46a10;
  --coral: #e14d37;
  --green-soft: #e7f4eb;
  --blue-soft: #e7efff;
  --cream: #fff6e6;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.58;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 29, 58, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 29, 58, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f8fafc 0%, #eef3f8 52%, #f6efe2 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(13, 29, 58, 0.1);
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--navy);
  font-size: 20px;
  font-weight: 950;
}

.site-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 6px;
}

.site-nav a:hover {
  background: rgba(31, 100, 224, 0.08);
}

.nav-cta {
  border: 1px solid rgba(13, 29, 58, 0.16);
  background: #fff;
  color: var(--navy);
}

.site-nav a:hover,
.action-row a:hover,
.final-links a:hover,
.work-grid a:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.section {
  width: min(var(--max), calc(100vw - 48px));
  margin: 0 auto;
  padding: 92px 0;
  scroll-margin-top: 88px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  gap: 54px;
  align-items: center;
  width: min(calc(var(--max) + 64px), calc(100vw - 48px));
  margin-top: 28px;
  padding: 72px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 100, 224, 0.18), transparent 42%),
    linear-gradient(90deg, #0d1d3a 0%, #13284f 58%, #0c463f 100%);
  color: #fff;
  box-shadow: 0 28px 80px rgba(13, 29, 58, 0.24);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  word-break: keep-all;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(76px, 10vw, 132px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.24;
}

.name-en {
  margin-bottom: 40px;
  color: #56657a;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.hero .eyebrow,
.hero .name-en {
  color: #9ec5ff;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 36px;
  color: #eef6ff;
  font-size: clamp(25px, 3.4vw, 39px);
  font-weight: 850;
  line-height: 1.36;
  word-break: keep-all;
}

.contact-line,
.action-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-bottom: 18px;
}

.contact-line {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-line a,
.action-row a,
.final-links a,
.work-grid a,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.action-row a,
.final-links a,
.work-grid a {
  min-height: 46px;
  padding: 11px 16px;
  border-color: #b9c7d8;
  background: #fff;
  color: #102345;
  box-shadow: 0 1px 0 rgba(13, 29, 58, 0.05);
}

.action-row a:hover,
.final-links a:hover,
.work-grid a:hover {
  border-color: #102345;
  background: #f1f6ff;
  color: #102345;
}

.primary-action {
  min-height: 50px;
  padding: 13px 20px;
  border-color: #47d5a9;
  background: #47d5a9;
  color: #08172f;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.secondary-action {
  min-height: 50px;
  padding: 13px 20px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.primary-action:hover {
  background: #68efc2;
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero .contact-line a {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fbff;
}

.hero-summary {
  display: grid;
  gap: 12px;
  border-left: 0;
}

.hero-summary div {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-summary strong {
  color: #fff;
  font-size: 30px;
  line-height: 1.14;
  word-break: keep-all;
}

.hero-summary span {
  color: #9ec5ff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  word-break: keep-all;
}

.section-head {
  max-width: 920px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(13, 29, 58, 0.12);
}

.section-head p:not(.eyebrow) {
  max-width: 820px;
  margin: 18px 0 0;
  color: #4b5567;
  font-size: 19px;
  font-weight: 680;
  word-break: keep-all;
}

.featured-grid {
  display: grid;
  gap: 22px;
}

.project-card,
.work-card,
.skill-grid article,
.career-list article,
.work-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(13, 29, 58, 0.08);
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(440px, 1.18fr);
  gap: 30px;
  align-items: stretch;
  padding: 30px;
}

.project-feature:nth-child(even) {
  grid-template-columns: minmax(440px, 1.18fr) minmax(340px, 0.82fr);
}

.project-feature:nth-child(even) .project-text {
  order: 2;
}

.project-feature:nth-child(even) .project-image {
  order: 1;
}

.project-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(31, 100, 224, 0.24);
  border-radius: 5px;
  background: var(--blue-soft);
  color: #164ba7;
}

.project-meta span:last-child {
  border-color: rgba(7, 133, 117, 0.24);
  background: var(--green-soft);
  color: #086557;
}

.project-text p,
.work-card p,
.career-list p,
.work-grid p,
.ai-detail p {
  color: #3d485a;
  font-size: 16px;
  font-weight: 650;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.tag-list span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #c9d6e5;
  border-radius: 6px;
  background: #f4f8fc;
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.project-image {
  display: grid;
  min-height: 380px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f0e4;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-image.wide img {
  object-fit: cover;
}

.split-section {
  width: min(calc(var(--max) + 64px), calc(100vw - 48px));
  padding: 72px 32px;
  border: 1px solid rgba(13, 29, 58, 0.1);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(13, 29, 58, 0.09);
}

.ai-showcase {
  display: grid;
  gap: 22px;
}

.ai-infographic {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(16, 35, 69, 0.1);
}

.ai-infographic img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.ai-story {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ai-story-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.ai-story-card h3 {
  margin-bottom: 12px;
  font-size: 31px;
}

.flow-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.flow-list b {
  color: var(--navy);
  font-size: 17px;
}

.flow-list span {
  color: #4b5567;
  font-weight: 700;
}

.ai-screen-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.38fr);
  gap: 20px;
  align-items: stretch;
}

.ai-story > .tag-list,
.ai-story > .action-row {
  margin: 0;
}

.ai-web-shot,
.ai-app-shot {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf6ef;
  box-shadow: 0 18px 46px rgba(16, 35, 69, 0.16);
}

.ai-web-shot img,
.ai-app-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.ai-app-shot {
  max-width: 280px;
}

.ai-web-shot {
  align-self: stretch;
}

.ai-web-shot img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.ai-story .tag-list {
  margin: 0;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  padding: 24px;
}

.work-card.with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
}

.work-card.with-image img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.work-card.with-image.tap-feature {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  gap: 24px;
}

.tap-copy {
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 1fr);
  gap: 18px 26px;
  align-items: start;
}

.tap-copy h3 {
  margin-bottom: 0;
}

.tap-copy p {
  margin-bottom: 0;
  max-width: 720px;
}

.tap-copy .tag-list,
.tap-copy .action-row {
  grid-column: 2;
  margin: 0;
}

.work-card.with-image.tap-feature img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.game-feature {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: 30px;
  align-items: center;
}

.game-shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  max-width: 520px;
  margin-left: auto;
}

.game-shot-pair img {
  display: block;
  width: 100%;
  aspect-ratio: 584 / 1270;
  object-fit: cover;
  object-position: top center;
  overflow: hidden;
  border: 1px solid rgba(255, 190, 62, 0.28);
  border-radius: 18px;
  background: #070719;
  box-shadow: 0 16px 36px rgba(13, 29, 58, 0.16);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.skill-grid article {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 26px;
}

.skill-grid article::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--coral);
}

.skill-grid article:nth-child(2)::before {
  background: var(--blue);
}

.skill-grid article:nth-child(3)::before {
  background: var(--teal);
}

.skill-grid article:nth-child(4)::before {
  background: var(--amber);
}

.skill-grid img {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: 18px;
  object-fit: contain;
  object-position: left center;
}

.skill-icons {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  gap: 12px;
  margin-bottom: 18px;
}

.skill-icons img {
  width: 54px;
  height: 54px;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.skill-grid p {
  margin-bottom: 12px;
  color: #3d485a;
  font-weight: 800;
  word-break: keep-all;
}

.skill-grid span {
  color: #475569;
  font-size: 15px;
  font-weight: 780;
  word-break: keep-all;
}

.career-list {
  display: grid;
  gap: 14px;
}

.career-list article {
  display: grid;
  grid-template-columns: 190px 210px minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 22px 24px;
  background: #fff;
}

.career-list span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
}

.career-list h3,
.career-list p {
  margin-bottom: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-grid + .work-grid {
  margin-top: 18px;
}

.work-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.work-grid article {
  padding: 18px;
}

.work-grid img {
  display: block;
  width: 100%;
  height: 124px;
  margin-bottom: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.work-grid.compact img {
  height: 82px;
}

.work-grid.compact h3 {
  font-size: 18px;
}

.work-grid.compact p {
  min-height: 74px;
  font-size: 14px;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px 250px;
  gap: 24px;
  align-items: start;
}

.archive-list {
  display: grid;
  gap: 10px;
}

.archive-list span {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: #3d485a;
  font-weight: 760;
}

.archive-images {
  display: grid;
  gap: 12px;
}

.archive-images img {
  width: 100%;
  height: 136px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.final-links {
  display: grid;
  gap: 10px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 12px 24px;
  }

  .site-nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .section {
    width: min(100% - 32px, var(--max));
    padding: 56px 0;
  }

  .hero,
  .section-head,
  .project-feature,
  .ai-showcase,
  .compact-grid,
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 38px;
    width: min(100% - 32px, var(--max));
    padding: 44px 28px;
    padding-top: 58px;
    padding-bottom: 56px;
  }

  .section-head {
    gap: 14px;
  }

  .project-feature:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-feature:nth-child(even) .project-text,
  .project-feature:nth-child(even) .project-image {
    order: initial;
  }

  .split-section {
    width: min(100% - 32px, var(--max));
    padding: 48px 18px;
  }

  .hero-summary div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-image {
    min-height: 240px;
  }

  .skill-grid,
  .work-grid,
  .work-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    font-size: 13px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 33px;
  }

  .hero-lead {
    font-size: 23px;
  }

  .hero-summary {
    border-left: 0;
    border-top: 2px solid var(--navy);
  }

  .hero-summary div {
    padding: 18px 0;
  }

  .project-feature,
  .ai-story-card,
  .work-card {
    padding: 18px;
  }

  .ai-infographic {
    padding: 10px;
  }

  .flow-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .work-card.with-image,
  .game-feature,
  .tap-feature,
  .skill-grid,
  .work-grid,
  .work-grid.compact {
    grid-template-columns: 1fr;
  }

  .work-card.with-image img {
    height: 180px;
  }

  .contact-line a,
  .action-row a,
  .final-links a,
  .work-grid a,
  .primary-action,
  .secondary-action {
    width: 100%;
  }
}

/* Portfolio polish pass */
:root {
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 54px rgba(13, 29, 58, 0.10);
  --shadow-strong: 0 30px 90px rgba(13, 29, 58, 0.18);
}

body {
  letter-spacing: -0.01em;
}

body::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 100, 224, 0.10), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(7, 133, 117, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(13, 29, 58, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 29, 58, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f8fafc 0%, #eef3f8 52%, #f6efe2 100%);
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
}

.site-header {
  min-height: 70px;
  background: rgba(248, 250, 252, 0.82);
  box-shadow: 0 10px 34px rgba(13, 29, 58, 0.06);
}

.brand {
  letter-spacing: -0.03em;
}

.site-nav {
  gap: 6px;
}

.site-nav a,
.nav-cta {
  border-radius: 999px;
}

.section {
  padding: 104px 0;
}

.hero {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

.hero-lead {
  max-width: 820px;
}

.hero-summary div,
.project-card,
.work-card,
.skill-grid article,
.career-list article,
.work-grid article,
.ai-story-card,
.ai-web-shot,
.ai-app-shot,
.ai-infographic {
  border-radius: var(--radius-md);
}

.hero-summary div {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.section-head {
  max-width: 980px;
  margin-bottom: 44px;
}

.section-head .eyebrow,
.eyebrow {
  letter-spacing: 0.11em;
}

.section-head p:not(.eyebrow) {
  font-size: 20px;
  line-height: 1.55;
}

.featured-grid {
  gap: 28px;
}

.project-feature {
  gap: 36px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.project-feature:hover,
.work-card:hover,
.work-grid article:hover,
.skill-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(13, 29, 58, 0.14);
}

.project-card,
.work-card,
.skill-grid article,
.career-list article,
.work-grid article {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.project-text p,
.work-card p,
.career-list p,
.work-grid p,
.ai-detail p {
  color: #344154;
  line-height: 1.62;
}

.project-meta span,
.tag-list span {
  border-radius: 999px;
}

.project-image {
  min-height: 420px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.85), rgba(247,240,228,0.92));
}

.project-image img {
  padding: 8px;
}

.split-section {
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 86px rgba(13, 29, 58, 0.11);
}

.ai-showcase {
  gap: 28px;
}

.ai-infographic {
  max-width: 900px;
}

.ai-screen-pair {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
}

.ai-story-card {
  background:
    linear-gradient(135deg, #f8fbff 0%, #fffaf1 100%);
}

.flow-list li {
  grid-template-columns: 150px minmax(0, 1fr);
}

.compact-grid {
  gap: 28px;
}

.game-feature {
  padding: 30px;
  background:
    radial-gradient(circle at 88% 16%, rgba(231, 163, 36, 0.16), transparent 26%),
    var(--surface);
}

.game-shot-pair {
  max-width: 600px;
}

.work-card.with-image.tap-feature {
  padding: 30px;
}

.skill-grid {
  gap: 24px;
}

.skill-grid article {
  min-height: 320px;
  padding: 30px;
}

.career-list {
  gap: 18px;
}

.career-list article {
  display: grid;
  grid-template-columns: 190px 220px 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px 28px;
}

.career-list article span {
  color: var(--blue);
  font-weight: 950;
}

.career-list h3,
.career-list p {
  margin: 0;
}

.work-grid {
  gap: 24px;
}

.work-grid article {
  overflow: hidden;
}

.work-grid img {
  border-radius: 12px;
}

.archive-layout {
  border-radius: var(--radius-lg);
}

.action-row a,
.final-links a,
.work-grid a,
.primary-action,
.secondary-action,
.contact-line a {
  border-radius: 999px;
}

@media (max-width: 900px) {
  .section {
    width: min(100% - 28px, var(--max));
    padding: 70px 0;
  }

  .hero {
    width: min(100% - 28px, var(--max));
    padding: 36px 24px;
    border-radius: 18px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .project-feature,
  .project-feature:nth-child(even) {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .project-feature:nth-child(even) .project-text,
  .project-feature:nth-child(even) .project-image {
    order: initial;
  }

  .project-image {
    min-height: auto;
  }

  .career-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Hero refinement */
.site-header {
  z-index: 100;
  background: rgba(248, 250, 252, 0.94);
}

.hero {
  margin-top: 38px;
  padding: 64px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
}

.hero-lead {
  max-width: 820px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.42;
  letter-spacing: -0.035em;
}

.hero-summary {
  gap: 10px;
}

.hero-summary div {
  min-height: 104px;
  padding: 20px 22px;
}

.hero-summary strong {
  font-size: 27px;
  letter-spacing: -0.035em;
}

.hero-summary span {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.hero-actions {
  margin-bottom: 16px;
}

.contact-line {
  gap: 8px;
  padding-top: 16px;
}

.hero .contact-line a {
  min-height: 38px;
  padding: 8px 13px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 251, 255, 0.86);
  font-size: 13px;
  box-shadow: none;
}

.hero .contact-line a:hover {
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.12);
  color: #fff;
}

@media (max-width: 900px) {
  .hero {
    margin-top: 22px;
    padding: 34px 22px;
  }

  .hero-lead {
    font-size: clamp(22px, 7vw, 32px);
  }
}

/* Separate passive tags from action buttons */
.tag-list {
  gap: 7px;
}

.tag-list span {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(31, 100, 224, 0.16);
  border-radius: 7px;
  background: rgba(231, 239, 255, 0.72);
  color: #24508e;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.action-row,
.hero-actions,
.final-links {
  gap: 11px;
}

.action-row a,
.final-links a,
.work-grid a {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid rgba(13, 29, 58, 0.18);
  border-radius: 999px;
  background: #0d1d3a;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(13, 29, 58, 0.12);
}

.action-row a:hover,
.final-links a:hover,
.work-grid a:hover {
  border-color: #1f64e0;
  background: #1f64e0;
  color: #fff;
  transform: translateY(-1px);
}

.primary-action {
  border: 0;
  background: #47d5a9;
  color: #08172f;
}

.secondary-action {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255,255,255,0.06);
}

.project-meta span {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
}

/* Final site-wide rhythm pass */
main {
  overflow: hidden;
}

.section + .section {
  position: relative;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, 86vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(13,29,58,0.14), transparent);
}

.project-card,
.work-card,
.skill-grid article,
.career-list article,
.work-grid article,
.ai-story-card,
.archive-layout,
.final-links a {
  border-color: rgba(13, 29, 58, 0.12) !important;
  background: rgba(255, 252, 246, 0.92) !important;
  box-shadow: 0 18px 54px rgba(13, 29, 58, 0.09) !important;
}

.project-card:hover,
.work-card:hover,
.skill-grid article:hover,
.career-list article:hover,
.work-grid article:hover {
  border-color: rgba(31, 100, 224, 0.26) !important;
  box-shadow: 0 28px 82px rgba(13, 29, 58, 0.14) !important;
  transform: translateY(-4px);
}

.project-feature {
  min-height: 500px;
}

.project-image {
  min-height: 430px !important;
  padding: 12px;
  background:
    radial-gradient(circle at 20% 10%, rgba(31,100,224,0.08), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7efe4 100%) !important;
}

.project-image img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}

.ai-web-shot,
.ai-app-shot,
.ai-infographic,
.project-image,
.work-card.with-image img,
.work-grid img,
.game-shot-pair img {
  border-color: rgba(13, 29, 58, 0.12) !important;
  box-shadow: 0 16px 44px rgba(13, 29, 58, 0.10);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.work-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-grid article {
  display: grid;
  align-content: start;
  min-height: 430px;
  padding: 18px;
}

.work-grid img {
  width: 100%;
  height: 190px;
  margin-bottom: 16px;
  object-fit: contain;
  background: #f5f8fc;
}

.work-grid h3 {
  margin-bottom: 8px;
}

.work-grid p {
  margin-bottom: 16px;
  word-break: keep-all;
}

.career-list {
  position: relative;
  gap: 0;
  padding-left: 30px;
}

.career-list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--teal));
}

.career-list article {
  position: relative;
  margin-bottom: 16px;
  padding: 24px 28px !important;
}

.career-list article::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 30px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,100,224,0.18);
}

.career-list article:nth-child(2)::before {
  background: var(--teal);
}

.career-list article:nth-child(3)::before {
  background: var(--amber);
}

.archive-layout {
  padding: 30px;
  border: 1px solid rgba(13,29,58,0.12);
  border-radius: 24px;
}

.archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-list span {
  display: inline-flex;
  padding: 9px 12px;
  border: 1px solid rgba(31,100,224,0.14);
  border-radius: 999px;
  background: rgba(231,239,255,0.72);
  color: #234b86;
  font-size: 13px;
  font-weight: 850;
}

.archive-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.archive-images img {
  width: 100%;
  min-height: 220px;
  object-fit: contain;
  border-radius: 16px;
  background: #f5f8fc;
}

@media (max-width: 1100px) {
  .hero,
  .project-feature,
  .project-feature:nth-child(even),
  .game-feature,
  .ai-screen-pair,
  .compact-grid,
  .skill-grid,
  .work-grid,
  .work-grid.compact,
  .archive-images {
    grid-template-columns: 1fr !important;
  }

  .project-feature:nth-child(even) .project-text,
  .project-feature:nth-child(even) .project-image {
    order: initial !important;
  }

  .project-feature {
    min-height: auto;
  }

  .project-image {
    min-height: 320px !important;
  }

  .work-grid article {
    min-height: auto;
  }

  .career-list article {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(64px, 22vw, 92px);
  }

  h2 {
    font-size: clamp(31px, 11vw, 44px);
  }

  .section-head p:not(.eyebrow),
  .project-text p,
  .work-card p,
  .career-list p,
  .work-grid p {
    font-size: 16px;
  }

  .hero-actions,
  .contact-line,
  .action-row,
  .final-links {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-action,
  .secondary-action,
  .contact-line a,
  .action-row a,
  .final-links a {
    width: 100%;
  }

  .career-list {
    padding-left: 20px;
  }

  .career-list article::before {
    left: -24px;
  }
}

/* AI/RAG section correction */
#ai-rag.split-section {
  width: min(1240px, calc(100vw - 48px));
  padding: 72px 44px;
  overflow: hidden;
}

#ai-rag .section-head {
  max-width: 1040px;
  margin: 0 0 34px;
  padding-bottom: 22px;
}

#ai-rag .section-head h2 {
  max-width: 980px;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

#ai-rag .section-head p:not(.eyebrow) {
  max-width: 980px;
  font-size: 19px;
  line-height: 1.55;
}

#ai-rag .ai-showcase {
  gap: 24px;
}

#ai-rag .ai-infographic {
  width: min(820px, 100%);
  max-width: 820px;
  padding: 12px;
}

#ai-rag .ai-infographic img {
  max-height: 560px;
  object-fit: contain;
}

#ai-rag .ai-screen-pair {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 18px;
}

#ai-rag .ai-web-shot img {
  max-height: 420px;
}

#ai-rag .ai-app-shot {
  max-width: 260px;
}

#ai-rag .ai-story-card {
  padding: 26px;
}

#ai-rag .ai-story-card h3 {
  font-size: 30px;
}

#ai-rag .flow-list li {
  grid-template-columns: 130px minmax(0, 1fr);
}

@media (max-width: 900px) {
  #ai-rag.split-section {
    width: min(100% - 28px, 1240px);
    padding: 42px 22px;
  }

  #ai-rag .section-head h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  #ai-rag .ai-screen-pair {
    grid-template-columns: 1fr;
  }

  #ai-rag .ai-app-shot {
    max-width: 240px;
  }
}

/* Archive / links section correction */
#links .archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 30px;
  align-items: center;
  padding: 34px;
  background: rgba(255, 252, 246, 0.94) !important;
}

#links .archive-list {
  align-content: start;
}

#links .archive-list span {
  border-color: rgba(31, 100, 224, 0.18);
  background: rgba(231, 239, 255, 0.86);
  color: #214b86;
}

#links .archive-images {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
}

#links .archive-images img {
  min-height: 0;
  height: 180px;
  padding: 10px;
  border: 1px solid rgba(13,29,58,0.12);
  border-radius: 16px;
  background: #f5f8fc;
  object-fit: contain;
}

#links .final-links {
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

#links .final-links a {
  justify-content: flex-start;
  min-height: 48px;
  border-color: rgba(13, 29, 58, 0.16) !important;
  background: #0d1d3a !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(13,29,58,0.14) !important;
}

#links .final-links a:hover {
  background: #1f64e0 !important;
}

@media (max-width: 900px) {
  #links .archive-layout {
    grid-template-columns: 1fr;
  }

  #links .archive-images,
  #links .final-links {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Keep chatbot infographic full-width for readability */
#ai-rag .ai-infographic {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
}

#ai-rag .ai-infographic img {
  width: 100% !important;
  max-height: none !important;
}

@media (min-width: 1101px) {
  #apps .section-head {
    max-width: none;
  }

  #apps .section-head p:not(.eyebrow) {
    max-width: none;
    white-space: nowrap;
  }
}

#company-work .work-grid h3,
#company-work .work-grid.compact h3 {
  font-size: 20px;
}

#company-work .work-grid p,
#company-work .work-grid.compact p {
  font-size: 16px;
}
