/* 직트럭 — Portlogics-inspired corporate landing */
:root {
  --navy-0: #070d1f;
  --navy-1: #0a1535;
  --navy-2: #0f2050;
  --navy-3: #15306a;
  --navy-4: #1a3d85;
  --blue: #1e42a6;
  --blue-soft: #4a71dd;
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --line: rgba(16, 40, 96, 0.12);
  --line-soft: rgba(16, 40, 96, 0.08);
  --paper: #f4f6fb;
  --paper-2: #e8edf7;
  --white: #ffffff;
  --font-display: "SUIT", Pretendard, "Apple SD Gothic Neo", sans-serif;
  --font-body: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --space: clamp(1.25rem, 4vw, 3rem);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Show header phone button on small screens and ensure it uses the phone image */
@media (max-width: 959px) {
  .site-header .btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.06);
  }

  .site-header .btn-sm .icon-phone {
    width: 18px;
    height: 18px;
    margin-right: 0.4rem;
    display: inline-block;
    vertical-align: middle;
    color: inherit;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(26, 61, 133, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f9fd 0%, var(--white) 24%, var(--white) 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem var(--space);
  color: var(--white);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.site-header.is-scrolled {
  color: var(--navy-1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  position: relative;
  z-index: 10001;
}

.brand-mark {
  display: flex;
  color: var(--blue);
}

.site-header:not(.is-scrolled) .brand-mark {
  color: var(--blue);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  margin-left: auto;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  opacity: 0.82;
  transition: opacity 0.2s var(--ease);
}

.nav a:hover {
  opacity: 1;
}

.site-header .btn-sm {
  display: none;
}

.nav-toggle {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.nav-toggle.is-open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 72px var(--space) auto;
  z-index: 49;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(10, 21, 53, 0.96);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(7, 13, 31, 0.35);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.mobile-nav .icon-phone {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.6rem;
  vertical-align: middle;
  color: var(--white);
}

.mobile-nav .btn {
  display: inline-flex;
  align-items: center;
}

.mobile-nav .btn {
  margin-top: 0.5rem;
  justify-content: center;
  border-bottom: 0;
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }

  .site-header .btn-sm {
    display: inline-flex;
    margin-left: 0.25rem;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
}

.btn-solid {
  background: var(--blue);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--navy-4);
}

.btn-solid-dark {
  background: var(--navy-1);
  color: var(--white);
}

.btn-solid-dark:hover {
  background: var(--navy-2);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-line {
  background: transparent;
  color: var(--navy-1);
  border-color: var(--line);
}

.btn-line:hover {
  border-color: var(--navy-3);
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-zoom 12s var(--ease) both;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 13, 31, 0.55) 0%, rgba(7, 13, 31, 0.28) 38%, rgba(7, 13, 31, 0.78) 100%),
    radial-gradient(800px 480px at 20% 80%, rgba(30, 66, 166, 0.35), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--space) * 2), var(--max));
  margin: 0 auto;
  padding: 7.5rem 0 4.5rem;
}

.brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
  max-width: 12ch;
}

.hero-lead {
  margin-top: 1.15rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

/* Sections */
.section-inner {
  width: min(100% - (var(--space) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow-light {
  color: #89a7fb;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--navy-1);
  margin-bottom: 2rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--navy-1);
}

.band-ink h2,
.coverage h2,
.cta-band h2 {
  color: var(--white);
}

.section-lead {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.lead-light {
  color: rgba(255, 255, 255, 0.78);
}

.band-white {
  background: var(--white);
}

.band-soft {
  background:
    linear-gradient(180deg, rgba(232, 237, 247, 0.9), rgba(244, 246, 251, 0.95)),
    radial-gradient(700px 280px at 0% 0%, rgba(30, 66, 166, 0.08), transparent 60%);
}

.band-ink {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(74, 113, 221, 0.22), transparent 55%),
    linear-gradient(160deg, var(--navy-1) 0%, var(--navy-2) 55%, #0c1a45 100%);
  color: var(--white);
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 4rem;
  }
}

/* Pillars — Portlogics-style value props */
.pillars {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}

.pillar-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pillar-grid li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy-1);
}

.pillar-grid h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin-bottom: 0.7rem;
}

.pillar-grid p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Fact list */
.fact-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.fact-list > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.fact-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy-1);
}

.fact-list a {
  color: var(--blue);
}

/* Vision rail */
.vision-rail {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 800px) {
  .vision-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.vision-rail li {
  padding: 1.35rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.vision-label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.vision-rail p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}

/* Services */
.service-list {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0.15rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease), padding 0.2s var(--ease);
}

.service-row:hover {
  background: rgba(30, 66, 166, 0.04);
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.service-index {
  font-family: var(--font-display);
  font-weight: 750;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.service-row h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--navy-1);
}

.service-row p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-arrow {
  color: var(--blue);
  font-size: 1.2rem;
  transition: transform 0.2s var(--ease);
}

.service-row:hover .service-arrow {
  transform: translateX(4px);
}

/* Coverage — Portlogics region strip */
.coverage {
  background:
    radial-gradient(700px 360px at 10% 20%, rgba(30, 66, 166, 0.28), transparent 55%),
    linear-gradient(135deg, var(--navy-0), var(--navy-2) 55%, #122a62);
  color: var(--white);
  overflow: hidden;
}

.coverage-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.coverage-item {
  scroll-snap-align: start;
  min-height: 160px;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(6px);
}

.coverage-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}

.coverage-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

/* Timeline / jobs */
.timeline {
  margin-top: 2rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 750;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.timeline h3,
.job-row h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--navy-1);
}

.timeline p,
.job-row p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.note a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.job-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.job-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.job-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.bullet-plain {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.bullet-plain li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
}

.bullet-plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

/* Partner form — interaction container */
.partner-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(15, 32, 80, 0.06);
}

.partner-form label {
  display: grid;
  gap: 0.4rem;
}

.partner-form label.full,
.partner-form .full {
  grid-column: 1 / -1;
}

.partner-form span {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.partner-form input,
.partner-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.partner-form input:focus,
.partner-form textarea:focus {
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(74, 113, 221, 0.18);
}

@media (min-width: 640px) {
  .partner-form {
    grid-template-columns: 1fr 1fr;
  }
}

/* Location */
.location-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: start;
  }
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  background: var(--paper);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  filter: grayscale(0.15) contrast(1.02);
}

/* CTA */
.cta-band {
  background:
    radial-gradient(700px 360px at 80% 30%, rgba(74, 113, 221, 0.28), transparent 55%),
    linear-gradient(135deg, var(--navy-1), var(--navy-3));
  color: var(--white);
}

.cta-inner {
  text-align: left;
}

.cta-inner p {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--navy-0);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(100% - (var(--space) * 2), var(--max));
  margin: 0 auto;
  padding: 3rem 0 2.5rem;
  display: grid;
  gap: 1.75rem;
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 1.2rem;
}

.footer-brand p {
  margin-top: 0.4rem;
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--white);
}

.company-info {
  display: grid;
  gap: 0.45rem 1.5rem;
  font-size: 0.86rem;
}

@media (min-width: 720px) {
  .company-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.company-info > div {
  display: flex;
  gap: 0.65rem;
}

.company-info dt {
  color: rgba(255, 255, 255, 0.45);
  min-width: 6.5rem;
}

.company-info dd {
  margin: 0;
}

.copyright {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.pillar-grid .reveal:nth-child(2),
.vision-rail .reveal:nth-child(2),
.coverage-item.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.pillar-grid .reveal:nth-child(3),
.vision-rail .reveal:nth-child(3),
.coverage-item.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.coverage-item.reveal:nth-child(4) {
  transition-delay: 0.22s;
}

.coverage-item.reveal:nth-child(5) {
  transition-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .reveal,
  .btn,
  .service-arrow {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
