/* Lumarq Global: landing page
   Layout: an Ink "gate" hero where the open-square mark frames the page, then Paper
   sections on a 12-column grid, left-aligned. Brass only for the exit stroke, rules and
   the primary action. */

:root {
  --ink: #0B1A2E;
  --harbor: #1F3A5A;
  --brass: #B4925A;
  --brass-deep: #7D5F2E;
  --paper: #F5F3EE;
  --stone: #E3DED4;
  --graphite: #4B5563;
  --mist: #A7B2C2;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--graphite);
  --line: var(--stone);
  --raised: #FFFFFF;
  --accent-text: var(--brass-deep);
  --band: var(--ink);
  --band-fg: var(--paper);
  --band-muted: var(--mist);
  --band-line: var(--harbor);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1F35; --fg: #F5F3EE; --muted: #B5BFCC; --line: #22405F;
    --raised: #122640; --accent-text: #CBAB72;
    --band: #07111F; --band-fg: #F5F3EE; --band-muted: #A7B2C2; --band-line: #1F3A5A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1F35; --fg: #F5F3EE; --muted: #B5BFCC; --line: #22405F;
  --raised: #122640; --accent-text: #CBAB72;
  --band: #07111F; --band-fg: #F5F3EE; --band-muted: #A7B2C2; --band-line: #1F3A5A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 20;
  height: env(safe-area-inset-top, 0px); background: var(--band);
}

img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--brass); color: var(--ink); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--band-fg); }
.wordmark svg { width: 34px; height: 34px; flex-shrink: 0; }
.wordmark .wm { display: flex; flex-direction: column; gap: 5px; }
.wordmark .wm-name { font-weight: 600; font-size: 19px; letter-spacing: 0.14em; line-height: 1; }
.wordmark .wm-name span, .wordmark .wm-sub { color: var(--brass); }
.wordmark .wm-sub { font-size: 8px; font-weight: 500; letter-spacing: 0.62em; line-height: 1; }

.mark path { fill: none; stroke-width: 5; stroke-linecap: square; }
.mark .frame { stroke: var(--band-fg); }
.mark .exit { stroke: var(--brass); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--band); color: var(--band-fg);
  border-bottom: 1px solid var(--band-line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 32px; flex-wrap: wrap; padding-block: 16px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-size: 15px; color: var(--band-muted); display: inline-block; padding-block: 10px; }
.site-nav a:hover { color: var(--band-fg); }
.site-nav .nav-cta {
  color: var(--band-fg); border: 1px solid var(--brass); padding: 10px 18px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.site-nav .nav-cta:hover { background: var(--brass); color: var(--ink); }

/* ---------- Hero: the gate ---------- */
.hero { background: var(--band); color: var(--band-fg); overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  padding-block: clamp(56px, 9vw, 112px) clamp(64px, 9vw, 120px);
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.8vw, 76px); line-height: 1.04; }
.hero .lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--band-muted); max-width: 54ch; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: #C9A970; }
.btn-quiet { color: var(--band-fg); padding-inline: 0; min-height: 44px; border-bottom: 1px solid var(--band-line); }
.btn-quiet:hover { border-bottom-color: var(--brass); }

.gate { position: relative; justify-self: end; width: min(100%, 440px); aspect-ratio: 1; max-width: 100%; }
.gate svg { width: 100%; height: 100%; overflow: visible; }
.gate .frame { stroke-width: 2.2; }
.gate .exit { stroke-width: 2.2; }
.gate-caption {
  position: absolute; left: 15.6%; top: 15.6%; right: 15.6%; bottom: 15.6%;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 8px;
  padding: 11% 12% 0; font-size: 14px; color: var(--band-muted); line-height: 1.5;
}
.gate-caption strong { color: var(--band-fg); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.25; }

/* the one orchestrated moment: frame draws, then the exit stroke leaves it */
@media (prefers-reduced-motion: no-preference) {
  .gate .frame { stroke-dasharray: 140; animation: draw 1.4s cubic-bezier(.6,.05,.25,1) .15s backwards; }
  .gate .exit { stroke-dasharray: 26; animation: draw-exit .7s cubic-bezier(.3,.6,.2,1) 1.45s backwards; }
  .gate-caption { animation: settle .6s ease 1.9s backwards; }
}
@keyframes draw { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
@keyframes draw-exit { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reach strip ---------- */
.reach { background: var(--band); color: var(--band-muted); border-top: 1px solid var(--band-line); }
.reach .wrap {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; padding-block: 28px; font-size: 15px;
}
.reach dt { color: var(--band-fg); font-weight: 600; margin-bottom: 2px; }
.reach dd { margin: 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); border-bottom: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px;
  align-items: end; margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head p { color: var(--muted); max-width: 60ch; }
.kicker { display: block; font-size: 15px; font-weight: 600; color: var(--accent-text); margin-bottom: 18px; }

/* Practice areas: three groups, each a row with a list of areas */
.practice { display: flex; flex-direction: column; }
.group {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 64px;
  padding-block: 40px; border-top: 1px solid var(--fg);
}
.group:last-child { padding-bottom: 0; }
.group-name { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.group-name small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 36px 40px; }
.area { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.area p { color: var(--muted); font-size: 16px; }
.terms { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.terms li {
  font-size: 13px; line-height: 1; padding: 7px 10px; color: var(--fg);
  border: 1px solid var(--line); background: var(--raised);
}

/* How we work: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; counter-reset: step; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; counter-increment: step; min-width: 0; }
.steps li::before {
  content: counter(step); position: absolute; top: -14px; left: 0;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--brass); color: var(--accent-text);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.steps p { color: var(--muted); font-size: 16px; }

.terms-box {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px;
  padding: clamp(28px, 4vw, 48px); background: var(--raised); border: 1px solid var(--line);
}
.terms-box h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; }
.terms-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.terms-box li { padding-left: 26px; position: relative; color: var(--muted); }
.terms-box li strong { color: var(--fg); font-weight: 600; }
.terms-box li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 12px;
  border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass);
}

/* ---------- Contact ---------- */
.contact { background: var(--band); color: var(--band-fg); }
.contact .wrap {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px 80px;
  padding-block: clamp(72px, 10vw, 128px); align-items: start;
}
.contact .kicker { color: var(--brass); }
.contact p.intro { color: var(--band-muted); margin-top: 24px; max-width: 52ch; }
.brief { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--band-muted); }
.brief li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--band-line); padding-top: 12px; }
.brief li span:first-child { color: var(--band-fg); font-weight: 600; }

.channel { border: 1px solid var(--band-line); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.channel .label { font-size: 14px; color: var(--band-muted); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.email { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); text-decoration: none; overflow-wrap: anywhere; border-bottom: 1px solid var(--brass); line-height: 1.25; }
.email:hover { color: var(--brass); }
.copy {
  font: inherit; font-size: 14px; color: var(--band-fg); background: transparent;
  border: 1px solid var(--band-line); min-height: 40px; padding: 0 14px; cursor: pointer;
}
.copy:hover { border-color: var(--brass); }
.channel .note { font-size: 14px; color: var(--band-muted); line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-muted); border-top: 1px solid var(--band-line); font-size: 14px; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px;
  padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px));
}
.site-footer p { max-width: 70ch; }


/* ---------- Typical engagements ---------- */
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.examples article { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid var(--brass); min-width: 0; }
.examples h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; }
.examples p { color: var(--muted); font-size: 16px; }
.examples .ex-ctx { color: var(--fg); }

/* ---------- Regulatory calendar ---------- */
.calendar { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.calendar li {
  display: grid; grid-template-columns: 150px minmax(0, 3fr) minmax(0, 7fr) 80px;
  gap: 6px 32px; align-items: baseline; padding-block: 20px; border-bottom: 1px solid var(--line);
}
.calendar time { font-family: var(--serif); font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calendar .law { font-weight: 600; }
.calendar .what { color: var(--muted); font-size: 16px; }
.calendar .state { font-size: 13px; color: var(--muted); justify-self: end; }
.calendar li.past time { color: var(--muted); }
.calendar li.ahead .state { color: var(--accent-text); font-weight: 600; }
.cal-foot { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------- Notes ---------- */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.note-card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; text-decoration: none;
  background: var(--raised); border: 1px solid var(--line); transition: border-color .15s ease;
}
.note-card:hover { border-color: var(--brass); }
.note-card h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.25; }
.note-card p { color: var(--muted); font-size: 16px; flex-grow: 1; }
.note-meta { font-size: 13px; color: var(--muted); }
.read { font-size: 15px; font-weight: 600; color: var(--accent-text); border-bottom: 1px solid var(--brass); align-self: flex-start; }

.notes-all { margin-top: 32px; }
.notes-index h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; }

/* ---------- Note pages ---------- */
.article { padding-block: clamp(56px, 8vw, 104px); }
.article .wrap { max-width: calc(720px + 2 * var(--gutter)); }
.article .note-meta { display: block; margin-bottom: 20px; font-size: 15px; }
.article h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; }
.article .lede { font-family: var(--serif); font-size: 22px; line-height: 1.5; margin-top: 24px; }
.article h2 { font-size: 28px; margin-top: 48px; }
.article p, .article ul, .article ol { margin-top: 18px; }
.article li { margin-top: 8px; }
.article table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 16px; }
.article th, .article td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-weight: 600; border-bottom-color: var(--fg); }
.article .sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.article .sources a { color: var(--accent-text); overflow-wrap: anywhere; }
.article .back { display: inline-block; margin-top: 40px; font-weight: 600; color: var(--accent-text); }
.article-cta { margin-top: 48px; padding: 28px; background: var(--raised); border: 1px solid var(--line); }
.article-cta p { margin-top: 8px; color: var(--muted); }
.article-cta a { color: var(--accent-text); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .gate { justify-self: start; width: min(100%, 360px); }
  .section-head, .group, .terms-box, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .examples, .notes { grid-template-columns: minmax(0, 1fr); }
  .calendar li { grid-template-columns: 150px minmax(0, 1fr) auto; }
  .calendar .what { grid-column: 2 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .reach .wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .site-nav .hide-sm { display: none; }
  .brief li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .gate { width: min(100%, 300px); }
  .gate-caption span { display: none; }
  .calendar li { grid-template-columns: minmax(0, 1fr) auto; }
  .calendar .law, .calendar .what { grid-column: 1 / -1; }
  .calendar .state { grid-row: 1; grid-column: 2; }
}
