/* Intentional Equity, LLC | Site styles
   Palette: Gallery Blue #0B369A, Burnt Terracotta #C34811, Stone Linen #D9D1CA on #FAFAFA */

@font-face {
  font-family: "Albert Sans";
  src: url("fonts/albert-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Brand */
  --blue: #0B369A;
  --blue-deep: #082A78;
  --terracotta: #C34811;
  --stone: #D9D1CA;

  /* Neutrals */
  --bg: #FAFAFA;
  --bg-tint: #F0EEEC;
  --ink: #1D1F24;
  --ink-soft: #5A5D66;
  --rule: #E2DDD8;

  --sans: "Albert Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 16px; top: 12px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
h2 {
  text-wrap: balance;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 36em;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.logo:hover { text-decoration: none; }
.logo-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo-name::after {
  content: "";
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  margin-left: 0.07em;
  background: var(--terracotta);
}
.logo-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.94);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.975rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--blue);
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--blue); color: var(--bg); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--bg); text-decoration: none; }
.site-nav .btn { min-height: 42px; padding: 0 20px; color: var(--bg); }
.site-nav .btn:hover { color: var(--bg); text-decoration: none; }

/* ---------- Sections ---------- */

section { padding: clamp(80px, 11vw, 136px) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head h2 { margin-bottom: 20px; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(72px, 9vw, 112px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero h1 { margin-bottom: 28px; }
.hero h1 span { display: block; }
.hero .lede { margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--stone);
  border-radius: 10px;
}
.hero-visual::after {
  content: "";
  position: absolute;
  right: 9%;
  bottom: 7%;
  width: 11%;
  aspect-ratio: 1;
  background: var(--terracotta);
}

.hero-note {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  color: var(--ink-soft);
  font-size: 0.975rem;
}
.hero-note p { margin: 0; }

/* ---------- Services ---------- */

.services { background: var(--bg-tint); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 5vw, 80px);
  padding: clamp(36px, 4vw, 52px) 0;
  border-top: 1px solid var(--rule);
}
.service:last-child { border-bottom: 1px solid var(--rule); }

.service-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.service-title::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 0.55rem;
  flex-shrink: 0;
  background: var(--terracotta);
}
.service-body > p {
  font-size: 1.125rem;
  margin-bottom: 24px;
  max-width: 34em;
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  font-size: 0.975rem;
  color: var(--ink-soft);
}
.service-list li {
  padding-left: 18px;
  position: relative;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 1px;
  background: var(--ink-soft);
}

/* ---------- Clients ---------- */

.clients-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.clients-grid .section-head { margin-bottom: 0; }
.industry-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.industry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.industry-list li {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

/* ---------- Approach ---------- */

.approach { background: var(--bg-tint); }

.models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 80px);
  margin-bottom: clamp(72px, 9vw, 112px);
}
.model {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.model h3 { margin-bottom: 10px; }
.model p { margin: 0; color: var(--ink-soft); max-width: 30em; }

.process-head {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}
.process {
  list-style: none;
  counter-reset: step;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.process li { counter-increment: step; }
.process li::before {
  content: counter(step);
  display: block;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.process h3 { font-size: 1.25rem; margin-bottom: 8px; }
.process p { margin: 0; color: var(--ink-soft); font-size: 0.975rem; }

.fees {
  border-left: 3px solid var(--terracotta);
  padding: 4px 0 4px 24px;
  max-width: 42rem;
}
.fees p { margin: 0; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
}
.about-body p { font-size: 1.125rem; max-width: 34em; }
.about-body .pull {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--blue);
  margin-bottom: 1.2em;
}
.about-facts {
  margin: 40px 0 0;
  padding: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--rule);
}
.about-facts div { margin: 0; }
.about-facts dt { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.about-facts dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Contact ---------- */

.contact { background: var(--stone); }
.contact h2 { margin-bottom: 24px; max-width: 14em; }
.contact p { max-width: 34em; font-size: 1.125rem; }
.contact-email {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(1.5rem, 4.4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  word-break: break-word;
}
.contact-email:hover { text-decoration-thickness: 3px; }

/* ---------- Square motif ---------- */

.motif {
  position: relative;
  background: var(--stone);
  border-radius: 10px;
}
.motif::after {
  content: "";
  position: absolute;
  left: var(--x, 85%);
  top: var(--y, 85%);
  width: var(--sq, 11%);
  aspect-ratio: 1;
  background: var(--terracotta);
  transform: translate(-50%, -50%);
}
.motif-light { background: var(--bg); }
.motif-wide { aspect-ratio: 16 / 9; --sq: 7%; }
.motif-tall { aspect-ratio: 4 / 5; margin-top: 40px; max-width: 360px; --sq: 12%; }
.motif-step { aspect-ratio: 4 / 3; margin-bottom: 20px; --sq: 13%; }
.motif-contact { aspect-ratio: 1; --sq: 12%; }

.head-with-art {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.head-with-art .section-head { margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.contact-grid .motif-contact { max-width: 340px; justify-self: end; width: 100%; }

.process li { display: flex; flex-direction: column; }
.process .motif-step { order: -1; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 56px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--ink); }
.disclaimer { max-width: 48em; margin: 0 0 8px; }

/* ---------- Legal pages ---------- */

.legal { padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 10vw, 120px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 12px; }
.legal .effective { color: var(--ink-soft); margin-bottom: 48px; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 14px; }
.legal p, .legal li { max-width: 40em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.back { display: inline-block; margin-bottom: 32px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .site-nav li:not(:last-child) { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 7; }
  .service, .clients-grid, .about-grid, .head-with-art, .contact-grid { grid-template-columns: 1fr; }
  .motif-wide { aspect-ratio: 16 / 6; }
  .motif-tall { display: none; }
  .contact-grid .motif-contact { justify-self: start; max-width: none; aspect-ratio: 16 / 6; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .logo-name { font-size: 1.2rem; }
  .logo-tag { font-size: 0.65rem; }
  .site-nav .btn { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .service-list { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 32px; }
  .about-facts { grid-template-columns: 1fr; gap: 16px; }
  .hero-note { flex-direction: column; }
}

@media print {
  .site-header, .hero-visual { display: none; }
}
