/* group.rtlawservices.com: the RT Law Services brand (ink, brass, paper), the
   engraved guilloche of the stationery, and motion that stops for visitors who
   ask for reduced motion. */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/eb-garamond.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(/fonts/eb-garamond-italic.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/lato-700.woff2) format("woff2"); }

:root {
  --ink: #14181f;
  --ink-2: #1c222c;
  --ink-3: #0b0e13;
  --brass: #b1976b;
  --gold: #c7a767;
  --gold-hi: #e6d3a3;
  --brass-ink: #7d6638;
  --paper: #fbfaf7;
  --mist: #f1f0ec;
  --stone: #5d636b;
  --stone-dark: #a8adb4;
  --line: #e3e1db;
  --line-dark: rgba(255, 255, 255, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Lato", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(76rem, 100% - 2rem); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(76rem, 100% - 4rem); } }
.eyebrow { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-ink); }
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.04; text-wrap: balance; }
.muted { color: var(--stone-dark); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.5rem; border-radius: 999px; font: 700 0.95rem/1 var(--sans); text-decoration: none; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease); will-change: transform; }
.btn svg { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--brass)); color: var(--ink); box-shadow: 0 14px 34px -16px rgba(199, 167, 103, 0.75); }
.btn-gold:hover { background: linear-gradient(135deg, #f4e7c4, var(--gold-hi) 50%, var(--gold)); }
.btn-line { border: 1px solid rgba(230, 211, 163, 0.45); color: var(--paper); }
.btn-line:hover { border-color: var(--gold-hi); background: rgba(230, 211, 163, 0.08); }
.btn-sm { min-height: 2.6rem; padding: 0 1.1rem; font-size: 0.85rem; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s; }
.site-header.scrolled { background: rgba(20, 24, 31, 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(199, 167, 103, 0.35); }
.bar { display: flex; align-items: center; gap: 2rem; height: 5rem; }
.brand { display: block; }
.logo { width: 11.5rem; height: auto; }
.nav { display: none; gap: 2rem; margin-left: auto; }
.nav a { color: rgba(251, 250, 247, 0.78); text-decoration: none; font-weight: 700; font-size: 0.92rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav a:hover { color: var(--paper); }
.nav a:hover::after { transform: scaleX(1); }
.site-header .btn-sm { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .site-header .btn-sm { margin-left: 0; } }
@media (max-width: 480px) { .logo { width: 9rem; } .site-header .btn-sm { padding: 0 0.85rem; font-size: 0.78rem; } }

/* ---------- engraved patterns ---------- */
.rosette { color: var(--gold); }
.weave { width: 100%; height: 100%; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .rosette .turn { transform-box: fill-box; transform-origin: center; animation: turn 160s linear infinite; }
  .weave .drift { animation: drift var(--time, 18s) linear infinite; }
}
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateX(var(--drift)); } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse 120% 90% at 70% 30%, #212835 0%, var(--ink) 55%, var(--ink-3) 100%); color: var(--paper); min-height: 100svh; display: grid; align-items: center; padding: 7rem 0 5rem; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 30%), rgba(199, 167, 103, 0.18), transparent 60%); transition: background 0.2s; }
.hero-rosette { position: absolute; z-index: -1; right: -14rem; top: 50%; width: min(64rem, 120vw); translate: 0 -50%; opacity: 0.2; }
.hero-weave { position: absolute; z-index: -1; inset: auto 0 0; height: 10rem; opacity: 0.55; mask-image: linear-gradient(to top, #000, transparent); }
.hero-inner { max-width: 52rem; margin-inline: max(1rem, calc((100% - 76rem) / 2)); }
@media (min-width: 640px) { .hero-inner { margin-inline: max(2rem, calc((100% - 76rem) / 2)); } }
.hero .eyebrow { color: var(--gold-hi); }
.hero-title { margin-top: 1.6rem; font-size: clamp(2.8rem, 7.4vw, 6.2rem); }
.hero-title .word { display: inline-block; background: linear-gradient(180deg, #fff 0%, #f1e7d1 60%, var(--gold-hi) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rule { display: flex; align-items: center; gap: 0.6rem; margin-top: 2rem; }
.rule i { display: block; width: 3.6rem; height: 1px; background: var(--gold); }
.rule i:first-child { background: linear-gradient(90deg, transparent, var(--gold)); }
.rule i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.rule b { width: 0.45rem; height: 0.45rem; rotate: 45deg; background: var(--gold-hi); }
.lead { margin-top: 1.8rem; max-width: 42rem; font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.7; color: #c9cdd3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.6rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 2rem; width: 1.6rem; height: 2.6rem; translate: -50% 0; border: 1px solid rgba(230, 211, 163, 0.5); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 0.55rem; width: 3px; height: 0.55rem; translate: -50% 0; border-radius: 3px; background: var(--gold-hi); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue span { animation: cue 2s var(--ease) infinite; }
  .rise, .hero-title .word { animation: rise 1s var(--ease) both; animation-delay: var(--d, 0ms); }
  .hero-title .word { animation-name: word; }
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(0.9rem); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes word { from { opacity: 0; transform: translateY(0.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* business page hero */
.hero-page { min-height: auto; padding: 9rem 0 6rem; }
.page-hero { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .page-hero { grid-template-columns: 1.2fr 0.8fr; } }
.crumbs { display: flex; gap: 0.6rem; font-size: 0.85rem; color: var(--stone-dark); margin-bottom: 1.6rem; }
.crumbs a { color: var(--gold-hi); text-decoration: none; }
.hero-page .hero-title { font-size: clamp(2.6rem, 6vw, 5rem); }
.tagline { margin-top: 1.6rem; font: italic 400 clamp(1.25rem, 2.2vw, 1.6rem)/1.4 var(--serif); color: var(--gold-hi); }
.tagline a { color: var(--gold-hi); }
.seal { position: relative; width: min(26rem, 80vw); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.seal .rosette { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.45; }
.seal-core { position: relative; display: grid; place-items: center; width: 52%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #29313f, #10141a 70%); box-shadow: 0 0 0 1px rgba(199, 167, 103, 0.8), 0 0 0 10px var(--ink), 0 0 0 11px rgba(199, 167, 103, 0.45), 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.seal-core::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(199, 167, 103, 0.35); }
.seal-icon { width: 46%; color: var(--gold-hi); }
.seal-num { position: absolute; bottom: 6%; font: 700 0.8rem/1 var(--sans); letter-spacing: 0.4em; color: var(--gold-hi); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(5rem, 10vw, 8rem) 0; overflow: hidden; }
.section.tint { background: var(--mist); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark .eyebrow { color: var(--gold-hi); }
.section.dark > .rosette { position: absolute; width: 42rem; left: -16rem; bottom: -18rem; opacity: 0.12; }
.section-head { max-width: 46rem; }
.section-head .display { margin-top: 1rem; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }

/* orbit: the four businesses around the firm */
.orbit-wrap { display: grid; gap: 3rem; align-items: center; margin-top: 4rem; }
@media (min-width: 960px) { .orbit-wrap { grid-template-columns: 0.95fr 1.05fr; } }
.orbit { position: relative; width: min(30rem, 86vw); aspect-ratio: 1; margin-inline: auto; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(177, 151, 107, 0.35); }
.orbit-ring.r2 { inset: 14%; border-style: dashed; border-color: rgba(177, 151, 107, 0.3); }
.orbit-ring.r3 { inset: 28%; border-color: rgba(177, 151, 107, 0.2); }
.orbit-core { position: absolute; inset: 31%; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #29313f, var(--ink) 70%); box-shadow: 0 0 0 1px rgba(199, 167, 103, 0.7), 0 0 0 8px var(--paper), 0 0 0 9px rgba(199, 167, 103, 0.4), 0 30px 60px -24px rgba(20, 24, 31, 0.7); overflow: hidden; }
.orbit-core .rosette { position: absolute; inset: -10%; width: 120%; height: 120%; opacity: 0.35; }
.orbit-core span { position: relative; font: 600 clamp(2.4rem, 7vw, 3.6rem)/1 var(--serif); background: linear-gradient(180deg, #f4e7c4, var(--gold) 55%, #8e7440); -webkit-background-clip: text; background-clip: text; color: transparent; }
.orbit-node { position: absolute; left: 50%; top: 50%; width: 18%; aspect-ratio: 1; margin: -9% 0 0 -9%; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--gold-hi); box-shadow: 0 0 0 1px rgba(199, 167, 103, 0.75), 0 18px 30px -16px rgba(20, 24, 31, 0.8); transform: rotate(var(--a)) translate(calc(min(30rem, 86vw) * 0.5)) rotate(calc(-1 * var(--a))); transition: background 0.4s, color 0.4s, scale 0.4s var(--ease); }
.orbit-node .icon { width: 55%; }
.orbit-node.on { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--ink); scale: 1.15; }
@media (prefers-reduced-motion: no-preference) {
  .orbit { animation: orbit 90s linear infinite; }
  .orbit .orbit-node, .orbit .orbit-core span { animation: orbit 90s linear infinite reverse; }
  .orbit:hover, .orbit:hover .orbit-node, .orbit:hover .orbit-core span { animation-play-state: paused; }
}
@keyframes orbit { to { rotate: 360deg; } }
.orbit-list { display: grid; gap: 0.6rem; counter-reset: n; }
.orbit-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 1.2rem; background: #fff; text-decoration: none; transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s; }
.orbit-list a:hover, .orbit-list a.on { border-color: rgba(125, 102, 56, 0.6); transform: translateX(6px); box-shadow: 0 24px 40px -30px rgba(20, 24, 31, 0.5); }
.orbit-list .num { font: 600 1.6rem/1 var(--serif); color: var(--brass); }
.orbit-list strong { display: block; font: 600 1.3rem/1.2 var(--serif); }
.orbit-list em { display: block; margin-top: 0.25rem; font-style: normal; font-size: 0.9rem; color: var(--stone); }
.orbit-list svg { width: 1.1rem; color: var(--brass-ink); }

/* business cards */
.biz-grid { display: grid; gap: 1.4rem; margin-top: 5rem; }
@media (min-width: 760px) { .biz-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .biz-grid.three { grid-template-columns: repeat(3, 1fr); } }
.biz-grid.three { margin-top: 3rem; }
.biz { position: relative; display: flex; flex-direction: column; gap: 1rem; min-height: 25rem; padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: 1.6rem; overflow: hidden; text-decoration: none; color: var(--paper); background: radial-gradient(ellipse at 20% 0%, #252d3a, var(--ink) 60%, var(--ink-3)); box-shadow: inset 0 0 0 1px rgba(199, 167, 103, 0.28), 0 40px 70px -50px rgba(20, 24, 31, 0.9); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s var(--ease), box-shadow 0.4s; }
.biz:hover { box-shadow: inset 0 0 0 1px rgba(230, 211, 163, 0.65), 0 50px 80px -50px rgba(20, 24, 31, 0.95); }
.biz::before { content: ""; position: absolute; inset: 0.7rem; border: 1px solid rgba(199, 167, 103, 0.18); border-radius: 1.1rem; pointer-events: none; }
.biz-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(199, 167, 103, 0.22), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.biz:hover .biz-glow { opacity: 1; }
.biz-top { display: flex; align-items: center; justify-content: space-between; }
.biz-num { font: 600 3.4rem/1 var(--serif); background: linear-gradient(180deg, #f4e7c4, var(--gold) 60%, #8e7440); -webkit-background-clip: text; background-clip: text; color: transparent; }
.biz-icon { width: 3.6rem; color: var(--gold-hi); transition: transform 0.6s var(--ease); }
.biz:hover .biz-icon { transform: rotate(-8deg) scale(1.08); }
.biz-name { margin-top: auto; font: 500 clamp(1.7rem, 2.6vw, 2.2rem)/1.1 var(--serif); }
.biz-tag { font: italic 400 1.1rem/1.4 var(--serif); color: var(--gold-hi); }
.biz-text { color: var(--stone-dark); font-size: 0.98rem; }
.biz-go { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem; font-weight: 700; font-size: 0.9rem; color: var(--gold-hi); }
.biz-go svg { width: 1rem; transition: transform 0.3s var(--ease); }
.biz:hover .biz-go svg, .person:hover .biz-go svg { transform: translate(3px, -3px); }

/* leadership */
.team-grid { display: grid; gap: 1.2rem; margin-top: 4rem; position: relative; }
@media (min-width: 700px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.person { display: flex; flex-direction: column; gap: 0.6rem; padding: 2rem 1.6rem; border-radius: 1.4rem; background: var(--ink-2); border: 1px solid var(--line-dark); text-decoration: none; transition: border-color 0.4s, transform 0.5s var(--ease); }
.person:hover { border-color: rgba(230, 211, 163, 0.55); transform: translateY(-6px); }
.medal { display: grid; place-items: center; width: 5.4rem; aspect-ratio: 1; margin-bottom: 0.8rem; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2b3443, #10141a 70%); box-shadow: 0 0 0 1px rgba(199, 167, 103, 0.8), 0 0 0 6px var(--ink-2), 0 0 0 7px rgba(199, 167, 103, 0.4); }
.medal span { font: 600 1.8rem/1 var(--serif); background: linear-gradient(180deg, #f4e7c4, var(--gold) 55%, #8e7440); -webkit-background-clip: text; background-clip: text; color: transparent; }
.person-role { font: 700 0.75rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); }
.person-name { font: 500 1.7rem/1.15 var(--serif); }
.person-text { color: var(--stone-dark); font-size: 0.95rem; }
.person .biz-go { margin-top: auto; padding-top: 0.6rem; }

/* business page detail */
.detail { display: grid; gap: 3rem; }
@media (min-width: 960px) { .detail { grid-template-columns: 1.3fr 0.7fr; gap: 5rem; } }
.lead-dark { margin-top: 1.6rem; font: 400 clamp(1.35rem, 2.3vw, 1.75rem)/1.6 var(--serif); color: #2a2f37; }
.lead-dark::first-letter { float: left; font-size: 4.6em; line-height: 0.82; padding: 0.06em 0.12em 0 0; background: linear-gradient(180deg, var(--gold), #8e7440); -webkit-background-clip: text; background-clip: text; color: transparent; }
.detail-side { display: grid; gap: 1rem; align-content: start; }
.panel { padding: 1.6rem; border: 1px solid var(--line); border-radius: 1.2rem; background: #fff; }
.panel-dark { background: var(--ink); color: var(--paper); border-color: transparent; display: grid; gap: 1rem; }
.panel-dark .eyebrow { color: var(--gold-hi); }
.panel-dark p:not(.eyebrow) { color: var(--stone-dark); }
.side-link { color: var(--gold-hi); font-weight: 700; font-size: 0.92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chips li { padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; font-weight: 700; }

/* contact band */
.cta { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 8rem) 0; background: radial-gradient(ellipse at 50% 120%, #2a2418, var(--ink) 60%); color: var(--paper); text-align: center; }
.cta > .rosette { position: absolute; width: 50rem; left: 50%; top: 50%; translate: -50% -50%; opacity: 0.14; }
.cta-inner { position: relative; display: grid; justify-items: center; gap: 1.4rem; }
.cta .eyebrow { color: var(--gold-hi); }
.cta .display { max-width: 44rem; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1rem; }

/* footer */
.site-footer { position: relative; background: var(--ink-3); color: var(--stone-dark); }
.weave-band { height: 6rem; opacity: 0.5; mask-image: linear-gradient(to bottom, #000, transparent); }
.foot { display: grid; gap: 2.4rem; padding: 2rem 0 3rem; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 800px) { .foot { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot .eyebrow { color: var(--gold-hi); margin-bottom: 1rem; }
.foot ul { display: grid; gap: 0.55rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); }
.motto { margin-top: 1.4rem; font: italic 400 1.4rem/1.3 var(--serif); color: var(--paper); }
.legal { display: grid; gap: 0.6rem; padding: 2rem 0 2.6rem; font-size: 0.82rem; line-height: 1.6; }
.legal a { color: var(--paper); }

/* scroll reveal: content is visible without JavaScript */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .biz.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
