:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #161616;
  --muted: #656565;
  --line: #dedede;
  --accent: #ff1616;
  --soft: #f2f2f2;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .025;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { margin-left: 10px; }
/* One logo size for every page. The width is a custom property because the Mortgage Documents menu
   positions its text from it (see mortgage-documents.css). */
.site-header { --logo-w: min(360px, 32vw); }
.brand img { display: block; width: var(--logo-w); height: auto; }

.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 12px/1 IBM Plex Mono, monospace;
  letter-spacing: .08em;
  padding: 10px 8px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.lang-switch a.active { color: var(--accent); }

.hero { padding: 112px 0 84px; max-width: 930px; margin-left: max(20px, calc((100vw - var(--max))/2)); }
.eyebrow {
  font: 500 12px/1.2 IBM Plex Mono, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 20px;
}
h1, h2, h3 { margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(56px, 9vw, 108px); line-height: .95; max-width: 900px; font-weight: 650; }
.hero-copy { font-size: clamp(19px, 2.2vw, 25px); line-height: 1.48; max-width: 810px; color: #373737; margin: 34px 0 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; text-decoration: none; border: 1px solid var(--ink); font-weight: 600; font-size: 14px; transition: .2s ease; }
.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: var(--accent); border-color: var(--accent); }
.button.ghost:hover { background: var(--soft); }

.signal { padding: 0 0 94px; }
.signal-line { height: 1px; background: var(--line); }
.signal-items { padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 12px/1.4 IBM Plex Mono, monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.signal-items span:not(:last-child)::after { content: " /"; color: #b8b8b8; }

.work { padding: 95px 0; border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; align-items: end; margin-bottom: 54px; }
.section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -12px; }
h2 { font-size: clamp(34px, 5vw, 62px); line-height: 1.04; font-weight: 620; }
.section-intro p, .expertise-text p, .approach-box p { color: var(--muted); font-size: 17px; margin: 0; max-width: 570px; }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.work-grid.three { grid-template-columns: repeat(3, 1fr); }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 30px; min-height: 430px; display: flex; flex-direction: column; }
.panel-index { font: 500 12px/1 IBM Plex Mono, monospace; color: var(--accent); margin-bottom: 58px; }
.panel h3 { font-size: 30px; font-weight: 620; }
.panel p { color: var(--muted); font-size: 16px; margin: 18px 0 28px; }
.panel ul { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.panel li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.panel li::before { content: "→"; color: var(--accent); margin-right: 9px; }

.origin { padding: 100px 0; display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; border-top: 1px solid var(--line); }
.origin-copy h2 { max-width: 780px; }
.origin-copy p { color: var(--muted); font-size: 17px; max-width: 760px; margin: 26px 0 0; }
.origin-copy p + p { margin-top: 18px; }

.expertise { padding: 100px 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; border-top: 1px solid var(--line); }
.expertise-text { display: flex; flex-direction: column; gap: 24px; padding-top: 34px; }

.approach { padding: 0 0 100px; }

.examples { padding: 0 0 95px; }
.panel.example { min-height: 0; }
.panel.example p { margin: 18px 0 0; max-width: 60ch; }
.example-link { margin-top: auto; padding-top: 30px; text-decoration: none; font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: baseline; }
.example-link .arrow { color: var(--accent); display: inline-block; transition: transform .2s ease; }
.panel.example:hover .example-link .arrow { transform: translateX(4px); }
.approach-box { background: #171717; color: white; padding: 62px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; }
.approach-box p { color: #bdbdbd; }

.contact { padding: 0 0 60px; }
.contact-card { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0; }
.contact-card p { color: var(--muted); margin: 16px 0 0; max-width: 620px; }
.contact-mail-line { margin-top: 22px; }
.contact-mail-line a { color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.footer { min-height: 126px; display: flex; justify-content: space-between; gap: 30px; align-items: center; color: var(--muted); font-size: 12px; font-family: IBM Plex Mono, monospace; }
.footer strong { color: var(--ink); font-family: Inter, sans-serif; font-size: 13px; }
.footer-right { text-align: right; }

@media (max-width: 900px) {
  .site-header { --logo-w: min(300px, 56vw); }
}

@media (max-width: 760px) {
  .site-header { min-height: 78px; --logo-w: min(260px, 56vw); }
  .hero { padding: 80px 0 68px; }
  .section-intro, .origin, .expertise, .approach-box { grid-template-columns: 1fr; }
  .work-grid, .work-grid.three { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .panel-index { margin-bottom: 36px; }
  .origin, .expertise { gap: 24px; }
  .expertise-text { padding-top: 0; }
  .approach-box { padding: 38px 28px; gap: 32px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 28px 0; }
  .footer-right { text-align: left; }
}

/* Landing-page refinements. These stay scoped so product pages can keep their own character. */
.home-page {
  --bg: #ffffff;
  --surface: #f7f8f8;
  --accent: #e65143;
  background: #ffffff;
}

.home-page .hero {
  width: min(calc(100% - 40px), var(--max));
  max-width: var(--max);
  margin-inline: auto;
  padding: 104px 0 70px;
}
.home-page .hero .eyebrow { margin-bottom: 14px; }
.home-page .hero h1 { max-width: 900px; text-wrap: balance; }
.home-page .hero-copy {
  max-width: 760px;
  margin-top: 30px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
}
.home-page .hero-actions { margin-top: 30px; }
.home-page .work { padding: 82px 0 88px; }
.home-page .section-intro {
  column-gap: 64px;
  row-gap: 14px;
  margin-bottom: 46px;
}
.home-page .section-intro .eyebrow { margin-bottom: 0; }
.home-page .section-intro h2,
.home-page .origin h2,
.home-page .expertise h2,
.home-page .approach h2,
.home-page .contact h2 { text-wrap: balance; }
.home-page .work .section-intro {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  margin-bottom: 58px;
}
.home-page .work .section-intro h2 { max-width: 580px; }
.home-page .work .section-intro p { max-width: 500px; line-height: 1.68; }

.home-page .panel {
  min-height: 420px;
  padding: 32px;
  border-top: 3px solid var(--ink);
}
.home-page .panel-index { margin-bottom: 16px; }
.home-page .panel h3 { line-height: 1.12; text-wrap: balance; }
.home-page .panel p { line-height: 1.65; }

.home-page .origin {
  display: block;
  padding: 88px 0;
}
.home-page .origin-copy { max-width: 720px; margin-left: auto; }
.home-page .origin-copy .eyebrow { margin-bottom: 14px; }
.home-page .origin-copy h2 { max-width: 720px; }
.home-page .origin-copy p { line-height: 1.68; }

.home-page .expertise {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 72px;
  padding: 88px 0;
}
.home-page .expertise-copy .eyebrow { margin-bottom: 14px; }
.home-page .expertise-copy h2 { max-width: 540px; }
.home-page .expertise-text { max-width: 500px; gap: 20px; padding-top: 30px; }
.home-page .expertise-text p { line-height: 1.68; }

.home-page .approach { padding-bottom: 88px; }
.home-page .approach-box {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px;
  padding: 56px;
  align-items: center;
}
.home-page .approach-box .eyebrow { margin-bottom: 14px; }
.home-page .approach-box h2 { max-width: 500px; }
.home-page .approach-box p { line-height: 1.68; }

.home-page .examples {
  padding: 88px 0 82px;
  border-top: 1px solid var(--line);
}
.home-page .examples .section-intro {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
}
.home-page .examples .section-intro h2 { max-width: 400px; }
.home-page .examples .section-intro p { max-width: 620px; line-height: 1.68; }
.home-page .panel.example { min-height: 500px; overflow: hidden; }
.home-page .example-visual {
  height: 250px;
  margin: -32px -32px 20px;
  flex: none;
}
.home-page .mortgage-card { background: #eef3f5; }
.home-page .mortgage-example { background: transparent; }
.home-page .mini-comic { display: block; width: 100%; height: 100%; }
.home-page .mini-line { fill: #ffffff; stroke: #203047; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.home-page .mini-document { fill: #ffffff; stroke-width: 2.5; }
.home-page .mini-arrow { fill: none; stroke: #e65143; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.home-page .mini-speed { fill: none; stroke: #203047; stroke-width: 2; stroke-linecap: round; opacity: .48; }
.home-page .mini-bolt { fill: #f2d16b; stroke: #203047; stroke-width: 2.2; stroke-linejoin: round; }
.home-page .mini-shadow { fill: #d9cfbd; stroke: none; opacity: .65; }
.home-page .mini-wheel { fill: #203047; }
.home-page .mini-machine { fill: #cfe5ee; }
.home-page .mini-paper, .home-page .mini-eye { fill: #ffffff; }
.home-page .mini-slot { fill: none; stroke-width: 5; }
.home-page .mini-led { fill: #e65143; }
.home-page .mini-output { stroke-width: 2.2; }
.home-page .mini-confidence { stroke: #e65143; stroke-width: 5; }
.home-page .mini-pdf, .home-page .mini-brace {
  fill: #203047; stroke: none; font: 600 14px/1 IBM Plex Mono, monospace;
}
.home-page .mini-brace { font-size: 18px; }
.home-page .mini-hair { fill: #203047; }
.home-page .mini-skin { fill: #f3c9a8; }
.home-page .mini-shirt { fill: #cfe5ee; }
.home-page .mini-tie { fill: #e65143; }
.home-page .mini-reaction { fill: none; stroke: #e65143; stroke-width: 3; stroke-linecap: round; }
.home-page .mini-wow path { fill: #ffffff; stroke: #203047; stroke-width: 2.4; }
.home-page .mini-wow text { fill: #e65143; font: 700 25px/1 Inter, sans-serif; text-anchor: middle; }
.home-page .food-card {
  color: #33200f;
  background: linear-gradient(145deg, #fff7e0 0%, #fff7e0 48%, #d6f0db 100%);
  border-color: #eadfc8;
  border-top-color: #33200f;
}
.home-page .food-card p { color: #6f6253; }
.home-page .food-card .example-link .arrow { color: #d95f08; }
.home-page .food-example {
  display: grid;
  place-items: center;
  background: transparent;
}
.home-page .food-example img {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 36px;
  box-shadow: 0 18px 34px -20px rgba(27, 38, 31, .55);
}

.home-page .process,
.home-page .services {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.home-page .process .section-intro,
.home-page .services .section-intro {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  margin-bottom: 58px;
}
.home-page .process .section-intro h2,
.home-page .services .section-intro h2 { max-width: 580px; text-wrap: balance; }
.home-page .process .section-intro p,
.home-page .services .section-intro p { max-width: 500px; line-height: 1.68; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 3px solid var(--ink); padding-top: 22px; }
.step h3 { font-size: 22px; font-weight: 620; line-height: 1.2; text-wrap: balance; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.65; margin: 12px 0 0; }

.services-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.capabilities { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.capabilities li { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 560; letter-spacing: -.01em; line-height: 1.3; }
.capabilities li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--accent); transform: translateY(-2px); }
.capabilities-more { color: var(--muted); font-size: 17px; margin: 22px 0 0; }
.home-page .panel.report-card { min-height: 0; background: #f5f2ec; }
.home-page .mini-title { stroke-width: 5; }
.home-page .mini-bar { fill: #cfe5ee; stroke-width: 2.2; }
.home-page .mini-small { font-size: 11px; }
.home-page .mini-bar.hot { fill: #e65143; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
}

.home-page .contact { padding-bottom: 48px; }
.home-page .contact-card { padding: 72px 0; }
.home-page .contact-card .eyebrow { margin-bottom: 14px; }
.home-page .contact-card h2 { max-width: 19ch; }
.home-page .contact-card p { line-height: 1.68; }
.home-page .footer { min-height: 116px; }

.home-page .button:focus-visible,
.home-page .lang-switch a:focus-visible,
.home-page .example-link:focus-visible,
.home-page .contact-mail-line a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .home-page .brand { margin-left: 0; }
  .home-page .lang-switch { gap: 0; }
  .home-page .lang-switch a { padding-inline: 6px; }
  .home-page .hero { padding: 68px 0 54px; }
  .home-page .hero h1 { font-size: 48px; }
  .home-page .work { padding: 64px 0 70px; }
  .home-page .work .section-intro { margin-bottom: 46px; }
  .home-page .section-intro,
  .home-page .work .section-intro,
  .home-page .examples .section-intro,
  .home-page .origin,
  .home-page .expertise,
  .home-page .approach-box { grid-template-columns: 1fr; }
  .home-page .origin, .home-page .expertise { padding: 70px 0; }
  .home-page .examples { padding-top: 70px; }
  .home-page .process, .home-page .services { padding: 70px 0; }
  .home-page .process .section-intro,
  .home-page .services .section-intro { grid-template-columns: 1fr; margin-bottom: 40px; }
  .steps, .services-grid { grid-template-columns: 1fr; gap: 36px; }
  .capabilities li { font-size: 18px; }
  .home-page .panel { min-height: 0; }
  .home-page .panel.example { min-height: 470px; }
  .home-page .example-visual { height: 230px; }
  .home-page .approach-box { padding: 38px 28px; gap: 32px; }
  .home-page .contact-card { padding: 60px 0; }
}
