:root {
  --ink: #0f2742;
  --ink-deep: #081a2e;
  --tally: #e5392e;
  --paper: #f3f5f8;
  --white: #ffffff;
  --line: #d5dce5;
  --muted: #55667c;
  --error: #c42b21;
  --ok: #1f7a4d;
  --brand-gradient: linear-gradient(90deg, #f6ead9 0%, #ffcc83 45%, #a7d19f 100%);
  /* 흰 바탕에서도 읽히도록 같은 색 계열을 진하게 낮춘 그라데이션 */
  --brand-gradient-on-light: linear-gradient(90deg, #a8742a 0%, #c98a1c 45%, #4f8a46 100%);

  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-space: clamp(72px, 10vw, 128px);
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--tally);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
}

/* Brand */

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-name {
  letter-spacing: 0.04em;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-solid {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-solid .brand,
.site-header.menu-open .brand {
  background-image: var(--brand-gradient-on-light);
}

.header-inner {
  height: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav {
  display: flex;
  gap: 36px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: currentColor;
}

.menu-toggle {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink-deep);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  /* 원본 영상 오른쪽 아래의 생성 도구 표시가 화면 밖으로 나가도록 확대한다. */
  transform: scale(1.16);
  transform-origin: left top;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 26, 46, 0.55) 0%, rgba(8, 26, 46, 0.2) 35%, rgba(8, 26, 46, 0.85) 100%),
    linear-gradient(90deg, rgba(8, 26, 46, 0.7) 0%, rgba(8, 26, 46, 0.15) 70%),
    rgba(15, 39, 66, 0.3);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 12vh, 120px);
}

.hero h1 {
  max-width: 19em;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 34em;
  margin-top: 24px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255, 255, 255, 0.82);
}

.hero .button {
  margin-top: 36px;
}

/* Button */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  background: var(--tally);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: #c92d23;
}

.button:disabled {
  background: var(--muted);
  cursor: progress;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.about .lead {
  margin-top: 0;
  max-width: 32em;
  color: var(--muted);
}

.ceo-quote {
  margin: 22px 0 0;
  padding: 2px 0;
}

.ceo-quote p {
  font-size: 16px;
  line-height: 1.75;
}

.ceo-quote footer {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.partners {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
}

.partners-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.partners-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.partners-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.partner-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.partner-product {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* Solutions */

.solutions {
  background: var(--paper);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 2.4vw, 32px);
  margin-top: 48px;
}

.solution img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
}

.solution-maker {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.solution-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 10px;
  margin-top: 4px;
}

.solution h3 {
  min-width: 0;
  font-size: 21px;
  font-weight: 700;
}

.solution-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.solution-link::after {
  content: " ↗";
}

.solution-link:hover {
  color: var(--tally);
}

.solution-head + p {
  margin-top: 10px;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-intro p {
  margin-top: 16px;
  color: var(--muted);
}

.contact-direct {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.contact-direct li + li {
  margin-top: 6px;
}

.contact-direct a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.contact-direct a:hover {
  border-bottom-color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 39, 66, 0.15);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  margin-top: 6px;
  font-size: 14px;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  flex: none;
  accent-color: var(--ink);
}

.contact-form .button {
  justify-self: start;
}

.form-status {
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.is-ok {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--error);
}

/* Footer */

.site-footer {
  padding: 56px 0 32px;
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-partners {
  margin-top: 10px;
}

.footer-contact {
  display: grid;
  gap: 4px;
  font-style: normal;
  text-align: right;
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Narrow screens */

@media (max-width: 1100px) {
  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
  }
}

@media (max-width: 960px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .partners-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .solution img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .solution-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .brand {
    font-size: 23px;
    gap: 8px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .menu-toggle-bar,
  .menu-toggle-bar::before,
  .menu-toggle-bar::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .menu-toggle-bar {
    position: relative;
  }

  .menu-toggle-bar::before,
  .menu-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-toggle-bar::before {
    top: -7px;
  }

  .menu-toggle-bar::after {
    top: 7px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bar {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bar::before {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bar::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header.menu-open {
    background: var(--white);
    color: var(--ink);
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .work-item {
    grid-template-columns: 5.5em 1fr;
  }

  .contact-form .button {
    justify-self: stretch;
    justify-content: center;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
