:root {
  --ink: #102b32;
  --blue: #2a91b4;
  --orange: #f27445;
  --cream: #fff4db;
  --paper: #fffaf0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header { height: 86px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; gap: 42px; background: var(--cream); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 "Manrope", sans-serif; letter-spacing: -.8px; }
.brand-mark { width: 34px; height: 34px; fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
nav { display: flex; gap: 32px; margin-left: auto; font-size: 14px; font-weight: 600; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; height: 2px; inset: auto 100% -7px 0; background: var(--orange); transition: inset .25s; }
nav a:hover::after { inset-right: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 17px 22px; color: white; background: var(--orange); font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: #da6035; }
.button-small { padding: 12px 18px; font-size: 13px; }

.hero { position: relative; min-height: calc(100vh - 86px); isolation: isolate; display: flex; align-items: center; overflow: hidden; color: white; background-color: var(--ink); background-image: url("assets/mthood2.jpg"); background-size: cover; background-position: center 42%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(115deg, rgba(16, 43, 50, .28) 0%, rgba(23, 67, 74, .18) 45%, rgba(42, 145, 180, .12) 100%); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 33, 39, .92) 0%, rgba(9, 33, 39, .68) 46%, rgba(9, 33, 39, .12) 85%), linear-gradient(0deg, rgba(16,43,50,.5), transparent 45%); }
.hero-content { width: min(790px, 88vw); margin-left: clamp(24px, 9vw, 145px); padding: 80px 0; }
.eyebrow, .section-number { font: 700 12px/1.3 "Manrope", sans-serif; letter-spacing: 2.1px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--cream); }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
h1, h2, h3 { margin-top: 0; font-family: "Manrope", sans-serif; }
h1 { margin-bottom: 26px; font-size: clamp(48px, 6.6vw, 96px); line-height: .98; letter-spacing: -5px; }
h1 em { color: var(--cream); font-family: Georgia, serif; font-weight: 400; }
.hero-copy { max-width: 660px; color: rgba(255,255,255,.86); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 38px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; padding: 10px 0 6px; border-bottom: 1px solid currentColor; font-weight: 700; }
.hero-note { position: absolute; right: 3vw; bottom: 28px; display: flex; gap: 16px; font-size: 10px; letter-spacing: 1px; writing-mode: vertical-rl; opacity: .65; }

.section { padding: 120px clamp(24px, 9vw, 145px); }
.intro, .contact { display: grid; grid-template-columns: minmax(170px, .35fr) 1fr; gap: 60px; }
.section-number { color: var(--blue); padding-top: 12px; }
h2 { margin-bottom: 24px; font-size: clamp(40px, 5vw, 70px); line-height: 1.04; letter-spacing: -3px; }
h2 span { color: var(--blue); font-family: Georgia, serif; font-weight: 400; font-style: italic; }
.intro > div > p, .contact > div > p { max-width: 700px; color: #52666a; font-size: 19px; line-height: 1.7; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding-top: 20px; background: linear-gradient(var(--paper), var(--paper)) padding-box; }
.service-card { min-height: 510px; position: relative; padding: 48px 38px; border: 1px solid rgba(16,43,50,.14); background: var(--cream); }
.service-card.featured { background: var(--blue); color: white; transform: translateY(-22px); box-shadow: 0 26px 60px rgba(16,43,50,.18); }
.card-number { position: absolute; right: 25px; top: 25px; color: var(--orange); font: 700 12px "Manrope", sans-serif; }
.card-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 42px; border: 1px solid currentColor; color: var(--orange); font-size: 31px; }
.featured .card-icon, .featured .card-number { color: var(--cream); }
.service-card h3 { font-size: 26px; }
.service-card p { min-height: 94px; color: #52666a; line-height: 1.65; }
.featured p { color: rgba(255,255,255,.8); }
.service-card ul { list-style: none; margin: 28px 0 0; padding: 25px 0 0; border-top: 1px solid rgba(16,43,50,.18); }
.featured ul { border-color: rgba(255,255,255,.28); }
.service-card li { padding: 7px 0; font-size: 14px; font-weight: 600; }
.service-card li::before { content: "+"; margin-right: 12px; color: var(--orange); }

.selected-work { background: var(--paper); }
.work-heading { display: grid; grid-template-columns: minmax(170px, .35fr) 1fr; gap: 60px; }
.work-heading > div > p { max-width: 650px; color: #52666a; font-size: 18px; line-height: 1.7; }
.product-feature { display: grid; grid-template-columns: minmax(280px, .7fr) 1.3fr; margin-top: 68px; overflow: hidden; color: white; background: var(--ink); box-shadow: 0 28px 70px rgba(16,43,50,.16); }
.product-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(40px, 6vw, 78px); }
.product-label { color: #b7df72; font: 700 11px/1.3 "Manrope", sans-serif; letter-spacing: 2px; }
.product-copy h3 { margin: 26px 0 18px; font-size: clamp(42px, 5vw, 70px); letter-spacing: -3px; }
.product-copy > p:not(.product-label) { max-width: 470px; margin: 0 0 36px; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.7; }
.product-preview { min-height: 510px; display: grid; grid-template-columns: 150px 1fr; margin: 40px 0 40px 40px; overflow: hidden; color: #182820; background: #f3f5ef; border-radius: 22px 0 0 22px; box-shadow: -18px 20px 55px rgba(0,0,0,.22); }
.preview-sidebar { display: flex; flex-direction: column; gap: 22px; padding: 28px 18px; color: white; background: #154d3d; }
.preview-sidebar strong { display: flex; align-items: center; gap: 9px; font: 800 14px "Manrope", sans-serif; }
.preview-sidebar strong span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #154d3d; background: #b7df72; }
.preview-sidebar i { width: 78%; height: 10px; border-radius: 8px; background: rgba(255,255,255,.25); }
.preview-sidebar i:first-of-type { width: 100%; height: 42px; background: rgba(255,255,255,.14); }
.preview-main { padding: 52px 38px; }
.preview-main > small { color: #4f7669; font: 700 10px "Manrope", sans-serif; letter-spacing: 2px; }
.preview-main > strong { display: block; margin: 15px 0 8px; font: 800 clamp(30px, 4vw, 54px) "Manrope", sans-serif; letter-spacing: -2.5px; }
.preview-main > p { margin: 0; color: #66736d; }
.preview-stats { display: grid; grid-template-columns: 1.5fr .7fr; gap: 16px; margin-top: 38px; }
.preview-stats > div { min-height: 210px; display: flex; flex-direction: column; padding: 28px; border: 1px solid #e1e5de; border-radius: 22px; background: white; }
.preview-stats small { color: #718078; font-size: 10px; }
.preview-stats b { margin: 18px 0; font: 800 28px "Manrope", sans-serif; }
.preview-stats span { color: #718078; font-size: 13px; }
.preview-bars { display: flex; align-items: end; gap: 10px; height: 75px; margin-top: auto; }
.preview-bars i { flex: 1; height: 55%; border-radius: 5px 5px 0 0; background: #b7df72; }
.preview-bars i:nth-child(2) { height: 82%; }
.preview-bars i:nth-child(3) { height: 64%; }

.approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 130px); padding: 120px clamp(24px, 9vw, 145px); color: white; background: var(--ink); }
.section-number.light { color: var(--orange); }
.approach-copy h2 { margin-top: 38px; }
.approach-copy > p:not(.section-number) { max-width: 570px; color: rgba(255,255,255,.7); line-height: 1.75; font-size: 17px; }
.light-link { margin-top: 25px; color: var(--cream); }
.approach-list { list-style: none; padding: 0; margin: 0; }
.approach-list li { display: grid; grid-template-columns: 50px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.18); }
.approach-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.approach-list li > span { color: var(--orange); font: 700 12px "Manrope", sans-serif; }
.approach-list strong { font: 700 22px "Manrope", sans-serif; }
.approach-list p { color: rgba(255,255,255,.62); line-height: 1.6; }
.contact { background: var(--cream); }
.contact .button { margin-top: 24px; }

.insights-preview { background: #f7ead0; }
.insights-heading { display: grid; grid-template-columns: minmax(170px, .35fr) 1fr; gap: 60px; }
.insights-heading > div > p { max-width: 650px; color: #52666a; font-size: 18px; line-height: 1.7; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 65px; }
.insight-card { min-height: 350px; display: flex; flex-direction: column; padding: 34px; border-top: 3px solid var(--orange); background: var(--paper); }
.insight-image { height: 170px; margin: -34px -34px 28px; overflow: hidden; background: var(--ink); }
.insight-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.insight-card h3 { margin: 20px 0 14px; font-size: 25px; line-height: 1.2; }
.insight-card > p:not(.insight-meta) { color: #52666a; line-height: 1.65; }
.insight-card .text-link { align-self: flex-start; margin-top: auto; color: var(--blue); }
.insight-meta { margin: 0; color: #718084; font: 700 11px/1.4 "Manrope", sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.insights-all { margin-top: 42px; color: var(--blue); }

.listing-header { padding: 110px clamp(24px, 9vw, 145px) 90px; color: white; background: var(--ink); }
.listing-header h1 { max-width: 950px; margin: 32px 0; }
.listing-header h1 em { color: var(--cream); }
.listing-header > p:last-child { max-width: 690px; color: rgba(255,255,255,.72); font-size: 20px; line-height: 1.65; }
.article-list { padding: 50px clamp(24px, 9vw, 145px) 120px; }
.article-list-item { display: grid; grid-template-columns: 190px 1fr 50px; gap: 35px; align-items: start; padding: 46px 0; border-bottom: 1px solid rgba(16,43,50,.18); }
.article-list-item.has-image { grid-template-columns: 190px minmax(0, 230px) 1fr 50px; }
.article-list-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.article-list-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.article-list-item h2 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 43px); letter-spacing: -1.8px; }
.article-list-item div > p { max-width: 720px; margin: 0; color: #52666a; font-size: 17px; line-height: 1.65; }
.article-arrow { font-size: 32px; color: var(--orange); transition: transform .2s; }
.article-list-item:hover .article-arrow { transform: translateX(6px); }

.article-page { background: var(--paper); }
.article-header { padding: 85px max(24px, calc((100vw - 980px) / 2)) 75px; background: var(--cream); }
.article-back { display: inline-block; margin-bottom: 65px; color: var(--blue); font-weight: 700; }
.article-header h1 { max-width: 980px; margin: 28px 0; color: var(--ink); font-size: clamp(48px, 7vw, 92px); }
.article-summary { max-width: 800px; color: #52666a; font-size: clamp(19px, 2vw, 24px); line-height: 1.55; }
.article-byline { margin-top: 32px; color: #718084; font: 700 11px "Manrope", sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.article-hero-image { width: min(1120px, calc(100vw - 48px)); margin: 70px auto 0; }
.article-hero-image img { width: 100%; max-height: 700px; display: block; object-fit: contain; background: var(--ink); }
.article-body { width: min(760px, calc(100vw - 48px)); margin: 0 auto; padding: 85px 0 100px; font: 18px/1.8 "DM Sans", sans-serif; }
.article-body h2 { margin: 65px 0 18px; font-size: 38px; letter-spacing: -1.5px; }
.article-body p { margin: 0 0 26px; }
.article-body img { width: 75%; height: auto; display: block; margin: 42px auto; }
.article-body table { width: 100%; margin: 38px 0; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.article-body th, .article-body td { padding: 15px 18px; border-bottom: 1px solid rgba(16,43,50,.18); text-align: left; vertical-align: top; }
.article-body th { color: white; background: var(--ink); font: 700 12px/1.4 "Manrope", sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.article-body td:first-child { width: 31%; color: var(--ink); white-space: nowrap; }
.article-body tr:nth-child(even) td { background: rgba(239,225,198,.34); }
.article-body li { margin-bottom: 10px; }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-cta { padding: 85px max(24px, calc((100vw - 980px) / 2)); color: white; background: var(--ink); }
.article-cta h2 { max-width: 820px; margin: 28px 0 38px; }

footer { min-height: 170px; padding: 45px clamp(24px, 5vw, 80px); display: flex; align-items: center; gap: 50px; color: white; background: var(--ink); }
.footer-brand .brand-mark { stroke: var(--orange); }
footer > p { color: rgba(255,255,255,.56); font-size: 13px; }
.footer-meta { display: flex; gap: 22px; margin-left: auto; color: rgba(255,255,255,.56); font-size: 12px; }
.footer-meta button { padding: 0; color: inherit; background: none; border: 0; cursor: pointer; }

dialog { width: min(620px, calc(100vw - 32px)); padding: 45px; border: 0; color: var(--ink); background: var(--cream); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(16,43,50,.72); backdrop-filter: blur(4px); }
dialog h2 { font-size: 36px; letter-spacing: -1.5px; }
dialog p { line-height: 1.65; }
dialog a { color: var(--blue); text-decoration: underline; }
.dialog-close { position: absolute; right: 18px; top: 12px; border: 0; background: none; font-size: 30px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 850px) {
  .site-header nav { display: none; }
  .site-header .button { margin-left: auto; }
  h1 { letter-spacing: -3px; }
  .intro, .contact, .approach { grid-template-columns: 1fr; }
  .work-heading { grid-template-columns: 1fr; gap: 20px; }
  .product-feature { grid-template-columns: 1fr; }
  .product-preview { min-height: 430px; margin-left: 28px; }
  .insights-heading { grid-template-columns: 1fr; gap: 20px; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight-card { min-height: 280px; }
  .article-list-item { grid-template-columns: 1fr 42px; }
  .article-list-item.has-image { grid-template-columns: minmax(120px, 190px) 1fr 42px; }
  .article-list-item .insight-meta { grid-column: 1 / -1; }
  .services { grid-template-columns: 1fr; gap: 18px; }
  .service-card { min-height: auto; }
  .service-card.featured { transform: none; }
  footer { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-meta { margin-left: 0; }
}

@media (max-width: 560px) {
  .site-header { height: 72px; }
  .site-header .button { display: none; }
  .hero { min-height: calc(100svh - 72px); }
  .hero-content { margin-left: 24px; }
  h1 { font-size: 48px; letter-spacing: -2.5px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .section, .approach { padding-top: 80px; padding-bottom: 80px; }
  .intro, .contact { gap: 20px; }
  .service-card { padding: 38px 28px; }
  .product-preview { min-height: 340px; grid-template-columns: 70px 1fr; margin: 0 0 28px 20px; }
  .preview-sidebar { padding: 20px 12px; }
  .preview-sidebar strong { font-size: 0; }
  .preview-main { padding: 35px 22px; }
  .preview-stats { grid-template-columns: 1fr; }
  .preview-stats > div:last-child { display: none; }
  .listing-header { padding-top: 75px; padding-bottom: 65px; }
  .article-header { padding-top: 55px; }
  .article-back { margin-bottom: 45px; }
  .article-body h2 { font-size: 31px; }
  .article-body img { width: 100%; margin: 32px auto; }
  .article-body { overflow-x: hidden; }
  .article-body table { font-size: 15px; }
  .article-body th, .article-body td { padding: 12px 10px; }
  .article-body td:first-child { width: 36%; white-space: normal; }
  .article-list-item { grid-template-columns: 1fr 42px; }
  .article-list-item.has-image { grid-template-columns: 1fr 42px; }
  .article-list-image { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
