/* Tessellate QA Solutions — site styles */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink: #1B2430; --slate: #4A5A6A; --brass: #B08D57; --stone: #D8D2C7; --ivory: #F6F3EE;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px; --gutter: clamp(20px, 4vw, 40px);
  --space: clamp(72px, 10vw, 128px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(52px, 8vw, 96px); line-height: 1.0; }
h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; }
h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; line-height: 1.35; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ivory); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--slate); max-width: 40em; }
.num { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--brass); }

/* placeholder marker: visible on purpose so nothing ships unfilled */
.ph { background: rgba(176, 141, 87, 0.16); border-bottom: 1px dashed var(--brass); padding: 0 4px; border-radius: 2px; }
.section-ink .ph { background: rgba(176, 141, 87, 0.22); }

.btn { display: inline-block; background: var(--ink); color: var(--ivory); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: 0.02em; padding: 15px 26px; border-radius: 2px; border: 1px solid var(--ink); cursor: pointer; font-family: var(--sans); transition: background .2s, color .2s; }
.btn:hover { background: var(--slate); border-color: var(--slate); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-light:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.link-arrow { font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--stone); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--brass); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 238, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--stone); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 168px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; color: var(--slate); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { color: var(--ivory); }
.nav-toggle { display: none; background: none; border: 1px solid var(--stone); font: 600 14px var(--sans); color: var(--ink); padding: 8px 14px; border-radius: 2px; cursor: pointer; }

/* hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 var(--space); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin: 40px 0 44px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--slate); }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.tiles { width: 100%; max-width: 420px; margin-left: auto; }

/* sections */
.section { padding: var(--space) 0; border-top: 1px solid var(--stone); }
.section-tight { padding: calc(var(--space) * 0.7) 0; }
.section-ink { background: var(--ink); color: var(--ivory); border-top: 0; }
.section-ink .eyebrow, .section-ink .lead, .section-ink p { color: var(--stone); }
.section-ink h2, .section-ink h3 { color: var(--ivory); }
.section-stone { background: #EFEBE4; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 20px; }
.section-head p:not(.eyebrow) { color: var(--slate); }
.section-ink .section-head p:not(.eyebrow) { color: var(--stone); }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--stone); border-left: 1px solid var(--stone); }
.card { padding: 36px 32px 40px; border-right: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.card h3 { margin: 18px 0 12px; }
.card p { color: var(--slate); font-size: 16px; }

/* industries */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(216, 210, 199, 0.25); }
.industry { padding: 32px 28px 8px 0; }
.industry + .industry { padding-left: 28px; border-left: 1px solid rgba(216, 210, 199, 0.25); }
.industry h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 12px; }
.industry p { font-size: 16px; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.steps li:first-child { border-top-color: var(--brass); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 10px 0 10px; }
.steps p { color: var(--slate); font-size: 16px; }

/* pricing */
.note { font-size: 15px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--ivory); border: 1px solid var(--stone); padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.plan-featured { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--brass); }
.plan .price { font-family: var(--serif); font-size: 32px; line-height: 1.35; }
.plan p { color: var(--slate); font-size: 16px; }
.plan .price { color: var(--ink); }
.plan ul { list-style: none; padding: 18px 0 0; margin: auto 0 0; border-top: 1px solid var(--stone); font-size: 15px; }
.plan li { padding: 5px 0 5px 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 1px; background: var(--brass); }

/* about */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; }
.about-photo { aspect-ratio: 4 / 5; background: #E7E2D9; border: 1px solid var(--stone); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--slate); }
.about-grid h2 { margin-bottom: 22px; }
.about-grid .lead { margin-bottom: 18px; }
.about-grid p:not(.lead):not(.eyebrow) { color: var(--slate); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 36px 0 0; border-top: 1px solid var(--stone); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--stone); }
.facts dt { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.facts dd { margin: 4px 0 0; font-weight: 500; }

/* proof */
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.proof-slot { margin: 0; border: 1px dashed var(--brass); padding: 36px 32px; }
.proof-slot blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.proof-slot figcaption { font-size: 14px; color: var(--slate); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-grid h2 { margin-bottom: 22px; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid rgba(216, 210, 199, 0.25); }
.contact-list li { padding: 14px 0; border-bottom: 1px solid rgba(216, 210, 199, 0.25); color: var(--stone); font-size: 16px; display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-list li > span:first-child { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
.contact-form { display: grid; gap: 18px; background: rgba(246, 243, 238, 0.04); border: 1px solid rgba(216, 210, 199, 0.25); padding: 36px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--stone); }
.contact-form input, .contact-form textarea { font: 400 16px var(--sans); color: var(--ivory); background: transparent; border: 0; border-bottom: 1px solid rgba(216, 210, 199, 0.45); padding: 10px 0; text-transform: none; letter-spacing: 0; border-radius: 0; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--brass); }
.contact-form .btn { justify-self: start; margin-top: 8px; }
.form-note { font-size: 13px; }

/* footer */
.site-footer { background: var(--ink); color: var(--stone); border-top: 1px solid rgba(216, 210, 199, 0.2); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { font-family: var(--serif); font-size: 22px; color: var(--ivory); }
.footer-inner .small { font-family: var(--sans); font-size: 13px; color: var(--stone); width: 100%; }

/* responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .industry, .industry + .industry { padding: 28px 24px 24px 0; border-left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 560px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 360px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--stone); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--stone); }
  .nav .btn { margin-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; }
  .tiles { max-width: 180px; margin: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand img { width: 144px; }
  .cards, .industries, .steps, .proof { grid-template-columns: 1fr; }
  .industry, .industry + .industry { border-top: 1px solid rgba(216, 210, 199, 0.25); padding: 24px 0; }
  .industries { border-top: 0; }
  .card { padding: 28px 24px 32px; }
  .facts { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .section-head { margin-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== v2: SEO landing pages ===== */
.h1-kicker { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); margin-bottom: 22px; line-height: 1.4; }
.h1-kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--brass); vertical-align: middle; margin-right: 12px; }
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.page-hero-tight { padding: 24px 0 0; }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; max-width: 15em; margin-bottom: 26px; }
.page-hero .hero-actions { margin: 36px 0 28px; }
.fit { font-size: 15px; color: var(--slate); max-width: 46em; }
.fit strong { color: var(--ink); font-weight: 600; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 36px; font-size: 13px; color: var(--slate); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--stone); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.two-col h2 { margin-bottom: 22px; }
.body-copy { color: var(--slate); }
.section-ink .body-copy { color: var(--stone); }
.dash-list, .check-list, .link-list { list-style: none; padding: 0; margin: 0; }
.dash-list li { padding: 18px 0 18px 32px; border-bottom: 1px solid var(--stone); position: relative; font-size: 17px; }
.dash-list li:first-child { border-top: 1px solid var(--stone); }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 31px; width: 16px; height: 1px; background: var(--brass); }
.dash-list a { text-underline-offset: 3px; text-decoration-color: var(--brass); }
.check-list li { padding: 10px 0 10px 30px; position: relative; font-size: 16px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 9px; background: var(--brass); transform: rotate(45deg); }
.two-col > div > .check-list { margin-top: 18px; }
.deliver { background: var(--ivory); border: 1px solid var(--stone); padding: 32px; }
.label { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.link-list li { border-bottom: 1px solid var(--stone); }
.link-list li:first-child { border-top: 1px solid var(--stone); }
.link-list a { display: block; padding: 16px 0; text-decoration: none; font-weight: 500; }
.link-list a::after { content: " →"; color: var(--brass); }
.link-list a:hover { color: var(--slate); }
.price-pointer { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
.pp-links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 22px; }
.faq-wrap .faq, .faq-wrap .section-head { max-width: 880px; }
.faq { border-top: 1px solid var(--stone); }
.faq-item { border-bottom: 1px solid var(--stone); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; color: var(--brass); font-weight: 300; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { font-size: 18px; display: inline; }
.faq-item p { padding: 0 40px 24px 0; color: var(--slate); max-width: 46em; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rel-card, a.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.rel-card { border: 1px solid var(--stone); padding: 30px 28px; transition: border-color .2s; }
.rel-card:hover, a.card:hover { border-color: var(--ink); }
.rel-card p, a.card p { color: var(--slate); font-size: 15px; flex: 1; }
a.card .link-arrow, .rel-card .link-arrow { align-self: flex-start; font-size: 14px; }
a.card { transition: background .2s; }
a.card:hover { background: rgba(216, 210, 199, 0.25); }
.card-ink { background: var(--ink); color: var(--ivory); }
.card-ink h3 { color: var(--ivory); }
.card-ink p { color: var(--stone) !important; }
a.card-ink:hover { background: #222D3B; }
.card-ink .link-arrow { border-color: var(--slate); }
.industry h3 a { text-decoration: none; border-bottom: 1px solid var(--brass); }
.cta-band { padding: clamp(64px, 8vw, 104px) 0; }
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.cta-inner h2 { margin-bottom: 16px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: flex-end; }
.link-arrow.light { color: var(--ivory); border-color: var(--slate); }
.note.centre { margin-top: 32px; }
.contact-form select { font: 400 16px var(--sans); color: var(--ivory); background: var(--ink); border: 0; border-bottom: 1px solid rgba(216, 210, 199, 0.45); padding: 10px 0; text-transform: none; letter-spacing: 0; border-radius: 0; }
.contact-page h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.05; margin-bottom: 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(216, 210, 199, 0.2); }
.footer-brand .footer-tag { font-family: var(--serif); font-size: 24px; color: var(--ivory); margin: 18px 0 10px; }
.footer-h { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer nav a { text-decoration: none; color: var(--ivory); font-size: 15px; }
.site-footer nav a:hover { color: var(--brass); }
.site-footer .small { font-size: 13px; color: var(--stone); }
.copyright { margin-top: 24px; }
@media (max-width: 980px) {
  .two-col, .price-pointer, .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .related { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .deliver { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav .btn { width: 100%; text-align: center; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--stone); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--stone); }
  .nav .btn { margin-top: 16px; }
}
.other-ind { margin-top: 36px; }
