/* Nilaad. Tokens and rules follow ../DESIGN.md. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --ground: #f7f5ef;
  --panel: #ffffff;
  --ink: #0b0d26;
  --soft: #33364f;
  --muted: #5e6178;
  --rule: #ddd9cf;
  --field: #b9b6ab;
  --underline: #a9abbd;
  --amber: #f5b544;
  --hover: #2b2fa0;
  --night-text: #edeef7;
  --night-soft: #c9cce3;
  --night-muted: #a5a9c9;
  --night-rule: #2a2e5c;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gap: 120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--hover);
}
:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: 3px;
}
svg {
  display: block;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}
.label {
  font: 400 13px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.label.gap {
  margin-bottom: 28px;
}
.num {
  font: 400 13px/1.4 var(--mono);
  color: var(--muted);
}
.text-link {
  border-bottom: 1px solid var(--underline);
}
.text-link:hover {
  border-color: var(--hover);
}
.todo {
  background: #fff1c9;
  outline: 1px dashed #b98a2e;
  color: #5a4210;
  padding: 0 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font: 600 16px/1 var(--sans);
  cursor: pointer;
}
.btn:hover {
  background: #1d2150;
  color: #fff;
}
.btn-outline {
  min-height: 44px;
  padding: 0 20px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}
.btn-light {
  background: var(--ground);
  color: var(--ink);
}
.btn-light:hover {
  background: #fff;
  color: var(--ink);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
}

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.logo-link {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--soft);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--ink);
}
.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font: 500 15px/1 var(--sans);
  color: var(--ink);
  cursor: pointer;
}

/* Hero and horizon */
.hero {
  padding-top: 88px;
}
.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px 64px;
}
.hero-text {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 64px;
}
.hero-disc {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}
.hero-disc svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}
.horizon {
  height: 3px;
  margin-top: 12px;
  background: var(--ink);
}
.horizon-thin {
  height: 2px;
  margin-top: 8px;
}
.horizon-light {
  background: var(--night-text);
}
.display {
  font-size: clamp(44px, 6.2vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.lead {
  max-width: 600px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--soft);
}
.lead.wide {
  max-width: none;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 44px;
  padding: 22px 0;
  font: 400 13px/1.4 var(--mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Home sections */
.section {
  padding: var(--gap) 0;
}
.section-flush {
  padding-top: 0;
}
.band {
  background: var(--panel);
  padding: 112px 0;
}
.band + .section {
  padding-top: var(--gap);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}
.head-split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
}
.head-split > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.head-split > p {
  max-width: 420px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
}
h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.section-head h2 {
  max-width: 760px;
}
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px 72px;
}
.split > h2 {
  flex: 999 1 520px;
  min-width: 0;
}
.split > p {
  flex: 1 1 400px;
  min-width: 0;
  line-height: 1.6;
  color: var(--soft);
}
.statement h2 {
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.practice {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 72px;
  padding: 30px 0 14px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}
.practices > .practice:first-child {
  border-top-color: var(--ink);
}
.practices > .practice:last-child {
  border-bottom: 1px solid var(--rule);
}
.practice-name {
  flex: 1 1 220px;
  min-width: 0;
}
.practice-name h3 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.practice-name p {
  margin-top: 10px;
  max-width: 240px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}
.practice-services {
  flex: 999 1 600px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px 48px;
}
.service-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
}
.service-link strong {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.service-link span {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--soft);
}
.aside {
  margin-top: 28px;
  font-size: 16px;
  color: var(--muted);
}
.aside .text-link {
  color: var(--ink);
}
.band .aside {
  margin-top: 48px;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px 48px;
}
.format {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.format h3 {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.format p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--soft);
}
.format:hover p {
  color: var(--soft);
}
.cols-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px 40px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
.tile strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.tile span {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--soft);
}
.work-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 48px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.work-row:last-child {
  border-bottom: 1px solid var(--rule);
}
.work-row .label {
  flex: 1 1 240px;
}
.work-row strong {
  flex: 999 1 420px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.role {
  flex: 1 1 220px;
  font-size: 15.5px;
  color: var(--muted);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 36px 72px;
}
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.faq h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq h3.habit {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.faq p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--soft);
}

/* Inner pages */
main.inner {
  padding-bottom: 112px;
}
.page-top {
  padding-top: 72px;
}
.page-top-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 880px;
}
.page-title {
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.page-disc {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.row-section {
  padding-top: 72px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 72px;
}
.row > h2,
.contact-col > h2 {
  flex: 1 1 240px;
  min-width: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.row-body {
  flex: 999 1 600px;
  min-width: 0;
}
.block > h2 {
  margin-bottom: 40px;
}
.list-top .practices > .practice:first-child {
  border-top-color: var(--rule);
}
.ruled {
  padding: 0;
  list-style: none;
}
.ruled li {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  color: var(--soft);
}
.ruled li:last-child {
  border-bottom: 1px solid var(--rule);
}
.big-text {
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.prose {
  max-width: 720px;
  color: var(--soft);
}
.prose + .prose {
  margin-top: 16px;
}
.link-rows {
  display: flex;
  flex-direction: column;
}
.link-rows a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  border-top: 1px solid var(--rule);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.link-rows a:last-child {
  border-bottom: 1px solid var(--rule);
}
.arrow {
  flex: none;
}
.format-rows {
  display: flex;
  flex-direction: column;
}
.format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 72px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}
.format-row:first-child {
  border-top-color: var(--ink);
}
.format-row:last-child {
  border-bottom: 1px solid var(--rule);
}
.format-row > div:first-child {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.format-row > div:last-child {
  flex: 999 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--soft);
}
.format-row h3 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.format-row .strong {
  color: var(--ink);
}
.format-row:hover {
  color: inherit;
}
.work-meta {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15.5px;
  color: var(--muted);
}
.work-title {
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.work-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px 40px;
  margin-top: 28px;
}
.work-fields > div {
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.work-fields strong {
  font-size: 15px;
  font-weight: 600;
}
.work-fields p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--soft);
}
.article-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}
.article-row .num {
  flex: 0 0 56px;
}
.article-row strong {
  flex: 999 1 520px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.founder {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}
.founder img {
  flex: 0 1 220px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.founder > div {
  flex: 999 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.founder h3 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.founder p {
  color: var(--soft);
}
.details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.details > div:last-child {
  border-bottom: 1px solid var(--rule);
}
.details dt {
  flex: 0 0 240px;
  color: var(--muted);
}
.details dd {
  flex: 1 1 300px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 56px 72px;
}
.contact-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}
.contact-col > h2 {
  flex: none;
}
.contact-col > p {
  font-size: 16px;
  color: var(--soft);
}
.cal-panel {
  min-height: 440px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}
.cal-panel p {
  max-width: 360px;
}
.cal-panel.cal-loaded {
  display: block;
  padding: 0;
  overflow: auto;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
label {
  font-size: 15px;
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  background: var(--panel);
  border: 1px solid var(--field);
  border-radius: 3px;
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
}
textarea {
  padding: 12px 14px;
  resize: vertical;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--hover);
}
.hp {
  position: absolute;
  left: -9999px;
}
.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.contact-col .btn {
  align-self: flex-start;
}
.form-status {
  min-height: 24px;
  font-size: 15px;
  color: var(--soft);
}
.or-mail {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 20px;
  color: var(--soft);
}

/* Closing band and footer */
.closing {
  background: var(--ink);
  color: var(--night-text);
  padding-top: 104px;
}
.closing-text {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 72px;
}
.closing h2 {
  max-width: 760px;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.closing p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--night-soft);
}
.closing-disc svg {
  max-width: 260px;
}
.mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  border-bottom: 1px solid #5a5f8f;
}
.closing a:not(.btn):hover,
.site-footer a:hover {
  color: var(--amber);
}
.site-footer {
  background: var(--ink);
  color: var(--night-text);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 36px 56px;
  padding: 56px 0 44px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--night-muted);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}
.footer-col .label {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--night-muted);
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.legal {
  padding: 20px 0 40px;
  border-top: 1px solid var(--night-rule);
  font-size: 13px;
  line-height: 1.6;
  color: var(--night-muted);
}
.legal a {
  color: var(--night-text);
}

/* Cookie choice */
.link-button {
  padding: 0;
  background: none;
  border: 0;
  color: var(--night-text);
  font: inherit;
  cursor: pointer;
}
.link-button:hover {
  color: var(--amber);
}
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--night-text);
  border-top: 1px solid var(--night-rule);
}
.consent[hidden] {
  display: none;
}
.consent .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.consent p {
  flex: 999 1 420px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--night-soft);
}
.consent p a {
  color: var(--night-text);
  border-bottom: 1px solid #5a5f8f;
}
.consent-actions {
  display: flex;
  gap: 12px;
}
.consent-actions button {
  min-width: 112px;
  min-height: 46px;
  padding: 0 22px;
  background: transparent;
  border: 1px solid var(--night-text);
  border-radius: 3px;
  color: var(--night-text);
  font: 600 15px/1 var(--sans);
  cursor: pointer;
}
.consent-actions button:hover {
  background: var(--night-text);
  color: var(--ink);
}

/* Small screens */
@media (max-width: 860px) {
  :root {
    --gap: 80px;
  }
  .wrap {
    padding: 0 20px;
  }
  body {
    font-size: 16px;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-text {
    padding-bottom: 32px;
    gap: 24px;
  }
  .hero-disc svg {
    max-width: 180px;
  }
  .lead {
    font-size: 18px;
  }
  .band {
    padding: 80px 0;
  }
  .page-top {
    padding-top: 40px;
  }
  .row-section {
    padding-top: 56px;
  }
  main.inner {
    padding-bottom: 80px;
  }
  .closing {
    padding-top: 72px;
  }
  .closing-text {
    padding-bottom: 40px;
  }
  .site-header .wrap {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .site-header .btn-outline {
    display: none;
  }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
  .js .site-nav {
    display: none;
    width: 100%;
  }
  .js .nav-open .site-nav {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
  }
  .site-nav a {
    width: 100%;
    min-height: 48px;
    font-size: 17px;
    border-top: 1px solid var(--rule);
  }
  .details dt {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
