:root {
  --ink: #17191b;
  --muted: #62686c;
  --paper: #ffffff;
  --soft: #f2f5f6;
  --teal: #145370;
  --teal-deep: #0c3b51;
  --line: #c8ced1;
  --accent: #9ad7df;
  --max: 1120px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }

.topbar { height: 38px; background: #202326; }
.topbar-inner { width: min(var(--max), calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; }
.archive-note { color: #b8bec1; font: 600 .72rem/1.2 "Arial Narrow", Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }

.site-header { width: min(var(--max), calc(100% - 40px)); margin: 30px auto 58px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { position: relative; display: inline-block; padding: 16px 28px 15px; background: var(--teal); color: white; text-decoration: none; font-size: clamp(1.35rem, 3vw, 2.45rem); font-weight: 400; line-height: 1.05; }
.brand::after { content: ""; position: absolute; width: 16px; height: 16px; right: -12px; bottom: -2px; background: var(--teal); }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.nav a { text-decoration: none; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid transparent; padding: 8px 0; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { border-color: var(--teal); }

main { min-height: 60vh; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 74px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: white; }

.display, h1, h2, h3 { font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-stretch: condensed; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font: 800 .75rem/1.2 "Arial Narrow", Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.section-title { display: grid; grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr); align-items: center; gap: 22px; margin: 0 0 34px; font-size: clamp(2rem, 5vw, 3.45rem); font-weight: 500; letter-spacing: .08em; line-height: 1; text-align: center; text-transform: uppercase; }
.section-title::before, .section-title::after { content: ""; height: 4px; border-top: 1px solid #7b8286; border-bottom: 1px solid #7b8286; }
.page-heading { max-width: 820px; margin: 0; font-size: clamp(3.1rem, 8vw, 6.8rem); line-height: .92; letter-spacing: -.025em; text-transform: uppercase; }
.page-intro { max-width: 740px; margin: 22px 0 0; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; color: #d9e2e5; }

.hero { padding: 26px 0 64px; }
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.tile { position: relative; aspect-ratio: 1.58 / 1; overflow: hidden; color: white; text-decoration: none; isolation: isolate; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 28%, rgba(4,16,21,.68)); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.035); }
.tile span { position: absolute; left: 10%; right: 10%; bottom: 18%; padding: 0 0 14px; border-bottom: 3px solid white; font-size: clamp(1.15rem, 3vw, 1.65rem); font-weight: 700; text-align: center; text-transform: uppercase; }

.approach { max-width: 930px; margin: 0 auto; text-align: center; }
.approach h2 { margin: 0 0 18px; font-size: clamp(2.2rem, 5vw, 3.3rem); }
.approach p { margin: 0; color: #3e4447; font-size: 1.08rem; line-height: 1.8; }
.approach-image { width: min(100%, 1000px); margin: 34px auto 0; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { border-bottom: 4px solid var(--ink); padding-bottom: 22px; }
.card img { width: 100%; aspect-ratio: 1.45 / 1; object-fit: cover; margin-bottom: 20px; }
.card .meta { color: var(--teal); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.card h3 { margin: 8px 0 10px; font-size: 1.38rem; letter-spacing: .04em; text-transform: uppercase; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; }

.page-hero { padding: 74px 0 78px; background: var(--teal-deep); color: white; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: clamp(36px, 7vw, 86px); align-items: start; }
.prose h2 { margin: 0 0 18px; font-size: 2.35rem; }
.prose h3 { margin: 38px 0 12px; font-size: 1.7rem; }
.prose p, .prose li { color: #373d40; font-size: 1.04rem; line-height: 1.78; }
.prose p:first-of-type { font-size: 1.15rem; }
.portrait { position: sticky; top: 24px; }
.portrait img { width: 100%; aspect-ratio: .9 / 1.15; object-fit: cover; object-position: center top; }
.caption { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }

.quote { margin: 0; padding: 34px; background: var(--soft); border-left: 6px solid var(--teal); }
.quote p { margin: 0; font-size: 1.12rem; line-height: 1.7; }
.quote footer { margin-top: 18px; color: var(--teal); font-weight: 800; }
.credentials { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credentials li { padding: 15px 0; border-bottom: 1px solid var(--line); }

.service-list { display: grid; gap: 0; }
.service { display: grid; grid-template-columns: .65fr 1.35fr; gap: 40px; padding: 58px 0; border-top: 1px solid var(--line); }
.service-number { color: var(--teal); font: 500 clamp(3.2rem, 7vw, 6rem)/.85 "Arial Narrow", Impact, sans-serif; }
.service h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
.service p { max-width: 720px; margin: 0 0 14px; color: #3c4245; line-height: 1.75; }
.rate-box { margin-top: 22px; padding: 20px 22px; background: var(--soft); border-left: 4px solid var(--teal); }
.rate-box strong { display: block; margin-bottom: 8px; }
.rate-box p { margin: 4px 0; }

.journal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; }
.journal-card { display: grid; grid-template-columns: 180px 1fr; gap: 24px; border-top: 4px solid var(--ink); padding-top: 20px; }
.journal-card img { width: 180px; height: 150px; object-fit: cover; }
.journal-card h2 { margin: 4px 0 10px; font-size: 1.55rem; text-transform: uppercase; }
.journal-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.journal-card--archive h2 a { color: inherit; text-decoration: none; }
.journal-card--archive h2 a:hover { color: var(--teal); }
.journal-grid--archive { align-items: start; }
.journal-placeholder { display: grid; place-items: center; width: 180px; height: 150px; background: var(--teal); color: #fff; font-size: 1.25rem; letter-spacing: .18em; }
.recovery-status { display: inline-block; margin-top: 12px; color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-hero { padding: 68px 0 44px; border-bottom: 1px solid #d7d7d7; text-align: center; }
.article-hero .wrap { width: min(820px, calc(100% - 40px)); }
.recovered-article { width: min(760px, calc(100% - 40px)); padding: 56px 0 82px; font-size: 1.05rem; line-height: 1.78; }
.recovered-article h2, .recovered-article h3 { margin: 2em 0 .65em; text-transform: uppercase; }
.recovered-article p, .recovered-article ul, .recovered-article ol { margin: 0 0 1.35em; }
.recovered-article img { display: block; max-width: 100%; height: auto; margin: 30px auto; }
.recovered-article figure { margin: 32px auto; }
.recovered-article blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--teal); color: var(--muted); }
.article-source-note { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid #d7d7d7; color: var(--muted); font-size: .86rem; }
.text-link { color: var(--teal); font-weight: 800; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.contact-panel { padding: 34px; border: 1px solid var(--line); }
.contact-panel h2 { margin: 0 0 12px; font-size: 2rem; }
.contact-panel p { color: var(--muted); line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; margin-top: 10px; background: var(--teal); color: white; text-decoration: none; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.button:hover, .button:focus-visible { background: var(--teal-deep); }
.button-light { background: white; color: var(--teal-deep); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px 0; }
.cta h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.8rem); text-transform: uppercase; }
.cta p { max-width: 600px; margin: 8px 0 0; color: #cbd6da; line-height: 1.6; }

.site-footer { background: #222527; color: #b7bdc0; }
.footer-main { display: grid; grid-template-columns: 1.3fr .7fr; }
.footer-block { padding: 42px 0; }
.footer-block + .footer-block { padding-left: 48px; border-left: 1px solid #393d3f; }
.footer-title { margin: 0 0 18px; color: white; font: 600 1rem/1.2 "Arial Narrow", Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.footer-main p { max-width: 580px; margin: 0; line-height: 1.7; }
.socials { display: flex; flex-wrap: wrap; gap: 16px; }
.socials a { color: white; text-decoration: none; border-bottom: 1px solid #6f777a; }
.footer-bottom { padding: 18px 0 26px; border-top: 1px solid #393d3f; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* Later 2023 homepage reconstruction */
.home-page { background: #fff; }
.home-page .topbar { height: 32px; }
.home-page .topbar-inner { width: min(920px, calc(100% - 32px)); }
.home-page .archive-note { font-size: .68rem; }
.home-wrap { width: min(920px, calc(100% - 40px)); margin-inline: auto; }
.home-header { width: min(920px, calc(100% - 40px)); margin: 24px auto 20px; display: block; text-align: center; }
.home-header .brand { font-size: clamp(1.65rem, 4vw, 2.4rem); padding: 12px 24px; }
.home-header .nav { justify-content: center; gap: 0; margin-top: 22px; padding: 7px 12px 8px; border-top: 1px solid #8c9295; border-bottom: 3px solid var(--ink); }
.home-header .nav a { position: relative; padding: 6px 13px; border: 0; font-family: "Arial Narrow", Arial, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .18em; }
.home-header .nav a + a::before { content: "/"; position: absolute; left: -2px; color: #a3a7a9; }
.home-header .nav a:hover, .home-header .nav a:focus-visible { color: var(--teal); }
.home-main { min-height: 0; }
.home-hero { padding: 0 0 44px; }
.home-hero .section-title { margin-bottom: 26px; font-size: clamp(2rem, 5vw, 3rem); }
.video-frame { overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.app-section { padding: 0 0 86px; }
.app-story { max-width: 790px; }
.app-mockup { width: min(590px, 92%); margin: 0 auto 56px; }
.feature-row { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 32px; align-items: center; margin: 0 0 46px; }
.feature-row p { margin: 0 0 14px; color: #3d4346; font-size: 1rem; line-height: 1.75; }
.feature-row p:last-child { margin-bottom: 0; }
.feature-icon { width: 86px; max-height: 96px; object-fit: contain; }
.testimonial-row { grid-template-columns: minmax(0, 1fr) 94px; margin-left: 0; padding: 0; border: 0; }
.testimonial-row cite { display: block; margin-top: 12px; color: var(--teal); font-style: normal; font-weight: 700; }
.home-action { text-align: center; padding-top: 4px; }
.home-action .button { min-height: 46px; margin: 0; }

.latest-section { padding: 0 0 76px; }
.latest-section .section-title { margin-bottom: 58px; }
.archive-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.archive-post { padding-bottom: 22px; border-bottom: 3px solid var(--ink); text-align: center; }
.archive-post img { width: 100%; aspect-ratio: 1.42 / 1; margin-bottom: 18px; object-fit: cover; }
.archive-post .meta, .results-post .meta { margin: 0 0 7px; color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.archive-post h3, .results-post h3 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: .05em; text-transform: uppercase; }
.archive-post p, .results-post p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.results-post { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; width: min(540px, 100%); margin: 38px 0 0 auto; padding-bottom: 22px; border-bottom: 3px solid var(--ink); text-align: center; }
.results-post img { width: 180px; aspect-ratio: 1.2 / 1; object-fit: cover; }
.archive-pagination { display: flex; justify-content: center; gap: 14px; margin-top: 46px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: #888e91; font-size: .9rem; }
.archive-pagination [aria-current="page"] { color: var(--ink); font-weight: 800; }

@media (max-width: 850px) {
  .site-header { align-items: flex-start; flex-direction: column; margin-bottom: 36px; }
  .nav { justify-content: flex-start; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 520px; }
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 180px 1fr; column-gap: 22px; }
  .card img { grid-row: 1 / 5; margin: 0; }
  .journal-grid { grid-template-columns: 1fr; }
  .home-header { align-items: initial; }
  .archive-posts { grid-template-columns: 1fr; }
  .archive-post { display: grid; grid-template-columns: 180px 1fr; column-gap: 22px; text-align: left; }
  .archive-post img { grid-row: 1 / 5; margin: 0; }
}

@media (max-width: 620px) {
  .topbar-inner, .site-header, .wrap { width: min(100% - 28px, var(--max)); }
  .site-header { margin-top: 20px; }
  .brand { padding: 13px 17px; font-size: 1.45rem; }
  .nav { gap: 4px 16px; }
  .nav a { font-size: .74rem; }
  .section { padding: 54px 0; }
  .section-title { gap: 12px; font-size: 1.9rem; }
  .tile-grid { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 1.55 / 1; }
  .page-hero { padding: 54px 0 58px; }
  .service { grid-template-columns: 1fr; gap: 16px; padding: 42px 0; }
  .service-number { font-size: 3.2rem; }
  .card { display: block; }
  .card img { margin-bottom: 18px; }
  .journal-card { grid-template-columns: 1fr; }
  .journal-card img { width: 100%; height: auto; aspect-ratio: 1.55 / 1; }
  .journal-placeholder { width: 100%; height: auto; aspect-ratio: 1.55 / 1; }
  .cta { align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-block + .footer-block { padding: 0 0 42px; border: 0; }
  .home-wrap, .home-header { width: min(100% - 28px, 920px); }
  .home-header { align-items: initial; margin-top: 18px; }
  .home-header .brand { font-size: 1.4rem; }
  .home-header .nav { justify-content: center; gap: 0; }
  .home-header .nav a { padding: 6px 9px; font-size: .7rem; }
  .home-hero { padding-bottom: 34px; }
  .app-section { padding-bottom: 60px; }
  .app-mockup { margin-bottom: 42px; }
  .feature-row, .testimonial-row { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-row .feature-icon { grid-row: 1; }
  .feature-icon { width: 74px; }
  .archive-post { display: block; text-align: center; }
  .archive-post img { margin-bottom: 18px; }
  .results-post { grid-template-columns: 1fr; }
  .results-post img { width: 100%; aspect-ratio: 1.45 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img { transition: none; }
}
