/* Union Trade — design system (one file for every page). Tokens follow the build brief §7. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jbmono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --paper: #F4EFE6; --paper-2: #EAE3D6; --paper-3: #E1D8C7;
  --ink: #16181D; --ink-2: #3A3D44; --ink-3: #5E616A;
  --navy: #0F1B2D; --navy-2: #1B2A40; --navy-3: #2A3B55;
  --amber: #B5812E; --amber-2: #D9A54A; --amber-ink: #7A5414;
  --sage: #5B6B4E; --stone: #C9BCA8;
  --line: rgba(22, 24, 29, .14); --line-dark: rgba(244, 239, 230, .16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(1.25rem, 4vw, 4rem); --maxw: 1600px; --measure: 68ch;
  --pad: clamp(4.5rem, 10vw, 10rem);
  --e-out: cubic-bezier(.16, 1, .3, 1); --e-inout: cubic-bezier(.76, 0, .24, 1);
  --radius: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: clamp(1rem, 1.04vw, 1.125rem); line-height: 1.6; font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; margin: 0; font-variation-settings: "opsz" 96; }
::selection { background: var(--amber-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; border-radius: var(--radius); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: var(--paper); padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }
.mono, .eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink-2); }
.eyebrow::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--amber); flex: none; }
.dark .eyebrow, .on-dark .eyebrow { color: var(--stone); }
.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; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: .75rem; padding: .95rem 1.4rem; border-radius: var(--radius); font: 500 .95rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .3s var(--e-out), color .3s var(--e-out), border-color .3s var(--e-out), transform .3s var(--e-out); }
.btn svg { width: 1rem; height: 1rem; transition: transform .35s var(--e-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--amber); color: var(--ink); }
.btn-amber { background: var(--amber-2); color: var(--ink); }
.btn-amber:hover { background: var(--paper); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .btn-line:hover, .dark .btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.link { text-decoration: none; background-image: linear-gradient(var(--amber), var(--amber)); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 2px; transition: background-size .45s var(--e-out); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.arrow-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; text-decoration: none; }
.arrow-link svg { width: 1rem; height: 1rem; transition: transform .35s var(--e-out); }
.arrow-link:hover svg { transform: translateX(5px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: background .35s var(--e-out), color .35s var(--e-out), border-color .35s; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; }
.brand .umark { width: 2rem; height: 2.4rem; flex: none; }
.brand .word { display: flex; flex-direction: column; gap: .25rem; }
.brand .name { font: 600 1rem/1 var(--sans); letter-spacing: .18em; }
.brand .desc { font: 500 .58rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 450; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.35rem; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--e-out); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: .7rem 1.1rem; }
.menu-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: var(--radius); padding: .55rem .75rem; font: 500 .8rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.home .site-header:not(.solid) { background: transparent; border-color: transparent; color: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header:not(.solid) .btn-solid { background: var(--paper); color: var(--ink); }
.home .site-header:not(.solid) .btn-solid:hover { background: var(--amber-2); }
.home .site-header { position: fixed; left: 0; right: 0; }
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--navy); color: var(--paper); padding: 1.5rem var(--gutter) 2rem; display: flex; flex-direction: column; transform: translateY(-100%); transition: transform .6s var(--e-inout); visibility: hidden; }
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; height: 3.25rem; }
.mobile-menu nav { display: flex; flex-direction: column; gap: .35rem; margin-top: 2.5rem; }
.mobile-menu nav a { font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); text-decoration: none; line-height: 1.15; }
.mobile-menu .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1080px) { .nav { display: none; } .menu-toggle { display: inline-block; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; background: var(--navy); color: var(--paper); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 8rem 0 0; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art .route { stroke-dasharray: 6 9; animation: dash 30s linear infinite; }
.hero-art .pulse { animation: pulse 3.2s var(--e-out) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dash { to { stroke-dashoffset: -600; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.hero .inner { padding-bottom: clamp(2rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(2.7rem, 7.6vw, 8rem); line-height: .98; letter-spacing: -.025em; max-width: 15ch; margin: 1.6rem 0 1.8rem; font-variation-settings: "opsz" 144, "SOFT" 30; }
.hero h1 em { font-style: normal; color: var(--amber-2); }
.hero .lead { font-size: clamp(1.05rem, 1.35vw, 1.3rem); max-width: 54ch; color: rgba(244, 239, 230, .86); margin-bottom: 2.2rem; }
.hero .eyebrow { color: var(--stone); }
.hero .r-line > span { transform: none; animation: lineup 1.1s var(--e-out) both; animation-delay: calc(var(--i, 0) * 120ms + .15s); }
.hero .r-up { opacity: 1; transform: none; animation: fadeup 1s var(--e-out) both; animation-delay: calc(var(--i, 0) * 120ms + .2s); }
@keyframes lineup { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .hero-art { opacity: .55; } }
@media (max-width: 700px) { .hero-art { opacity: .35; } }
.hero .strip { border-top: 1px solid var(--line-dark); margin-top: clamp(2.5rem, 6vw, 5rem); padding: 1.2rem 0 1.4rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; color: var(--stone); }

/* ---------- Sections ---------- */
.section { padding: var(--pad) 0; position: relative; }
.section.tight { padding: calc(var(--pad) * .6) 0; }
.section.alt { background: var(--paper-2); }
.dark { background: var(--navy); color: var(--paper); }
.dark::selection { color: var(--ink); }
.ink { background: var(--ink); color: var(--paper); }
.sechead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sechead h2, .h2 { font-size: clamp(2rem, 4.6vw, 4.2rem); }
.sechead .side { color: var(--ink-2); max-width: 46ch; }
.dark .sechead .side, .ink .sechead .side { color: rgba(244, 239, 230, .78); }
.sechead .eyebrow { margin-bottom: 1.4rem; }
.statement { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.12; letter-spacing: -.02em; max-width: 24ch; font-variation-settings: "opsz" 120; }
.statement em { font-style: normal; color: var(--amber); }
@media (max-width: 860px) { .sechead { grid-template-columns: 1fr; } }

/* Hairline grid */
.hairline { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hairline > * { background: var(--paper); }
.alt .hairline > * { background: var(--paper-2); }
.dark .hairline { background: var(--line-dark); border-color: var(--line-dark); }
.dark .hairline > * { background: var(--navy); }

/* Stats */
.who { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem 5rem; align-items: start; }
.who .lede { color: var(--ink-2); font-size: 1.08rem; }
.stats { grid-template-columns: repeat(4, 1fr); margin-top: clamp(3rem, 6vw, 5rem); }
.stat { padding: 2rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 1.2rem; min-height: 13rem; justify-content: space-between; }
.stat .num { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.5rem); line-height: .9; letter-spacing: -.03em; color: var(--ink); }
.stat .num sup { font-size: .45em; color: var(--amber); vertical-align: top; position: relative; top: .25em; }
.stat .lab { font: 500 .72rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); max-width: 26ch; }
@media (max-width: 960px) { .who { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stat { min-height: 0; } }

/* Pathways */
.paths { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); min-height: 34rem; }
.path { flex: 1; position: relative; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--ink); overflow: hidden; transition: flex .8s var(--e-inout), background .5s var(--e-out); background: var(--paper); }
.path:nth-child(2) { background: var(--paper-2); }
.path:nth-child(3) { background: var(--paper-3); }
.path:hover, .path:focus-visible { flex: 2.2; background: var(--navy); color: var(--paper); }
.path .ico { width: 4.5rem; height: 4.5rem; color: var(--amber); transition: transform .8s var(--e-out); }
.path:hover .ico { transform: scale(1.12) rotate(-4deg); color: var(--amber-2); }
.path .lab { font: 500 .72rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.path h3 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); margin: .8rem 0 1rem; max-width: 14ch; }
.path .body { max-width: 40ch; opacity: .85; }
.path .go { margin-top: 1.4rem; }
@media (max-width: 860px) { .paths { flex-direction: column; min-height: 0; } .path:hover { flex: 1; } .path { min-height: 22rem; } }

/* Journey */
.journey { position: relative; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: s; }
.step { background: var(--paper); padding: 1.6rem 1.3rem 1.8rem; display: flex; flex-direction: column; gap: 1rem; min-height: 22rem; position: relative; transition: background .4s; }
.step:hover { background: #fff8ec; }
.step .n { font: 500 .75rem/1 var(--mono); letter-spacing: .15em; color: var(--amber-ink); }
.step .ico { width: 3rem; height: 3rem; color: var(--ink); }
.step h3 { font-size: 1.6rem; }
.step p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.step::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--e-out); transition-delay: calc(var(--i, 0) * 120ms); }
.in .step::after, .step.in::after { transform: scaleX(1); }
@media (max-width: 1180px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* Category directory */
.dir { border-top: 1px solid var(--line); }
.dir-row { display: grid; grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 6fr) 3rem; gap: 1.5rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; transition: padding .5s var(--e-out), background .4s; }
.dir-row .ico { width: 3rem; height: 3rem; color: var(--sage); transition: color .4s, transform .6s var(--e-out); }
.dir-row h3 { font-size: clamp(1.4rem, 2.6vw, 2.4rem); transition: transform .5s var(--e-out); }
.dir-row p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.dir-row .arr { width: 1.4rem; height: 1.4rem; justify-self: end; transition: transform .45s var(--e-out); }
.dir-row:hover { background: var(--paper-2); padding-left: 1rem; padding-right: 1rem; }
.dir-row:hover .ico { color: var(--amber); transform: rotate(-8deg) scale(1.08); }
.dir-row:hover .arr { transform: translateX(6px); }
@media (max-width: 760px) { .dir-row { grid-template-columns: 3.2rem minmax(0, 1fr) 1.5rem; } .dir-row p { grid-column: 2 / 3; } .dir-row .arr { grid-row: 1; grid-column: 3; } }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem 0; margin-top: 3rem; }
.marquee .track { display: flex; gap: 3rem; width: max-content; animation: marq 38s linear infinite; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.2rem); color: var(--ink-2); }
.marquee:hover .track { animation-play-state: paused; }
.marquee .track span { display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; }
.marquee .track span::after { content: "✦"; color: var(--amber); font-size: .6em; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Brand card */
.brandcard { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--navy); color: var(--paper); border-radius: var(--radius); overflow: hidden; }
.brandcard .art { background: #13253a; position: relative; min-height: 22rem; }
.brandcard .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.brandcard .txt { padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1.2rem; justify-content: center; }
.brandcard h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.brandcard .meta { color: var(--amber-2); }
.brandcard p { color: rgba(244, 239, 230, .82); max-width: 50ch; margin: 0; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 1px; padding: 1.2rem 1.5rem; background: var(--amber-2); color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--radius); }
.notice:hover { background: var(--paper-3); }
@media (max-width: 860px) { .brandcard { grid-template-columns: 1fr; } .brandcard .art { min-height: 14rem; } }

/* Why */
.why { grid-template-columns: repeat(3, 1fr); }
.why > div { padding: 2.2rem 2rem 2.4rem; }
.why h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin: 1.4rem 0 .9rem; }
.why p { color: var(--ink-2); margin: 0; }
.why .n { font: 500 .75rem/1 var(--mono); letter-spacing: .15em; color: var(--amber-ink); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* Pillars (dark) */
.pillars { grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 2rem 1.6rem 2.2rem; text-decoration: none; display: flex; flex-direction: column; gap: 1rem; min-height: 15rem; transition: background .35s var(--e-out), color .35s var(--e-out); }
.pillar .ico { width: 2.6rem; height: 2.6rem; color: var(--amber-2); transition: color .35s; }
.pillar h3 { font-size: 1.45rem; }
.pillar p { margin: 0; font-size: .95rem; opacity: .78; }
.pillar .arr { margin-top: auto; width: 1.2rem; height: 1.2rem; opacity: .6; transition: transform .35s var(--e-out); }
.dark .hairline > .pillar:hover { background: var(--paper); color: var(--ink); }
.pillar:hover .ico { color: var(--amber); }
.pillar:hover .arr { transform: translateX(6px); opacity: 1; }
@media (max-width: 1080px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } }

/* Rows (latest / services hub) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 9rem 2rem; gap: 1.5rem; align-items: center; padding: 1.5rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .35s var(--e-out), color .35s var(--e-out); }
.row .t { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.2; }
.row .d, .row .k { font: 500 .72rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.row .k { text-align: right; }
.row svg { width: 1.2rem; height: 1.2rem; justify-self: end; transition: transform .35s var(--e-out); }
.row:hover { background: var(--ink); color: var(--paper); }
.row:hover .d, .row:hover .k { color: var(--stone); }
.row:hover svg { transform: translateX(5px); }
.row .s { display: block; font-family: var(--sans); font-size: .95rem; color: var(--ink-2); margin-top: .4rem; }
.row:hover .s { color: rgba(244, 239, 230, .75); }
@media (max-width: 760px) { .row { grid-template-columns: minmax(0, 1fr) 1.5rem; } .row .d { grid-column: 1 / -1; } .row .k { display: none; } }

/* Final CTA */
.final { background: var(--ink); color: var(--paper); padding: var(--pad) 0; position: relative; overflow: hidden; }
.final .statement { color: var(--paper); max-width: 18ch; font-size: clamp(2.4rem, 6vw, 6rem); }
.final .sub { color: rgba(244, 239, 230, .78); max-width: 52ch; margin: 1.8rem 0 2.4rem; font-size: 1.1rem; }
.final .art { position: absolute; right: -6rem; bottom: -6rem; width: min(42rem, 60vw); opacity: .5; pointer-events: none; }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head .grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem 4rem; align-items: end; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font: 500 .7rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2rem; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--stone); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-size: clamp(2.3rem, 5.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.025em; margin: 1.2rem 0 1.4rem; max-width: 20ch; font-variation-settings: "opsz" 144; }
.page-head .lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--ink-2); max-width: 60ch; margin: 0; }
.page-head .badge { justify-self: end; width: clamp(8rem, 16vw, 14rem); aspect-ratio: 1; border-radius: 50%; background: var(--navy); color: var(--amber-2); display: grid; place-items: center; position: relative; }
.page-head .badge svg { width: 46%; height: 46%; }
.page-head .badge::after { content: ""; position: absolute; inset: -14px; border: 1px dashed var(--stone); border-radius: 50%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-head.legal .badge { display: none; }
.note-bar { margin-top: 1.5rem; display: inline-block; font: 500 .72rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--paper-2); padding: .6rem .9rem; border-left: 2px solid var(--amber); }
@media (max-width: 860px) { .page-head .grid { grid-template-columns: 1fr; } .page-head .badge { display: none; } }

.content-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 3rem 5rem; padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.toc { position: sticky; top: 6.5rem; align-self: start; font-size: .9rem; }
.toc .mono { color: var(--ink-3); display: block; margin-bottom: 1rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: .45rem 0 .45rem 1rem; text-decoration: none; color: var(--ink-2); border-left: 2px solid transparent; margin-left: -1px; transition: color .25s, border-color .25s; line-height: 1.35; }
.toc li a:hover, .toc li a.active { color: var(--ink); border-left-color: var(--amber); }
@media (max-width: 980px) { .content-grid { grid-template-columns: 1fr; } .toc { display: none; } }
.no-toc .content-grid { grid-template-columns: minmax(0, 1fr); }
.no-toc .prose { max-width: 820px; }

.prose section { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin: 0 0 1.4rem; max-width: 26ch; }
.prose h3 { font-size: 1.4rem; margin: 2rem 0 1rem; }
.prose p, .prose li { max-width: var(--measure); color: var(--ink-2); }
.prose p strong, .prose li strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover { color: var(--amber-ink); }
.prose ul, .prose ol { padding: 0; margin: 0 0 1.4rem; list-style: none; }
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .5rem; height: 1px; background: var(--amber); }
.prose ol { counter-reset: o; }
.prose ol li { counter-increment: o; position: relative; padding: 1rem 0 1rem 3.4rem; border-top: 1px solid var(--line); margin: 0; }
.prose ol li:last-child { border-bottom: 1px solid var(--line); }
.prose ol li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 0; top: 1.05rem; font: 500 .8rem/1.6 var(--mono); color: var(--amber-ink); letter-spacing: .08em; }
.prose blockquote { margin: 2rem 0; padding: 1.6rem 0 1.6rem 1.8rem; border-left: 2px solid var(--amber); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; color: var(--ink); }
.prose blockquote p { color: var(--ink); max-width: 40ch; margin-bottom: .6rem; }
.prose blockquote p:last-child { font: 500 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.prose .next { margin-top: 1.5rem; }
.prose .next a { text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); background-image: linear-gradient(var(--amber), var(--amber)); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 3px; }
.prose .next a::after { content: "→"; color: var(--amber); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.prose th { font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.prose td:first-child { font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.prose .muted { font-size: .88rem; color: var(--ink-3); border-left: 2px solid var(--stone); padding-left: 1rem; }
.prose .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.4rem 0 1.8rem; }
.prose .cards > div { background: var(--paper); padding: 1.3rem 1.4rem; }
.prose .cards h3 { font-size: 1.2rem; margin: 0 0 .5rem; font-family: var(--serif); }
.prose .cards p { margin: 0; font-size: .95rem; }
@media (max-width: 640px) { .prose .cards { grid-template-columns: 1fr; } }
.prose .checklist { columns: 2; column-gap: 2.5rem; }
.prose .checklist li { break-inside: avoid; }
@media (max-width: 760px) { .prose .checklist { columns: 1; } }
.prose dl { margin: 0 0 1.4rem; }
.prose dl > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.prose dl > div:last-child { border-bottom: 1px solid var(--line); }
.prose dt { font: 500 .72rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.prose dd { margin: 0; color: var(--ink-2); max-width: var(--measure); }
@media (max-width: 640px) { .prose dl > div { grid-template-columns: 1fr; gap: .4rem; } }
.prose .meta-line { font: 500 .72rem/1.8 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.prose .meta-line strong { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.faq h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: 2rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0; position: relative; font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1.1rem; font: 300 1.8rem/1 var(--sans); color: var(--amber); transition: transform .35s var(--e-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 1.6rem; color: var(--ink-2); max-width: var(--measure); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 5rem; }
@media (max-width: 980px) { .faq-grid { grid-template-columns: 1fr; } }

/* CTA band + related */
.cta-band { background: var(--navy); color: var(--paper); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); max-width: 20ch; }
.related { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.related .mono { color: var(--ink-3); display: block; margin-bottom: 1rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.related li a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--e-out), color .3s; }
.related li a:hover { padding-left: .6rem; color: var(--amber-ink); }
.related li a::after { content: "→"; color: var(--amber); }
@media (max-width: 860px) { .related ul { grid-template-columns: 1fr; } }

/* Cards (insights index, hubs) */
.cardgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cardgrid > a { background: var(--paper); padding: 2rem 1.8rem; text-decoration: none; display: flex; flex-direction: column; gap: 1rem; min-height: 19rem; transition: background .35s, color .35s; }
.cardgrid > a:hover { background: var(--navy); color: var(--paper); }
.cardgrid .ico { width: 2.8rem; height: 2.8rem; color: var(--amber); }
.cardgrid h3 { font-size: 1.55rem; }
.cardgrid p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.cardgrid > a:hover p { color: rgba(244, 239, 230, .78); }
.cardgrid .d { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.cardgrid > a:hover .d { color: var(--stone); }
.cardgrid .go { margin-top: auto; }
@media (max-width: 980px) { .cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cardgrid { grid-template-columns: 1fr; } .cardgrid > a { min-height: 0; } }

/* Contact form */
.form-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem 5rem; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
@media (max-width: 980px) { .form-wrap { grid-template-columns: 1fr; } }
form.lead { display: flex; flex-direction: column; gap: 1.4rem; }
.intents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.intents label { background: var(--paper); padding: 1.1rem 1.2rem 1.2rem 3rem; cursor: pointer; position: relative; display: block; transition: background .25s; }
.intents label:hover { background: var(--paper-2); }
.intents input { position: absolute; left: 1.1rem; top: 1.3rem; accent-color: var(--amber); width: 1rem; height: 1rem; }
.intents .t { font-weight: 600; display: block; }
.intents .s { font-size: .85rem; color: var(--ink-3); }
.intents label:has(input:checked) { background: var(--navy); color: var(--paper); }
.intents label:has(input:checked) .s { color: var(--stone); }
@media (max-width: 620px) { .intents { grid-template-columns: 1fr; } }
.helper { font-size: .92rem; color: var(--ink-2); background: var(--paper-2); padding: .9rem 1.1rem; border-left: 2px solid var(--amber); margin: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.4rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fbf8f2; border: 1px solid var(--line); border-bottom: 1px solid var(--ink-3); border-radius: var(--radius); padding: .85rem .95rem; transition: border-color .25s, background .25s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: #fff; }
.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: .35rem; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field .opts { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.field .opts label { font: 400 .95rem/1.4 var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); display: inline-flex; gap: .45rem; align-items: center; margin: 0; }
.field .opts input { accent-color: var(--amber); }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.consent input { margin-top: .25rem; accent-color: var(--amber); width: 1.05rem; height: 1.05rem; flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; background: #F6DCD3; color: #6A1F0B; padding: .9rem 1.1rem; border-left: 2px solid #A33A1A; }
.form-error.show { display: block; }
.privacy-note { font-size: .82rem; color: var(--ink-3); }
.intent-block[hidden] { display: none; }
.aside-card { background: var(--paper-2); padding: 2rem; border-radius: var(--radius); align-self: start; position: sticky; top: 6.5rem; }
.aside-card h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.aside-card ol { padding-left: 1.2rem; color: var(--ink-2); }
.aside-card .mail { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; display: inline-block; margin: .4rem 0 1rem; }

/* Article */
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.6rem; font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sources { padding: 2rem 0 0; }
.sources h2 { font-size: 1.5rem !important; }
.sources ol li { font-size: .9rem; padding-top: .75rem; padding-bottom: .75rem; }
.sources ol li::before { top: .8rem; }
.sources a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--paper); padding: clamp(4rem, 8vw, 6.5rem) 0 0; overflow: hidden; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 { font: 500 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.site-footer ul a { text-decoration: none; font-size: .93rem; color: rgba(244, 239, 230, .82); }
.site-footer ul a:hover { color: var(--amber-2); }
.site-footer .signoff { font-family: var(--serif); font-size: 1.6rem; margin: 1.6rem 0 1.2rem; line-height: 1.2; }
.site-footer .group { font-size: .92rem; color: rgba(244, 239, 230, .75); max-width: 38ch; }
.site-footer .group a { color: var(--amber-2); }
.site-footer .contact { margin-top: 1.3rem; font-size: .92rem; color: rgba(244, 239, 230, .78); }
.site-footer .contact a { color: var(--paper); }
.site-footer .legal { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.4rem 0; font-size: .82rem; color: rgba(244, 239, 230, .62); }
.site-footer .legal nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer .legal a { text-decoration: none; }
.site-footer .legal a:hover { color: var(--paper); }
.wordmark { font-family: var(--serif); font-size: clamp(3.5rem, 15.5vw, 17rem); line-height: .78; letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(244, 239, 230, .28); padding: 1rem 0 0; margin-bottom: -.06em; user-select: none; text-align: center; font-variation-settings: "opsz" 144; background: linear-gradient(90deg, rgba(217, 165, 74, .0) 0%, rgba(217, 165, 74, .35) 50%, rgba(217, 165, 74, 0) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: sheen 9s linear infinite; }
@keyframes sheen { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 980px) { .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .top > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.r-up { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--e-out), transform .9s var(--e-out); transition-delay: calc(var(--i, 0) * 90ms); }
.r-up.in { opacity: 1; transform: none; }
.r-line { display: block; overflow: hidden; }
.r-line > span { display: block; transform: translateY(110%); transition: transform 1s var(--e-out); transition-delay: calc(var(--i, 0) * 110ms); }
.r-line.in > span, .in .r-line > span { transform: none; }
.no-js .r-up { opacity: 1; transform: none; }
.no-js .r-line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .r-up { opacity: 1; transform: none; }
  .r-line > span { transform: none; }
}
@media print { .site-header, .site-footer, .cta-band, .mobile-menu { display: none; } body::before { display: none; } }
.intents label { font: 400 1rem/1.4 var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.intents label .t { font-weight: 600; }
/* Original Union Trade logo (UT monogram + wordmark) */
.brand .logo { height: 2.55rem; width: calc(2.55rem * 3.836); max-width: none; flex: none; display: block; }
.site-footer .brand .logo { height: 3.6rem; width: calc(3.6rem * 3.836); }
.mobile-menu .brand .logo { height: 2.3rem; width: calc(2.3rem * 3.836); }
@media (max-width: 520px) { .site-header .brand .logo { height: 2.2rem; width: calc(2.2rem * 3.836); } }
