/* ============================================================
   JT Management Inc. — design system
   Palette: midnight navy, warm paper, brushed gold
   ============================================================ */

:root {
  /* color */
  --ink-900: #060E1C;
  --ink-800: #0A1730;
  --ink-700: #10233F;
  --ink-600: #17335A;
  --ink-400: #4A6285;
  --ink-200: #9FB0C7;
  --gold-600: #A8802C;
  --gold-500: #C9A24A;
  --gold-400: #E0C377;
  --paper: #F8F6F2;
  --paper-2: #F1EDE6;
  --white: #FFFFFF;
  --muted: #5A6B82;
  --line: rgba(10, 23, 48, 0.10);
  --line-strong: rgba(10, 23, 48, 0.18);

  /* type */
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);
  --maxw: 1220px;

  /* radius + shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(6, 14, 28, .06), 0 8px 24px -12px rgba(6, 14, 28, .18);
  --shadow-2: 0 2px 4px rgba(6, 14, 28, .06), 0 24px 60px -24px rgba(6, 14, 28, .28);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-800);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--gold-400); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink-900); color: var(--paper); padding: .75rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- eyebrow + headings ---------- */
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-500); display: inline-block; }
.eyebrow.on-dark { color: var(--gold-400); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.35rem, 4.5vw, 3.7rem); text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; }
p { margin: 0 0 1.1rem; text-wrap: pretty; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.on-dark .lede, .lede.on-dark { color: var(--ink-200); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .005em;
  padding: .9rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--ink-900); box-shadow: 0 10px 30px -12px rgba(201, 162, 74, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(201, 162, 74, .85); }
.btn-ghost { background: transparent; color: var(--ink-800); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-800); transform: translateY(-2px); }
.btn-ghost.on-dark { color: var(--paper); border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.05); }
.btn-ghost.on-dark:hover { border-color: var(--paper); background: rgba(255,255,255,.06); }
.btn-sm { padding: .62rem 1.1rem; font-size: .875rem; }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 246, 242, .82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-head.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -26px rgba(6,14,28,.5); }
.head-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink-800); color: var(--gold-400);
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; }
.brand-sub { font-size: .62rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.45rem; }
.nav a { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-700); position: relative; padding: .2rem 0; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--gold-500); transition: right .28s cubic-bezier(.22,.61,.36,1);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.head-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; padding: .5rem .6rem; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(201,162,74,.22), transparent 62%),
    radial-gradient(760px 420px at 8% 108%, rgba(74,98,133,.30), transparent 60%),
    linear-gradient(168deg, var(--ink-900) 0%, var(--ink-800) 52%, var(--ink-700) 100%);
  color: var(--paper);
  padding: clamp(3.5rem, 7vw, 6rem) 0 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(900px 480px at 30% 20%, #000 0%, transparent 78%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.35rem; }
.hero h1 em { font-style: italic; color: var(--gold-400); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { margin-top: 1.7rem; font-size: .875rem; color: #B9C6D8; display: flex; align-items: center; gap: .5rem; max-width: 46ch; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #67D48B; box-shadow: 0 0 0 4px rgba(103,212,139,.18); }

.hero-card {
  position: relative; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-lg); padding: 1.5rem 1.5rem 1.35rem; backdrop-filter: blur(6px);
  box-shadow: var(--shadow-2);
}
.hero-card h3 { font-size: 1.06rem; margin-bottom: .15rem; color: var(--white); }
.hero-card .card-sub { font-size: .84rem; color: #B9C6D8; margin-bottom: 1.15rem; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; }
.stat { background: rgba(6,14,28,.55); padding: 1.05rem 1rem 1.1rem; }
.stat-label { font-size: .73rem; letter-spacing: .085em; text-transform: uppercase; color: #B9C6D8; margin-bottom: .3rem; }
.stat-value { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--white); line-height: 1; }
.stat-delta { font-size: .78rem; margin-top: .4rem; display: inline-flex; align-items: center; gap: .3rem; line-height: 1.3; }
.up { color: #F2A6A6; } .good { color: #8FE3AF; } .flat { color: #C6D2E2; }
.hero-card .foot { margin-top: 1.05rem; font-size: .74rem; color: var(--ink-200); display: flex; justify-content: space-between; align-items: center; gap: .75rem; }

/* trust strip */
.trust { position: relative; z-index: 2; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(255,255,255,.12); }
.trust-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; padding: 1.5rem 0 1.8rem; }
.trust-inner > .trust-item + .trust-item { border-left: 1px solid rgba(255,255,255,.12); padding-left: 1.4rem; }
.trust-item { display: flex; flex-direction: column; gap: .15rem; }
.trust-k { font-family: var(--display); font-size: 1.35rem; color: var(--gold-400); line-height: 1; }
.trust-v { font-size: .8rem; letter-spacing: .03em; color: #B9C6D8; }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; }
.section.tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink-900); color: var(--paper); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head p { margin: 0; max-width: 56ch; }

/* services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.7rem 1.6rem 1.5rem; text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .22s ease, box-shadow .3s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.card:hover::before { transform: scaleY(1); }
.card-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); color: var(--ink-700); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .93rem; color: var(--muted); margin-bottom: 1.15rem; }
.card .more { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--ink-700); display: inline-flex; gap: .4rem; align-items: center; }
.card:hover .more { color: var(--gold-600); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; counter-reset: s; }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: 0; left: 0; font-family: var(--display); font-size: 1.5rem; color: var(--gold-500);
}
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }
.step-rule { height: 1px; background: var(--line); margin-bottom: 1.1rem; }

/* newsletter / market update */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; font-size: .95rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5rem; width: 1.05rem; height: .55rem;
  border-left: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500); transform: rotate(-45deg);
}
.subscribe {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--shadow-1);
}
.subscribe h3 { margin-bottom: .35rem; }
.subscribe .note { font-size: .83rem; color: var(--muted); margin-bottom: 1.2rem; }
.field { display: block; margin-bottom: .75rem; }
.field span { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink-800);
  padding: .8rem .95rem; background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: 10px; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: var(--white); box-shadow: 0 0 0 4px rgba(201,162,74,.14); }
.form-foot { font-size: .78rem; color: var(--muted); margin: .9rem 0 0; }
.form-foot a { color: var(--ink-700); }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; margin-bottom: 0; }
.pill-note {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--muted);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; margin-bottom: 1rem;
}

/* insights */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; }
.post {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem 1.45rem;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .7rem;
  transition: transform .22s ease, box-shadow .3s ease, border-color .25s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.chip { align-self: flex-start; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); background: rgba(201,162,74,.13); border-radius: 999px; padding: .28rem .7rem; }
.post h3 { font-size: 1.12rem; }
.post p { font-size: .9rem; color: var(--muted); margin: 0; }
.post .meta { margin-top: auto; font-size: .78rem; color: var(--ink-400); display: flex; gap: .6rem; align-items: center; }

/* about strip */
.about-strip { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.8rem, 4vw, 3.6rem); align-items: center; }
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 4 / 3; background: var(--ink-700); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(6,14,28,.15), rgba(6,14,28,.55)); }
.frame-badge {
  position: absolute; z-index: 2; left: 1.1rem; bottom: 1.1rem; right: 1.1rem;
  background: rgba(6,14,28,.72); border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  padding: .9rem 1rem; color: var(--paper); backdrop-filter: blur(6px);
}
.frame-badge strong { font-family: var(--display); display: block; font-size: 1.05rem; }
.frame-badge span { font-size: .8rem; color: var(--ink-200); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.pillar { border-top: 1px solid var(--line-strong); padding-top: .85rem; }
.pillar strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.pillar span { font-size: .87rem; color: var(--muted); }

/* big CTA */
.cta { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--ink-800), var(--ink-900) 70%); color: var(--paper); border-radius: var(--r-lg); padding: clamp(2.2rem, 5vw, 3.6rem); }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,74,.30), transparent 68%); }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { max-width: 22ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.8rem, 4vw, 3.2rem); }
.info-list { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: 1rem; }
.info-list li { display: grid; gap: .15rem; }
.info-list .k { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.info-list .v { font-size: 1rem; }
.info-list .v a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.info-list .v a:hover { border-bottom-color: var(--gold-500); }

/* footer */
.site-foot { background: var(--ink-900); color: var(--ink-200); padding: clamp(2.6rem, 5vw, 4rem) 0 1.6rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.1fr); gap: 2rem; }
.site-foot h4 { color: var(--paper); font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.site-foot a { color: var(--ink-200); text-decoration: none; font-size: .9rem; }
.site-foot a:hover { color: var(--paper); }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-brand p { font-size: .9rem; max-width: 34ch; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.10); margin-top: 2.4rem; padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; font-size: .78rem; }
.disclaimer p { margin: 0; max-width: 88ch; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1220px) {
  .nav { gap: 1.05rem; }
  .nav a { font-size: .88rem; }
}
@media (max-width: 1020px) {
  .hero-grid, .split, .about-strip, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 2.4rem; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-inner > .trust-item + .trust-item { border-left: 0; padding-left: 0; }
  .nav, .head-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-head.nav-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
    position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 1.1rem var(--gutter) 1.4rem; box-shadow: var(--shadow-1);
  }
  .stat-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- inner-page + block additions ---------- */
.hero-grid-single { grid-template-columns: minmax(0, 1fr); max-width: 58rem; }
.cards-plain .card { padding: 1.55rem 1.45rem; }
.cards-plain .card h3 { margin-bottom: .5rem; }
.cards-plain .card p:last-child { margin-bottom: 0; }
.res-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .9rem; }
.res-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.res-name { font-weight: 600; margin-bottom: .22rem; }
.res-note { font-size: .9rem; color: var(--muted); }
.res-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 1.7rem; }
.res-col h3 { font-size: 1.02rem; margin-bottom: .85rem; }
.res-col .res-list { grid-template-columns: 1fr; }
.legal { font-size: .79rem; color: var(--muted); max-width: 92ch; margin: 0; }
.prose { max-width: 74ch; }
.prose h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: .9rem; }
.prose h2 { font-size: 1.32rem; margin: 2.1rem 0 .55rem; }
.prose p { color: var(--ink-700); }
.prose p.eyebrow { color: var(--gold-600); }
