/* ====================================================
   JP PARTNERS — Global Styles
   Deep Teal + Energy Orange + White
   ==================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

:root {
  /* Colors */
  --ink: #0b1518;
  --ink-2: #1a2a2f;
  --teal-900: #0d2a30;
  --teal-800: #123a42;
  --teal-700: #1a5259;
  --teal-600: #217681;
  --teal-500: #2d94a2;
  --teal-100: #d4ecef;
  --teal-50: #eef7f8;
  --orange: #ff6a2c;
  --orange-2: #ff8449;
  --orange-glow: rgba(255, 106, 44, 0.18);
  --paper: #fafaf7;
  --paper-2: #f3f2ee;
  --white: #ffffff;
  --line: rgba(11, 21, 24, 0.09);
  --line-2: rgba(11, 21, 24, 0.14);
  --muted: rgba(11, 21, 24, 0.6);
  --muted-2: rgba(11, 21, 24, 0.42);

  /* Type */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  font-feature-settings: "ss01", "cv11", "tnum";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ========== Layout helpers ========== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-glow);
}

/* ========== Nav ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.nav-brand .logo {
  width: 28px; height: 28px;
  background: var(--teal-800);
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  border-radius: 3px;
  position: relative; overflow: hidden;
}
.nav-brand .logo::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--orange);
}
.nav-brand small {
  display: block; font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -2px;
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
  font-size: 14px; font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px; font-weight: 600;
  border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--orange); transform: translateY(-1px); }
.nav-cta .arrow { font-family: var(--font-mono); }

.mobile-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 24px var(--gutter);
    gap: 20px; border-bottom: 1px solid var(--line); align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
  .mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,0,0,0.3); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--orange); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn .arrow {
  font-family: var(--font-mono);
  transition: transform 0.25s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ========== Sections ========== */
section { position: relative; }
.section {
  padding: clamp(80px, 12vw, 140px) 0;
}
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-teal {
  background: var(--teal-900);
  color: var(--paper);
}
.section-paper {
  background: var(--paper-2);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 6vw, 80px);
  margin-bottom: clamp(48px, 8vw, 88px);
  align-items: end;
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.section-head .lead {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}
.section-dark .section-head .lead,
.section-teal .section-head .lead { color: rgba(250, 250, 247, 0.65); }

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

/* ========== Footer ========== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.5);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }
.footer a { color: rgba(250, 250, 247, 0.8); transition: color 0.2s; }
.footer a:hover { color: var(--orange); }
.footer .brand-line {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer .brand-desc {
  color: rgba(250, 250, 247, 0.6);
  line-height: 1.6;
  max-width: 34ch;
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(250, 250, 247, 0.1);
  display: flex;
  justify-content: space-between;
  color: rgba(250, 250, 247, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  flex-wrap: wrap; gap: 12px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========== Reveal animation ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ========== Selection ========== */
::selection { background: var(--orange); color: var(--white); }

/* ========== Subpage hero ========== */
.subhero {
  padding: 180px 0 80px;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(255,106,44,0.18), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(45,148,162,0.25), transparent 70%);
  pointer-events: none;
}
.subhero .wrap { position: relative; }
.subhero-crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(250, 250, 247, 0.5);
  margin-bottom: 24px;
}
.subhero-crumb a:hover { color: var(--orange); }
.subhero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 24px;
  text-wrap: balance;
}
.subhero .lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(250, 250, 247, 0.75);
  max-width: 60ch;
  line-height: 1.55;
}
