:root {
  --paper: #f3eee5;
  --paper-deep: #e8dfd2;
  --ink: #151816;
  --muted: #6e7069;
  --line: rgba(21, 24, 22, 0.16);
  --navy: #10242b;
  --teal: #3f7473;
  --ochre: #c88c4b;
  --card: rgba(255, 255, 255, 0.36);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(200, 140, 75, 0.11), transparent 24rem),
    radial-gradient(circle at 14% 32%, rgba(63, 116, 115, 0.08), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--teal);
}

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.site-header {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.015em;
}

nav {
  display: flex;
  gap: 26px;
  font-size: 0.88rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 128px 0 122px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker,
.card-meta {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--teal);
}

.hero h1 {
  max-width: 1040px;
  margin: 20px 0 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.9rem, 8vw, 7.8rem);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 730px;
  margin: 0;
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  color: #383b37;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 160ms ease;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 46px;
}

.section-heading h2,
.contact h2 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.section-heading p:not(.section-kicker) {
  color: var(--muted);
  max-width: 590px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  min-height: 330px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.work-card.featured {
  background: var(--navy);
  color: #f8f2e7;
  border-color: var(--navy);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(21, 24, 22, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.84rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.18);
}

.project-mark.paw {
  background: rgba(200, 140, 75, 0.13);
  color: #8a5c2f;
}

.work-card.featured .project-mark {
  border-color: rgba(248, 242, 231, 0.3);
  color: #b9d8d5;
  background: rgba(255, 255, 255, 0.05);
}

.work-card.featured .card-meta {
  color: #8fc4c2;
}

.work-card h3 {
  margin: 14px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.work-card p {
  max-width: 590px;
  color: var(--muted);
}

.work-card.featured p {
  color: rgba(248, 242, 231, 0.74);
}

.card-links {
  margin-top: auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 86px;
}

.sticky-heading {
  margin-bottom: 0;
}

.writing-list {
  border-top: 1px solid var(--line);
}

.writing-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 105px;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  text-decoration: none;
}

.writing-item:hover {
  color: var(--teal);
}

.arrow {
  font-family: Inter, ui-sans-serif, sans-serif;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.writing-more {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.92rem;
}

.about {
  display: grid;
  grid-template-columns: 0.78fr 0.72fr 1.2fr;
  gap: 54px;
  align-items: start;
}

.about .section-heading {
  margin-bottom: 0;
}

.about-portrait {
  margin: 2px 0 0;
  width: min(100%, 360px);
  align-self: start;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(21, 24, 22, 0.1);
  box-shadow: 0 18px 48px rgba(21, 24, 22, 0.08);
}

.about-copy {
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.27rem, 2vw, 1.72rem);
  line-height: 1.5;
}

.about-copy p {
  margin-top: 0;
}

.about-copy p + p {
  margin-top: 26px;
}

.elsewhere {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 86px;
}

.elsewhere .section-heading {
  margin-bottom: 0;
}

.elsewhere-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.elsewhere-links a {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.05rem;
}

.elsewhere-links a:nth-child(odd) {
  padding-right: 18px;
}

.contact {
  padding-top: 94px;
  padding-bottom: 94px;
}

.contact h2 {
  max-width: 920px;
  margin-bottom: 34px;
}

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .about {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .about .section-heading {
    grid-column: 1 / -1;
    max-width: 760px;
  }

  .about-portrait {
    width: min(100%, 330px);
  }
}

@media (max-width: 820px) {
  .shell,
  .site-header {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    min-height: 74px;
  }

  nav {
    gap: 14px;
    font-size: 0.78rem;
  }

  nav a:nth-child(3) {
    display: none;
  }

  .hero {
    padding: 88px 0 82px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 15vw, 5.3rem);
  }

  .section {
    padding: 76px 0;
  }

  .work-grid,
  .split-section,
  .about,
  .elsewhere {
    grid-template-columns: 1fr;
  }

  .split-section,
  .about,
  .elsewhere {
    gap: 36px;
  }

  .about .section-heading {
    grid-column: auto;
  }

  .about-portrait {
    width: min(82vw, 340px);
  }

  .work-card {
    min-height: 290px;
  }

  .elsewhere-links {
    grid-template-columns: 1fr;
  }

  .elsewhere-links a:nth-child(odd) {
    padding-right: 0;
  }

  .site-footer {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 28px 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .brand {
    font-size: 0.94rem;
  }

  nav a:nth-child(2) {
    display: none;
  }

  .hero h1 {
    letter-spacing: -0.045em;
  }

  .button {
    width: 100%;
  }

  .work-card {
    padding: 26px;
  }

  .writing-item {
    min-height: 92px;
    gap: 14px;
  }

  .arrow {
    font-size: 0.68rem;
  }

  .about-portrait {
    width: min(88vw, 320px);
  }
}


/* Product and service entity pages */
.product-hero {
  padding: 86px 0 88px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 56px;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.product-hero h1 {
  max-width: 1000px;
  margin: 18px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  line-height: 0.97;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.product-lede {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.4;
  color: #383b37;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  gap: 90px;
  align-items: start;
}

.product-main {
  min-width: 0;
}

.product-section {
  padding: 0 0 72px;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

.product-section:last-child {
  margin-bottom: 0;
}

.product-section h2 {
  max-width: 760px;
  margin: 12px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.product-section > p:not(.section-kicker) {
  max-width: 760px;
  color: #434640;
  font-size: 1.06rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.product-grid > div {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--card);
}

.product-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.product-grid h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.product-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-facts {
  position: sticky;
  top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.product-facts dl {
  margin: 18px 0 0;
}

.product-facts dl > div {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.product-facts dt {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.product-facts dd {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

@media (max-width: 820px) {
  .product-hero {
    padding: 62px 0 68px;
  }

  .breadcrumb {
    margin-bottom: 40px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .product-facts {
    position: static;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-section {
    padding-bottom: 56px;
    margin-bottom: 56px;
  }
}


/* Product walkthrough video */
.product-video-section {
  padding: 78px 0 82px;
  border-bottom: 1px solid var(--line);
}

.product-video-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.product-video-heading h2 {
  margin: 12px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.8vw, 4.35rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.product-video-heading p:not(.section-kicker) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.product-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  box-shadow: 0 18px 48px rgba(21, 24, 22, 0.08);
}

.product-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 820px) {
  .product-video-section {
    padding: 58px 0 62px;
  }
}


/* Cairn Pipeline Analyzer CRM integrations — editorial, low-contrast treatment. */
.work-integrations{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  margin:10px 0 26px;
}
.work-integrations-label{
  color:rgba(248,242,231,.65);font-size:.62rem;
  text-transform:uppercase;letter-spacing:.12em;font-weight:650;margin-right:4px;
}
.work-integrations-brand{
  display:inline-flex;align-items:center;gap:7px;min-height:31px;
  padding:5px 9px;border:1px solid rgba(248,242,231,.22);
  border-radius:3px;color:#f8f2e7;font-size:.76rem;line-height:1.3;
  white-space:nowrap;background:rgba(255,255,255,.04);
}
.work-integrations-brand img{width:18px;height:18px;display:block;object-fit:contain}
.work-integrations-brand small{
  font-size:.62rem;line-height:1.2;letter-spacing:.02em;
  color:rgba(248,242,231,.65);margin-left:1px;
}

.product-integrations{
  padding:74px 0 78px;border-bottom:1px solid var(--line);
}
.integration-intro{max-width:900px;margin-bottom:32px}
.integration-intro h2{
  margin:12px 0 18px;font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(2.35rem,4.8vw,4.35rem);line-height:1.04;
  font-weight:400;letter-spacing:-.04em;
}
.integration-intro > p:not(.section-kicker){
  margin:0;max-width:730px;color:#494d48;
}
.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.integration-card{
  display:flex;flex-direction:column;min-width:0;padding:28px;
  border:1px solid var(--line);background:var(--card);
}
.integration-card-top{
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:14px;
}
.integration-brand{display:flex;align-items:center;gap:12px;min-width:0}
.integration-brand img{display:block;width:32px;height:32px;object-fit:contain;flex:0 0 32px}
.integration-brand h3{
  font-family:Georgia,"Times New Roman",serif;font-size:1.7rem;
  font-weight:400;letter-spacing:-.025em;line-height:1.2;margin:0;
}
.integration-state{
  display:inline-flex;align-items:center;min-height:27px;
  padding:4px 9px;border:1px solid rgba(63,116,115,.33);
  border-radius:3px;color:#356460;background:rgba(63,116,115,.07);
  font-size:.65rem;font-weight:650;letter-spacing:.09em;text-transform:uppercase;
}
.integration-state.preview{
  color:#7a5a31;border-color:rgba(200,140,75,.36);
  background:rgba(200,140,75,.09);
}
.integration-card>p:not(.integration-detail){
  margin:22px 0 26px;color:#454a46;font-size:.97rem;flex:1;
}
.integration-card .integration-detail{
  margin:0;padding-top:14px;border-top:1px solid var(--line);
  color:var(--muted);font-size:.79rem;line-height:1.5;
}
.integration-footnote{
  margin:19px 0 0;color:var(--muted);font-size:.82rem;line-height:1.6;
}
@media(max-width:720px){
  .product-integrations{padding:58px 0 62px}
  .integration-grid{grid-template-columns:minmax(0,1fr)}
  .integration-card{padding:24px}
}
