/* Lazuli Atita Partners: site styles */
:root {
  --ink: #12172E;
  --lapis: #1E2A86;
  --lapis-deep: #172170;
  --paper: #FAF8F4;
  --paper-2: #F1EDE5;
  --text: #1A1E33;
  --muted: #5E6275;
  --line: #D9D5CB;
  --line-soft: #E5E1D8;
  --on-dark: #F4F1EA;
  --on-dark-muted: rgba(244, 241, 234, .66);
  --line-dark: rgba(244, 241, 234, .16);
  --white: #FFFFFF;
  --error: #9B2318;
  --ok: #1D6B45;

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

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --space: clamp(88px, 11vw, 160px);
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ol, ul { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--lapis); color: var(--white); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 16px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lapis); outline-offset: 3px; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 5.6vw, 84px); line-height: 1.03; letter-spacing: -.022em; color: var(--ink); }
h1 em, h2 em, .statement em { color: var(--lapis); }
h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; letter-spacing: -.015em; color: var(--ink); }
h3 { font-family: var(--serif); font-size: 24px; line-height: 1.3; color: var(--ink); }
.kicker { font-size: 13.5px; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin-bottom: 22px; }
.kicker-light { color: var(--on-dark-muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); transition: box-shadow .3s ease; }
.site-header.is-solid { box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.brand span { font-family: var(--serif); font-size: 21px; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a { font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]:not(.nav-cta) { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.site-nav .nav-cta { color: var(--ink); border: 1px solid var(--ink); padding: 10px 18px; border-radius: 2px; transition: background .2s, color .2s; }
.site-nav .nav-cta:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
  border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper);
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--lapis); border-color: var(--lapis); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; text-decoration-color: var(--line); transition: text-decoration-color .2s; }
.text-link:hover { text-decoration-color: currentColor; }
.text-link-light { color: var(--on-dark); text-decoration-color: var(--line-dark); }
.actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

.section { padding-top: var(--space); padding-bottom: var(--space); }

/* Home: split hero */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - var(--header)); }
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px) clamp(48px, 6vw, 96px) max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
}
.hero-copy h1 { font-size: clamp(42px, 5vw, 76px); }
.hero-sub { margin: 32px 0 40px; font-size: 18px; color: var(--muted); }
.hero-image { position: relative; overflow: hidden; background: var(--paper-2); }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Ink band */
.band-ink { background: var(--ink); color: var(--on-dark); padding: clamp(80px, 10vw, 144px) 0; }
.band-ink-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px 96px; align-items: end; }
.statement { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.15; letter-spacing: -.015em; color: var(--on-dark); }
.statement em { color: #AEB6F2; }
.band-side { display: grid; gap: 28px; justify-items: start; }
.band-side p { color: var(--on-dark-muted); }
.band-ink h2 { color: var(--on-dark); }

/* Home: practice rows */
.section-intro { margin-bottom: 8px; }
.practice-rows { border-top: 1px solid var(--line); }
.practice-rows li { border-bottom: 1px solid var(--line); }
.practice-rows a {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) 48px; gap: 16px 48px; align-items: center;
  padding: clamp(28px, 3.4vw, 44px) 0; text-decoration: none; transition: color .25s;
}
.row-name { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); transition: color .25s; }
.row-text { color: var(--muted); font-size: 16px; }
.row-arrow { justify-self: end; font-size: 26px; color: var(--ink); transition: transform .25s; }
.practice-rows a:hover .row-name { color: var(--lapis); }
.practice-rows a:hover .row-arrow { transform: translateX(6px); }

/* Split image and copy */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper-2); }
.split-image { position: relative; min-height: 560px; overflow: hidden; }
.split-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0;
  padding: clamp(56px, 7vw, 120px) max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter))) clamp(56px, 7vw, 120px) clamp(32px, 5vw, 96px);
}
.split-copy h2 { margin-bottom: 28px; }
.split-copy p:not(.kicker) { color: var(--muted); margin-bottom: 32px; }

/* CTA band */
.cta-band { background: var(--lapis-deep); color: var(--on-dark); padding: clamp(64px, 8vw, 112px) 0; }
.cta-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; }
.cta-band h2 { color: var(--on-dark); font-size: clamp(32px, 4vw, 56px); }
.cta-band p { margin-top: 14px; color: var(--on-dark-muted); }

/* Page heads */
.page-head { padding-top: clamp(64px, 9vw, 136px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-head h1 { font-size: clamp(42px, 6vw, 92px); }
.page-head-foot { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 80px; align-items: end; }
.page-head-foot p { font-size: 18px; color: var(--muted); }
.jump { display: grid; gap: 0; border-top: 1px solid var(--line); }
.jump a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; color: var(--ink); display: flex; justify-content: space-between; }
.jump a::after { content: "↓"; color: var(--muted); }
.jump a:hover { color: var(--lapis); }
.wide-image { height: clamp(320px, 42vw, 620px); overflow: hidden; background: var(--paper-2); }
.wide-image img { width: 100%; height: 100%; object-fit: cover; }
.wide-image-short { height: clamp(220px, 26vw, 380px); }

/* Two-column sections */
.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 96px; }
.prose { display: grid; gap: 22px; color: var(--muted); }
.prose-lead { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; color: var(--ink); }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px; }
.pairs h3 { margin-bottom: 12px; }
.pairs p { color: var(--muted); }

/* Deal cycle */
.cycle-band h2 { margin-bottom: clamp(48px, 6vw, 80px); }
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px; position: relative; }
.cycle::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-dark); }
.cycle li { position: relative; padding-top: 48px; }
.cycle li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 1px solid #AEB6F2; }
.cycle li:last-child::before { background: #AEB6F2; }
.cycle h3 { color: var(--on-dark); margin-bottom: 12px; }
.cycle p { color: var(--on-dark-muted); font-size: 16px; }

/* Services */
.service { padding: var(--space) 0; scroll-margin-top: 40px; }
.service-alt { background: var(--paper-2); }
.service-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 96px; align-items: start; }
.service-head { position: sticky; top: calc(var(--header) + 40px); }
.service-head h2 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 24px; }
.service-head p:not(.kicker) { color: var(--muted); font-size: 17px; }
.service-items { border-top: 1px solid var(--line); }
.service-items > div { padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.service-items dt { font-family: var(--serif); font-size: 24px; line-height: 1.3; color: var(--ink); margin-bottom: 10px; }
.service-items dd { color: var(--muted); }

/* Leadership */
.lead-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.lead-head-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(64px, 8vw, 128px) clamp(32px, 5vw, 80px) clamp(64px, 8vw, 128px) max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
}
.lead-head-copy > p:not(.kicker) { margin-top: 32px; font-size: 18px; color: var(--muted); }
.lead-head-image { position: relative; min-height: 520px; overflow: hidden; }
.lead-head-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.record { border-top: 1px solid var(--line); }
.record > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px 96px; padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.record dt { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; color: var(--ink); }
.record dd { color: var(--muted); font-size: 17px; }
.statement-wide { font-size: clamp(30px, 3.8vw, 56px); }

/* Contact */
.contact-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100svh - var(--header)); }
.contact-panel { background: var(--lapis-deep); color: var(--on-dark); position: relative; }
.contact-panel-copy {
  position: relative; padding: clamp(56px, 7vw, 112px) clamp(32px, 4vw, 72px) clamp(56px, 7vw, 112px) max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
}
.contact-panel h1 { color: var(--on-dark); font-size: clamp(40px, 4.6vw, 68px); }
.contact-panel h1 em { color: #AEB6F2; }
.contact-panel-copy > p:not(.kicker) { margin-top: 28px; color: var(--on-dark-muted); font-size: 17px; }
.routes { margin-top: 48px; border-top: 1px solid var(--line-dark); }
.routes > div { padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.routes dt { font-family: var(--serif); font-size: 21px; color: var(--on-dark); }
.routes dd { color: var(--on-dark-muted); font-size: 15px; margin-top: 4px; }
.contact-form-wrap {
  display: flex; align-items: center;
  padding: clamp(48px, 6vw, 112px) max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter))) clamp(48px, 6vw, 112px) clamp(32px, 5vw, 96px);
}
.contact-form { width: 100%; display: grid; gap: 22px; }
.contact-page .site-footer { margin-top: 0; }

/* Form fields */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--text); background: var(--white);
  border: 1px solid var(--line); border-radius: 2px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 160px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(30, 42, 134, .12); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2312172E' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 18px center !important; background-size: 12px 8px !important;
}
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-error { font-size: 13.5px; color: var(--error); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--ink); }
.check a { color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-status { font-size: 15px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--error); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 72px 0 40px; font-size: 14.5px; border-top: 1px solid var(--line-dark); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.brand-light { color: var(--on-dark); }
.footer-tagline { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--on-dark); }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 48px; align-content: start; }
.footer-nav a { text-decoration: none; color: rgba(244, 241, 234, .82); }
.footer-nav a:hover { color: var(--on-dark); }
.disclaimer { margin-top: 32px; font-size: 12.5px; line-height: 1.75; color: rgba(244, 241, 234, .48); }
.copyright { margin-top: 18px; font-size: 12.5px; color: rgba(244, 241, 234, .48); }

/* Legal pages */
.legal { padding: clamp(64px, 8vw, 120px) 0 var(--space); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 80px; }
.legal-aside { position: sticky; top: calc(var(--header) + 40px); align-self: start; }
.legal-aside .label { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.legal-aside p:not(.label) { color: var(--muted); font-size: 14px; margin-top: 16px; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); }
.legal-body h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.3; margin: 44px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul { margin: 0 0 16px; color: #33374D; }
.legal-body ul { padding-left: 22px; list-style: disc; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--lapis); }

/* 404 */
.notfound { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: 96px var(--gutter); }
.notfound p { margin: 16px 0 32px; color: var(--muted); }

/* Responsive */
@media (max-width: 1080px) {
  .cycle { grid-template-columns: 1fr 1fr; gap: 56px 40px; }
  .cycle::before { display: none; }
}
@media (max-width: 900px) {
  :root { --header: 68px; }
  .menu-toggle {
    display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line);
    border-radius: 2px; background: transparent; font: 500 14px/1 var(--sans); color: var(--ink); cursor: pointer;
  }
  .site-nav {
    position: fixed; inset: var(--header) 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper);
    padding: 0 var(--gutter) 24px; box-shadow: 0 1px 0 var(--line), 0 24px 32px -24px rgba(18, 23, 46, .25);
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; }
  .site-nav a { font-size: 17px; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav a[aria-current="page"]:not(.nav-cta) { text-decoration: none; color: var(--lapis); }
  .site-nav .nav-cta { margin-top: 20px; text-align: center; padding: 15px; background: var(--ink); color: var(--paper); }

  .hero-split, .split, .lead-head, .contact-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy, .split-copy, .lead-head-copy, .contact-panel-copy, .contact-form-wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
  .hero-copy { padding-top: 48px; padding-bottom: 56px; }
  .hero-image { aspect-ratio: 4 / 5; }
  .band-ink-row, .two-col, .service-grid, .page-head-foot { grid-template-columns: 1fr; }
  .service-head { position: static; }
  .practice-rows a { grid-template-columns: 1fr 32px; }
  .row-text { grid-column: 1; grid-row: 2; }
  .row-arrow { grid-column: 2; grid-row: 1; }
  .split-image { min-height: 0; aspect-ratio: 1 / 1; }
  .lead-head-image { min-height: 0; aspect-ratio: 4 / 3; }
  .pairs { grid-template-columns: 1fr; gap: 40px; }
  .record > div { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
  .footer-nav { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cycle { grid-template-columns: 1fr; gap: 40px; }
  .field-row { grid-template-columns: 1fr; }
  .brand span { font-size: 19px; }
}
