:root {
  --ink: #171717;
  --paper: #f4f1ea;
  --white: #ffffff;
  --coral: #f25c3b;
  --lime: #c7f06a;
  --gray: #6d6a64;
  --line: #d9d4ca;
  --blue: #2947a3;
  --pad: clamp(72px, 9vw, 140px);
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin: 0 auto; }
.section-pad { padding: var(--pad) 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px;
  transform: translateY(-150%); background: var(--lime); font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2)); color: var(--white);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { color: var(--ink); background: rgba(244, 241, 234, .92); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { font-size: 23px; }
.brand-name { font-size: 13px; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-contact):hover { color: var(--coral); }
.nav-contact { padding: 10px 18px; color: var(--ink); background: var(--lime); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 6px auto; background: currentColor; transition: transform .2s; }

.hero { position: relative; min-height: 100svh; padding: 128px 0 0; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr); gap: clamp(40px, 6vw, 90px); align-items: center; min-height: calc(100svh - 198px); }
.eyebrow, .section-index, .case-number, .project-kicker { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.eyebrow { color: var(--lime); }
.hero h1 { margin: 24px 0 28px; font-size: clamp(58px, 7vw, 104px); line-height: .95; letter-spacing: -.075em; }
.hero h1 span { color: var(--coral); }
.hero-description { max-width: 620px; margin: 0; color: #cbc8c0; font-size: clamp(17px, 1.65vw, 22px); word-break: keep-all; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 40px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; text-decoration: none; font-weight: 850; }
.button-primary { color: var(--ink); background: var(--lime); }
.text-link { color: var(--white); font-weight: 750; text-underline-offset: 6px; }
.hero-stage { position: relative; height: min(650px, 70svh); min-height: 520px; }
.hero-orbit { position: absolute; border: 1px solid #444; border-radius: 50%; }
.hero-orbit-one { inset: 5% 3% 8% 8%; }
.hero-orbit-two { width: 330px; height: 330px; right: 22%; bottom: 17%; border-color: rgba(199, 240, 106, .42); }
.hero-shot { position: absolute; margin: 0; overflow: hidden; border: 1px solid #404040; box-shadow: 0 28px 90px rgba(0, 0, 0, .38); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-shot-main { top: 0; right: 0; width: min(380px, 67%); aspect-ratio: .86; transform: rotate(2deg); border-radius: 22px; }
.hero-shot-sub { left: 0; bottom: 9%; width: min(460px, 78%); aspect-ratio: 1.55; transform: rotate(-3deg); border-radius: 18px; }
.hero-caption { position: absolute; right: 0; bottom: 0; margin: 0; color: var(--lime); font-size: 13px; font-weight: 900; letter-spacing: .09em; }
.hero-ticker { margin-top: 34px; overflow: hidden; border-top: 1px solid #3e3e3e; background: var(--coral); }
.hero-ticker div { width: max-content; padding: 14px 0; color: var(--ink); font-size: 14px; font-weight: 900; letter-spacing: .05em; animation: ticker 26s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

.statement { background: var(--paper); }
.statement-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.section-index { color: var(--coral); }
.statement-copy h2 { max-width: 850px; margin: 0; font-size: clamp(43px, 6vw, 82px); line-height: 1.08; letter-spacing: -.055em; }
.statement-copy h2 em { color: var(--coral); font-style: normal; }
.statement-copy > p { max-width: 680px; margin: 46px 0 0 auto; color: var(--gray); font-size: 20px; word-break: keep-all; }

.capabilities { background: var(--white); }
.section-heading { display: grid; grid-template-columns: 220px 1fr; column-gap: 40px; align-items: end; }
.section-heading h2 { margin: 0; font-size: clamp(54px, 7vw, 94px); line-height: .92; letter-spacing: -.065em; }
.section-heading > p:last-child { grid-column: 2; margin: 24px 0 0; color: var(--gray); font-size: 20px; }
.capability-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 76px 0 0; padding: 0; list-style: none; }
.capability-list li { min-height: 280px; padding-top: 22px; border-top: 5px solid var(--ink); }
.capability-list li:first-child { border-color: var(--coral); }
.capability-list span { color: var(--coral); font-size: 14px; font-weight: 900; }
.capability-list h3 { margin: 42px 0 22px; font-size: 24px; letter-spacing: -.025em; }
.capability-list p { margin: 0; color: var(--gray); font-size: 17px; word-break: keep-all; }

.case-heading { display: grid; grid-template-columns: 220px 1fr; column-gap: 40px; align-items: start; }
.case-heading h2 { margin: 0; max-width: 900px; font-size: clamp(40px, 5vw, 64px); line-height: 1.08; letter-spacing: -.055em; }
.case-heading > p:last-child { grid-column: 2; max-width: 720px; margin: 30px 0 0; color: var(--gray); font-size: 19px; word-break: keep-all; }
.case-number, .project-kicker { color: var(--coral); }

.case-planning { background: var(--paper); }
.planning-visual { display: grid; grid-template-columns: 33% 67%; gap: 22px; align-items: end; margin-top: 70px; }
.planning-visual figure { margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 22px 60px rgba(23, 23, 23, .1); }
.planning-chat { aspect-ratio: .86; border-radius: 22px; }
.planning-chat img { width: 100%; height: 100%; object-fit: cover; }
.planning-document { aspect-ratio: 1.62; border-radius: 18px; }
.planning-document img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.process-line { display: grid; grid-template-columns: repeat(4, 1fr); margin: 44px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-line li { padding: 18px 10px 0 0; font-weight: 800; }
.process-line span { display: block; margin-bottom: 8px; color: var(--coral); font-size: 12px; }

.case-matching { color: var(--white); background: var(--ink); }
.case-heading-light > p:last-child { color: #bbb8b1; }
.split-projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; margin-top: 72px; }
.browser-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 31px; padding: 0 13px; border-bottom: 1px solid #e6e3dc; background: #f6f4ef; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #b8b5ae; }
.browser-frame img { width: 100%; aspect-ratio: 1.58; object-fit: cover; object-position: top; }
.dark-frame { border-color: #383838; }
.split-project .project-kicker, .archive-item .project-kicker { margin-top: 28px; }
.split-project h3, .archive-item h3, .iot-gallery h3 { margin: 8px 0 12px; font-size: 28px; letter-spacing: -.035em; }
.split-project > p:last-child { margin: 0; color: #c8c5bd; font-size: 17px; word-break: keep-all; }

.case-iot { background: var(--paper); }
.iot-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 72px; }
.iot-gallery section > p { margin: 0; color: var(--gray); font-size: 17px; word-break: keep-all; }
.source-crop { position: relative; overflow: hidden; aspect-ratio: 1.58; border-radius: 18px; background-repeat: no-repeat; background-color: #e8e4db; }
.crop-locker { background-image: url('./assets/smart-locker.png'); background-size: 202% auto; background-position: 2% 59%; }
.iot-gallery .browser-frame img { aspect-ratio: 1.58; }
.tech-line { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--gray); font-size: 12px; font-weight: 900; letter-spacing: .08em; }

.case-archive { background: var(--white); }
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 72px; }
.crop-monthly { background-image: url('./assets/monthlything.png'); background-size: 210% auto; background-position: 5% 39%; }
.crop-bible { background-image: url('./assets/bible-chatbot.png'); background-size: 215% auto; background-position: 7% 46%; }
.archive-item > p:last-child { margin: 0; color: var(--gray); font-size: 17px; word-break: keep-all; }

.company { color: var(--white); background: var(--ink); }
.company-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; }
.company-title h2 { margin: 54px 0 8px; font-size: clamp(64px, 8vw, 112px); line-height: .9; letter-spacing: -.075em; }
.company-title > p:last-child { margin: 0; color: var(--lime); font-size: 24px; font-weight: 900; }
.company-facts { margin: 0; }
.company-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid #3d3d3d; }
.company-facts dt { color: var(--coral); font-size: 14px; font-weight: 900; }
.company-facts dd { margin: 0; font-size: 20px; font-weight: 750; }

.contact { background: var(--coral); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: end; }
.contact .section-index { color: var(--ink); }
.contact h2 { margin: 54px 0 0; font-size: clamp(54px, 7vw, 96px); line-height: .98; letter-spacing: -.07em; }
.contact-copy { padding-bottom: 8px; }
.contact-copy p { margin: 0 0 42px; max-width: 520px; font-size: 20px; word-break: keep-all; }
.contact-copy a { display: block; width: fit-content; margin-bottom: 10px; font-size: clamp(26px, 3vw, 42px); font-weight: 900; letter-spacing: -.04em; text-underline-offset: 8px; }
.contact-copy span { font-size: 18px; font-weight: 800; }

.site-footer { padding: 32px 0; color: #aaa7a0; background: var(--ink); }
.site-footer .shell { display: flex; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; font-size: 11px; font-weight: 850; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero .reveal { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-stage { height: 560px; }
  .hero-shot-main { width: 48%; }
  .hero-shot-sub { width: 62%; }
  .statement-grid, .section-heading, .case-heading { grid-template-columns: 1fr; }
  .statement-copy, .section-heading h2, .section-heading > p:last-child, .case-heading h2, .case-heading > p:last-child { grid-column: 1; }
  .statement-copy, .section-heading h2, .case-heading h2 { margin-top: 34px; }
  .capability-list { grid-template-columns: repeat(2, 1fr); }
  .company-grid, .contact-grid { grid-template-columns: 1fr; gap: 70px; }
}

@media (max-width: 720px) {
  :root { --shell: min(1180px, calc(100vw - 36px)); --pad: 82px; }
  .site-header { height: 66px; padding: 0 18px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 66px 0 0; display: flex; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 36px 18px; color: var(--white); background: var(--ink);
    transform: translateX(100%); transition: transform .25s ease;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { width: 100%; padding: 20px 0; border-bottom: 1px solid #393939; font-size: 22px; }
  .site-nav .nav-contact { margin-top: 24px; padding: 16px 18px; border: 0; }
  .hero { padding-top: 94px; }
  .hero-grid { display: block; min-height: auto; }
  .hero-description { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-stage { height: 480px; margin-top: 70px; }
  .hero-shot-main { width: 58%; }
  .hero-shot-sub { width: 77%; }
  .statement-copy > p { margin-top: 34px; font-size: 17px; }
  .capability-list, .split-projects, .iot-gallery, .archive-grid { grid-template-columns: 1fr; }
  .capability-list { gap: 50px; margin-top: 56px; }
  .capability-list li { min-height: 0; }
  .planning-visual { grid-template-columns: 1fr; }
  .planning-chat { width: 78%; justify-self: start; }
  .planning-document { width: 92%; justify-self: end; }
  .process-line { grid-template-columns: 1fr 1fr; gap: 24px; }
  .company-facts div { grid-template-columns: 100px 1fr; }
  .site-footer .shell { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
