@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/instrument-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/instrument-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f5;
  --white: #fff;
  --ink: #17263e;
  --slate: #4b586b;
  --blue: #234d94;
  --blue-hover: #1b3d79;
  --glass: #eaf1fc;
  --honey: #f6edda;
  --ochre: #825a21;
  --line: #dce2ea;
  --display: 'Instrument Serif', Georgia, serif;
  --body: Manrope, system-ui, sans-serif;
  --gutter: clamp(1.375rem, 4.1vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -.025em; line-height: .99; }
h2 { font-size: clamp(3rem, 5.5vw, 5rem); }
em { font-weight: 400; color: var(--blue); }
.container { width: min(75rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.kicker { margin-bottom: .95rem; color: var(--blue); font-weight: 800; font-size: .875rem; letter-spacing: .005em; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 10; top: .75rem; left: .75rem; padding: .65rem 1rem; background: var(--white); }
.text-link { color: var(--blue); font-weight: 800; text-underline-offset: .28em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--blue-hover); text-decoration-thickness: 2px; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; font-size: 1.5rem; font-weight: 800; text-decoration: none; letter-spacing: -.065em; }
.brand img { width: 2.5rem; }
.brand-period { color: var(--blue); }
.desktop-nav, .footer-top nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); align-items: center; }
.desktop-nav a, .footer-top nav a { color: var(--slate); text-decoration: none; font-size: .9375rem; font-weight: 700; }
.desktop-nav a:hover, .footer-top nav a:hover, .desktop-nav a[aria-current] { color: var(--blue); text-decoration: underline; text-underline-offset: .35em; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: flex; align-items: center; gap: .6rem; list-style: none; min-height: 2.75rem; cursor: pointer; color: var(--blue); font-weight: 800; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.menu-lines { width: 1.15rem; height: .65rem; border-block: 1.5px solid currentColor; }
.mobile-nav nav { position: absolute; z-index: 2; right: 0; top: calc(100% + .35rem); display: grid; width: 12rem; padding: .45rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--white); box-shadow: 0 12px 32px #17263e19; }
.mobile-nav nav a { padding: .6rem .75rem; border-radius: .35rem; color: var(--blue); font-weight: 750; text-decoration: none; }
.mobile-nav nav a:hover { background: var(--glass); }

.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.button { min-height: 3.15rem; display: inline-flex; align-items: center; justify-content: center; padding: .66rem 1.15rem; gap: .5rem; border: 1px solid transparent; border-radius: .5rem; text-decoration: none; font-size: .9375rem; font-weight: 800; line-height: 1.3; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--blue-hover); }
.button-secondary { border-color: #b8c7db; color: var(--blue); background: #ffffff75; }
.button-secondary:hover { background: var(--glass); border-color: var(--blue); }
.button-small { min-height: 2.75rem; padding-inline: 1rem; }

.hero { display: grid; grid-template-columns: 1.075fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2.75rem, 5vw, 5.15rem); }
.hero-copy { padding-bottom: .8rem; }
.hero-kicker { display: flex; align-items: center; gap: .55rem; color: var(--ochre); margin-bottom: 1.3rem; }
.hero-kicker > span { display: inline-block; width: 1.5rem; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(4.1rem, 7.15vw, 6.8rem); line-height: .9; max-width: 8.5em; }
.hero-description { color: var(--slate); max-width: 29rem; margin: 1.6rem 0 1.75rem; font-size: clamp(1.0625rem, 1.44vw, 1.2rem); line-height: 1.65; }
.hero-visual { position: relative; min-width: 0; }
.hero-visual picture { display: block; }
.hero-image { width: 100%; aspect-ratio: 1.04; object-fit: cover; object-position: 50% 46%; border-radius: 48% 48% 1.05rem 1.05rem / 43% 43% 1.05rem 1.05rem; background: var(--honey); }
.hero-overlay { display: flex; align-items: center; gap: .72rem; position: absolute; left: -1.35rem; bottom: 1.15rem; padding: .62rem .9rem .62rem .65rem; border: 1px solid var(--line); border-radius: .78rem; background: var(--white); box-shadow: 0 14px 34px #17263e25; }
.hero-overlay strong, .hero-overlay span:not(.icon-tile) { display: block; }
.hero-overlay strong { font-size: .9375rem; font-weight: 800; }
.hero-overlay span:not(.icon-tile) { color: var(--slate); font-size: .8125rem; }
.icon-tile { width: 2.85rem; height: 2.85rem; border-radius: .65rem; display: inline-grid; place-items: center; background: var(--glass); color: var(--blue); flex: none; }
.hero-overlay .icon-tile { width: 2.55rem; height: 2.55rem; }

.solutions { border-top: 1px solid var(--line); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: clamp(1.6rem, 4vw, 2.7rem); }
.section-intro > p { max-width: 24rem; color: var(--slate); }
.section-intro > a { flex: none; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; border-block: 1px solid var(--line); }
.service { padding: 1.65rem clamp(1rem, 2.3vw, 1.85rem); display: flex; flex-direction: column; align-items: flex-start; }
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; }
.service + .service { border-left: 1px solid var(--line); }
.service:nth-child(2) .icon-tile { background: var(--honey); color: var(--ochre); }
.service h3 { font-family: var(--display); font-size: clamp(1.65rem, 2.5vw, 2.2rem); line-height: 1.05; margin: .9rem 0 .65rem; }
.service p { color: var(--slate); line-height: 1.6; }
.service-scope { margin-top: auto; padding-top: 1rem; color: var(--blue); font-weight: 750; font-size: .875rem; line-height: 1.45; }

.workflow { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); padding: clamp(1.6rem, 5vw, 4rem); background: var(--glass); border: 1px solid #dbe6f6; border-radius: 1.3rem; }
.workflow h2 { max-width: 9ch; }
.workflow-copy > p:not(.kicker) { margin: 1.2rem 0 1.35rem; color: var(--slate); max-width: 31rem; }
.workflow-visual { padding: clamp(1.15rem, 3vw, 2.35rem); border-radius: .95rem; background: radial-gradient(ellipse at top right, #fbedd2, transparent 65%), #d4e3f8; }
.sample-ui { background: var(--white); padding: clamp(.85rem, 2vw, 1.4rem); border: 1px solid #d4e1f0; border-radius: .75rem; box-shadow: 0 12px 24px #314f7e1a; }
.sample-header { display: flex; align-items: center; gap: .7rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.sample-header p { color: var(--slate); font-size: .8125rem; }
.sample-header strong { display: block; font-size: 1rem; }
.sample-ui ol { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; }
.sample-ui li { display: flex; gap: .6rem; align-items: center; padding: .3rem 0; color: var(--slate); font-size: .875rem; font-weight: 700; }
.sample-ui li span { flex: none; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--glass); color: var(--blue); font-size: .8rem; }

.project { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 1rem 1.65rem; align-items: center; margin-top: clamp(2rem, 5vw, 3.75rem); padding-block: 1.15rem; border-block: 1px solid var(--line); }
.project-icon { display: flex; gap: .75rem; align-items: center; }
.project-icon .kicker { margin: 0 0 .25rem; }
.project h2 { font-size: clamp(1.8rem, 3.15vw, 2.5rem); line-height: 1; }
.project > p { color: var(--slate); }

.about-grid { display: grid; grid-template-columns: .87fr 1.13fr; gap: 2rem clamp(2rem, 9vw, 8rem); align-items: center; }
.founder { margin-top: 1.4rem; display: flex; gap: .7rem; align-items: center; font-size: .9rem; color: var(--slate); }
.founder strong { color: var(--ink); }
.about-copy { color: var(--slate); font-size: 1.0625rem; }
.about-copy p + p { margin-top: .85rem; }
.about-copy .scripture { border-left: 2px solid #ad8650; margin-top: 1.6rem; padding-left: 1rem; font: 1.6rem/1.2 var(--display); color: var(--ink); }
.scripture cite { display: block; margin-top: .5rem; font: 750 .875rem/1.5 var(--body); color: var(--ochre); }

.journal-section { background: #fffdf8; border-block: 1px solid var(--line); }
.journal-feature { display: grid; grid-template-columns: 1.08fr .92fr; border: 1px solid var(--line); border-radius: 1.05rem; overflow: hidden; background: var(--white); }
.journal-image { display: block; background: var(--honey); }
.journal-image img { width: 100%; height: 100%; min-height: 19rem; object-fit: cover; }
.journal-feature-copy { align-self: center; padding: clamp(1.4rem, 5vw, 3.75rem); }
.journal-feature-copy h3, .journal-list h2 { font: 400 clamp(2.2rem, 4.2vw, 3.9rem)/1 var(--display); letter-spacing: -.02em; }
.journal-feature-copy h3 a, .journal-list h2 a { text-decoration: none; }
.journal-feature-copy h3 a:hover, .journal-list h2 a:hover { color: var(--blue); }
.journal-feature-copy > p:not(.kicker), .journal-list li > p:not(.kicker) { color: var(--slate); margin: .85rem 0 1.15rem; }
.journal-list { padding: 0; list-style: none; margin: 1.8rem 0 0; }
.journal-list li { border-block: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.75rem) 0; }
.journal-list h2 { font-size: clamp(2.15rem, 3.8vw, 3.45rem); }

.contact-panel { padding: clamp(1.5rem, 5vw, 3.6rem); border: 1px solid #e9ddc5; border-radius: 1.15rem; background: var(--honey); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.6rem 3rem; }
.contact-panel h2 { font-size: clamp(2.9rem, 5vw, 4.6rem); }
.contact-panel .kicker { color: var(--ochre); }
.contact-panel h2 + p { color: var(--slate); margin-top: .9rem; max-width: 32rem; }
.contact-actions p { color: var(--slate); margin-bottom: .9rem; }
.contact-actions strong { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1.25rem; padding-block: 1.6rem; }
.footer-bottom { padding-block: .9rem 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; color: var(--slate); font-size: .875rem; }
.footer-bottom a { text-underline-offset: .2em; }

.page-heading { margin-bottom: clamp(2rem, 5vw, 3.8rem); max-width: 47rem; }
.page-heading h1, .article-header h1 { font-size: clamp(3.65rem, 8vw, 7rem); }
.page-heading > p:not(.kicker), .article-deck { margin: 1rem 0 0; color: var(--slate); font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.page-heading .button { margin-top: 1.2rem; }
.article { padding-bottom: 0; }
.article-header { max-width: 57rem; margin-inline: auto; margin-bottom: 1.9rem; }
.article-header .back-link { display: inline-block; margin-bottom: 1.75rem; }
.article-meta { margin-top: 1rem; color: var(--slate); font-size: .875rem; font-weight: 700; }
.article-meta span { margin-inline: .25rem; }
.article-cover { max-width: 57rem; overflow: hidden; border-radius: 1rem; margin-inline: auto; background: var(--glass); }
.article-cover img { max-height: 32rem; width: 100%; object-fit: cover; }
.article-art { display: grid; place-items: center; min-height: 12rem; color: var(--blue); background: radial-gradient(ellipse at 70% 0%, var(--honey), transparent 60%), var(--glass); }
.article-art svg { width: 4rem; height: 4rem; }
.article-body { max-width: 44rem; margin: 2.1rem auto 0; font-size: 1.075rem; line-height: 1.78; }
.article-body p + p { margin-top: 1rem; }
.article-body h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); margin: 2.1rem 0 .7rem; }
.article-body a { color: var(--blue); text-underline-offset: .25em; }
.article-note { margin-top: 2.2rem; background: var(--glass); padding: clamp(1.2rem, 4vw, 2.1rem); border-radius: .8rem; }
.article-note h2 { margin-top: 0; }

@media (max-width: 1020px) {
  .hero h1 { font-size: clamp(3.45rem, 8.45vw, 6rem); }
  .desktop-break { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service, .service:first-child, .service:last-child { padding-inline: 1.15rem; }
  .service:nth-child(odd) { border-left: 0; padding-left: 0; }
  .service:nth-child(even) { padding-right: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 740px) {
  .desktop-nav, .header-contact { display: none; }
  .mobile-nav { display: block; }
  .header-inner { min-height: 4.45rem; }
  .hero { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero h1 { font-size: clamp(3.5rem, 10.7vw, 5.3rem); }
  .hero-copy { padding-bottom: 0; }
  .hero-description { margin: 1.2rem 0 1.4rem; }
  .hero-image { aspect-ratio: 1.18; max-height: 30rem; }
  .hero-overlay { left: .65rem; bottom: .65rem; }
  .project { grid-template-columns: 1fr; }
  .section-intro { align-items: start; flex-direction: column; }
  .workflow, .about-grid, .journal-feature, .contact-panel { grid-template-columns: 1fr; }
  .workflow { gap: 1.35rem; }
  .workflow h2 { max-width: none; }
  .journal-image img { height: auto; min-height: 0; aspect-ratio: 1.55; object-fit: cover; }
  .journal-index .page-heading { padding-top: .35rem; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 3.15rem; }
  .service h3 { font-size: 1.55rem; }
  .service p { font-size: .9375rem; }
  .button { padding-inline: .85rem; }
  .workflow-visual { padding: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
