/* Wilson Legal: one-pager styles */

:root {
  --yellow: #FBB400;
  --white: #FAFAFA;
  --black: #1C1C1C;
  --blue: #3380B6;
  --accent: #9EC9E7;

  --bg: var(--black);
  --bg-raised: #232323;
  --text: var(--white);
  --muted: rgba(250, 250, 250, 0.66);
  --line: rgba(250, 250, 250, 0.12);

  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

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

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--black);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(28, 28, 28, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.nav > a {
  font-size: 0.9375rem; text-decoration: none; color: var(--muted);
  transition: color .2s ease;
}
.nav > a:hover { color: var(--white); }

.lang {
  display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: 600 0.75rem/1 var(--font); letter-spacing: 0.08em;
  padding: 7px 11px; border-radius: 999px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lang button:hover { color: var(--white); }
.lang button[aria-pressed="true"] { background: var(--yellow); color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 96px;
  overflow: hidden;
}
.hero::before { /* soft blue glow */
  content: ""; position: absolute; inset: auto -20% -40% auto;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(51, 128, 182, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.hero-copy { display: grid; gap: 28px; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--text); }
.hero-text { display: grid; gap: 16px; max-width: 54ch; }
.hero-text p:not(.lead) { color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font-weight: 600; font-size: 0.975rem; text-decoration: none;
  border-radius: var(--radius);
  transition: transform .2s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: #ffc633; transform: translateY(-2px); }
.hero-email { color: var(--accent); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(158, 201, 231, .35); padding-bottom: 2px; transition: border-color .2s ease; }
.hero-email:hover { border-bottom-color: var(--accent); }

.hero-mark { justify-self: end; width: 100%; max-width: 480px; }
.mark { width: 100%; overflow: visible; }
.m { fill: var(--yellow); transform-box: fill-box; }
.m1 { transform-origin: 100% 0; }
.m2 { transform-origin: 0 100%; }
.m3 { transform-origin: 0 0; }

.js .m { opacity: 0; transform: scale(.6) rotate(-12deg); }
.js .is-ready .m { animation: shape-in 1.1s var(--ease) forwards; }
.js .is-ready .m2 { animation-delay: .15s; }
.js .is-ready .m3 { animation-delay: .3s; }
@keyframes shape-in { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.12; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 96px); align-items: start;
}
.split > div:first-child { display: grid; gap: 16px; }
.split h2 { max-width: 16ch; }

.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-intro { color: var(--muted); font-size: 1.125rem; padding-top: 34px; }

.c-yellow { fill: var(--yellow); }
.c-blue { fill: var(--blue); }
.c-accent { fill: var(--accent); }
.r90 { --r: 90deg; transform: rotate(90deg); }
.r180 { --r: 180deg; transform: rotate(180deg); }
.r270 { --r: 270deg; transform: rotate(270deg); }

/* ---------- Services ---------- */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px clamp(24px, 6vw, 96px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}
.service::after { /* yellow rule grows on hover */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.service:hover::after { transform: scaleX(1); }

.service-head { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 20px 18px; align-items: center; }
.service-head .service-num { grid-column: 1 / -1; font: 500 0.8125rem/1 var(--font); letter-spacing: 0.14em; color: var(--muted); }
.service-icon { width: 40px; height: 40px; transition: transform .5s var(--ease); }
.service:hover .service-icon { transform: rotate(calc(var(--r, 0deg) + 90deg)); }
.service h3 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.2; }

.service-body { display: grid; gap: 16px; }
.service-body p { color: var(--muted); }
.service-body .service-lead { color: var(--text); font-size: 1.1875rem; line-height: 1.5; }
.focus-label { margin-top: 12px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent) !important; }
.focus { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.focus li {
  font-size: 0.875rem; line-height: 1.35;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text);
  transition: border-color .25s ease;
}
.service:hover .focus li { border-color: rgba(250, 250, 250, 0.22); }

/* ---------- Independent advisory ---------- */
.prose { display: grid; gap: 18px; }
.prose p { color: var(--muted); }
.prose .lead { color: var(--text); }
.prose .highlight {
  color: var(--text); font-weight: 500;
  padding-left: 20px; border-left: 2px solid var(--yellow);
  margin-top: 8px;
}
.pillars {
  list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.pillar { display: grid; gap: 10px; align-content: start; padding: 36px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar-icon { width: 28px; height: 28px; margin-bottom: 10px; }
.pillar-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.js .pillar.reveal:nth-child(2) { transition-delay: .1s; }
.js .pillar.reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- Approach ---------- */
.approach { position: relative; overflow: hidden; background: var(--bg-raised); }
.approach-mark {
  position: absolute; right: -6vw; top: 50%; transform: translateY(-50%);
  width: clamp(240px, 36vw, 520px); opacity: .07; pointer-events: none;
}
.approach-mark svg { width: 100%; fill: var(--yellow); }
.approach-inner { position: relative; display: grid; gap: 20px; }
.approach h2 { font-size: clamp(2.125rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 18ch; }
.approach-text { display: grid; gap: 16px; max-width: 62ch; margin-top: 16px; }
.approach-text p:not(.lead) { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; gap: 18px; justify-items: start; }
.contact-text { color: var(--muted); font-size: 1.125rem; max-width: 56ch; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 16px; }
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 4.5rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--yellow); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease);
  overflow-wrap: anywhere;
}
.contact-email:hover { background-size: 100% 2px; }
.copy-btn {
  appearance: none; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  font: 600 0.8125rem/1 var(--font); letter-spacing: 0.06em;
  padding: 11px 18px;
  transition: color .2s ease, border-color .2s ease;
}
.copy-btn:hover { color: var(--white); border-color: var(--muted); }
.copy-btn.is-copied { color: var(--black); background: var(--accent); border-color: var(--accent); }

.company {
  margin-top: clamp(56px, 8vw, 96px); padding-top: 40px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 32px 48px;
  font-size: 0.9375rem;
}
.company address { font-style: normal; line-height: 1.75; }
.company dl { margin: 0; display: grid; gap: 18px; align-content: start; }
.company dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.company dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 0.875rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-logo { height: 40px; width: auto; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav > a { display: none; }
}
@media (max-width: 860px) {
  .hero { min-height: auto; padding: 128px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; max-width: 220px; }
  .split, .service { grid-template-columns: 1fr; }
  .section-intro { padding-top: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .company { grid-template-columns: 1fr 1fr; }
  .company dl:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .header-inner { height: 72px; }
  .brand img { height: 36px; }
  .company { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .m, .js .reveal { opacity: 1; transform: none; }
}
