/* Driftline Digital: a quieter, content-led layout in the existing navy/blue palette. */
:root {
  --bg: #080e18; --bg-alt: #0c1522; --bg-card: #101b2b; --bg-card-2: #142136;
  --text: #f4f7fb; --text-muted: #c0ccdb; --border: #263447; --accent: #3b82f6;
  --accent2: #55bafa; --accent-hover: #8fcfff; --radius: 4px; --radius-lg: 6px;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --section-pad: clamp(56px, 7vw, 94px); --header-h: 80px;
}
body { line-height: 1.7; }
.container { max-width: 1240px; }
h1,h2,h3 { text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.65rem); font-weight: 500; letter-spacing: -1.2px; }
p { text-wrap: pretty; }
main a:not(.btn):hover, footer a:hover { color: var(--accent-hover); }
header { background: var(--bg); border-bottom: 1px solid var(--border); }
header::before { display: none; }
header.scrolled { box-shadow: none; }
.logo { gap: 10px; letter-spacing: -.6px; font-size: 1.2rem; }
.logo-mark { filter: none; width: 27px; height: 34px; }
.logo span.grad { background: none; -webkit-text-fill-color: var(--accent2); color: var(--accent2); }
nav a.active:not(.btn) { color: var(--text); }
nav a:not(.btn)::before { display: none; }
nav a:not(.btn)::after { background: var(--accent2); }
nav a:not(.btn) { transition-delay: 0s !important; }
nav .btn { gap: 16px; }
.header-call { color: var(--text-muted); font-size: .83rem; }
.nav-toggle { border-radius: 4px; }
.btn { border-radius: 4px; min-height: 48px; padding: 12px 22px; font-weight: 600; font-size: .9rem; white-space: normal; text-align: center; box-shadow: none; transition: background .15s, border-color .15s; }
.btn-primary, .btn-primary:hover { background: #2563c9; color: #fff; box-shadow: none; transform: none; }
.btn-primary:hover { background: #2d73e1; }
.btn-ghost { background: transparent; border-color: #46586f; }
.btn-ghost:hover { background: #152339; }
.text-link { color: var(--accent2); display: inline-block; font-size: .93rem; font-weight: 600; line-height: 1.6; }
.kicker { color: var(--accent2); font-family: var(--font-body); text-transform: uppercase; font-size: .71rem; font-weight: 600; letter-spacing: 1.6px; margin-bottom: 20px; }
section[id], form[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
/* Remove decorative motion and visual noise across the existing content pages. */
#preloader, .scroll-progress, .hero-bg, .page-hero::before, .cta-section::before, .cta-section::after,
.skill-card::before, .project-card::before, .contact-card::before, .process-step::before,
.learn-teaser::before, .free-offer::before, .free-offer::after, .pricing-card::before,
.skill-icon, .contact-icon, .headshot-placeholder, .float-chip { display: none !important; }
.reveal { opacity: 1; transform: none; transition: none; }
.skill-card, .project-card, .contact-card, .process-step, .pricing-card, .learn-teaser, .free-offer {
  border-radius: 5px; box-shadow: none; background: var(--bg-card); animation: none;
}
.skill-card:hover, .project-card:hover, .contact-card:hover, .process-step:hover, .pricing-card:hover { transform: none; box-shadow: none; border-color: #536b8b; }
.project-browser { display: none; }
.project-shot img, .project-card:hover .project-shot img { transform: none; transition: none; }
.project-shot { aspect-ratio: 4/3; }
.project-body h3 { font-weight: 500; font-size: 1.25rem; }
.project-body p { font-size: .93rem; }
.tag-list span, .tech-badge { border-radius: 3px; background: transparent; }
.project-body .tag { font-family: var(--font-body); color: var(--accent2); font-size: .68rem; letter-spacing: .7px; }
.page-hero { padding: 70px 0 54px; background: var(--bg); }
.page-hero h1 { color: var(--text); background: none; -webkit-text-fill-color: var(--text); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 500; max-width: 850px; letter-spacing: -1.8px; margin-bottom: 24px; }
.page-hero .lead { max-width: 690px; font-size: 1.08rem; }
.section-header { margin-bottom: 34px; }
.section-header h2 { font-weight: 500; font-size: clamp(1.85rem, 3.4vw, 2.5rem); }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-heading-row > p { max-width: 365px; color: var(--text-muted); font-size: 1rem; }
.section-heading-row .text-link { flex-shrink: 0; }
.home-intro { padding: 0; }
.location-line { border-bottom: 1px solid var(--border); color: var(--text-muted); padding: 18px 0; font-size: .75rem; letter-spacing: .4px; }
.location-line span { color: #4c647f; margin: 0 12px; }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 66px; align-items: center; padding: 68px 0 58px; }
.intro-copy h1 { font-size: clamp(2.5rem, 4.5vw, 3.9rem); line-height: 1.12; font-weight: 500; letter-spacing: -2px; margin: 0 0 26px; }
.intro-copy h1 > span { color: var(--accent2); }
.intro-desc { color: #bdc9d8; font-size: 1.06rem; max-width: 495px; line-height: 1.8; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.intro-note { color: var(--text-muted); font-size: .79rem; margin-top: 22px; max-width: 380px; }
.intro-project { min-width: 0; margin: 0; }
.intro-project > a { display: block; border: 1px solid #3b4b60; border-radius: 4px; overflow: hidden; background: var(--bg-alt); }
.intro-project img { width: 100%; height: auto; }
.intro-project figcaption { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 0; gap: 20px; }
.intro-project figcaption strong { display: block; font-size: .85rem; font-weight: 500; }
.intro-project figcaption > a { font-size: 1.5rem; color: var(--accent2); padding: 8px; }
.work-type { color: var(--text-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; display: block; margin: 0 0 5px; }
.intro-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; font-size: .77rem; color: var(--text-muted); }
.service-row { display: grid; grid-template-columns: 48px .85fr 1fr; column-gap: 35px; padding: 34px 0; border-top: 1px solid var(--border); }
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-number { color: var(--accent2); font-family: var(--mono); font-size: .78rem; padding-top: 5px; }
.service-row h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 500; letter-spacing: -.5px; }
.service-row p { color: var(--text-muted); font-size: .96rem; margin-bottom: 16px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.work-item { min-width: 0; }
.work-image { display: block; aspect-ratio: 4/3; border: 1px solid #344358; overflow: hidden; border-radius: 3px; margin-bottom: 22px; }
.work-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-item h3 { font-size: 1.2rem; font-weight: 500; margin: 8px 0 12px; line-height: 1.4; }
.work-item h3 span { color: var(--accent2); font-size: .95rem; }
.work-item > p:last-child { color: var(--text-muted); font-size: .9rem; }
.personal-grid, .estimate-grid, .offer-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px; }
.personal-lead { color: var(--text-muted); margin: 22px 0; font-size: 1.05rem; }
.prose { color: #bdc9d8; font-size: 1.03rem; }
.prose p + p { margin-top: 20px; }
.prose .text-link, .prose .btn { margin-top: 24px; }
.estimate-grid > div > p:not(.kicker) { margin: 24px 0; color: var(--text-muted); max-width: 380px; }
.price-directory > a { display: flex; justify-content: space-between; gap: 24px; padding: 23px 0; border-bottom: 1px solid var(--border); align-items: center; }
.price-directory > a:first-child { padding-top: 0; }
.price-directory span { font-size: .9rem; color: var(--text-muted); }
.price-directory strong { font-size: 1.05rem; font-weight: 500; text-align: right; }
.price-directory small { color: var(--text-muted); font-size: .72rem; font-weight: 400; }
.price-directory > p { margin-top: 24px; color: var(--text-muted); font-size: .83rem; }
.price-directory > p a { color: var(--accent2); }
.closing-band { border-top: 1px solid var(--border); }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.closing-inner h2 { font-size: clamp(2rem,4vw,3.2rem); margin-bottom: 20px; }
.closing-inner p:not(.kicker) { color: var(--text-muted); max-width: 580px; }
.closing-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.detail-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 90px; }
.detail-intro { color: var(--text-muted); max-width: 340px; margin: 24px 0; }
.detail-items article { border-top: 1px solid var(--border); padding: 24px 0; }
.detail-items article:first-child { padding-top: 0; border-top: 0; }
.detail-items h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 10px; }
.detail-items p { color: var(--text-muted); }
.service-next { border-top: 1px solid var(--border); padding-top: 26px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.service-next > span { color: var(--text-muted); font-size: .85rem; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; }
.principles article { border-top: 1px solid var(--border); padding-top: 24px; }
.principles span { color: var(--accent2); font-family: var(--mono); font-size: .75rem; }
.principles h3 { font-size: 1.25rem; font-weight: 500; margin: 22px 0 14px; }
.principles p { color: var(--text-muted); font-size: .96rem; }
.contact-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 75px; align-items: start; }
.contact-form-card { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; max-width: none; margin: 0; }
.contact-form-card h2 { font-size: 1.8rem; }
.form-intro { color: var(--text-muted); margin: 14px 0 28px; }
.contact-form input, .contact-form textarea, .contact-form select { background: var(--bg-alt); border-radius: 4px; border-color: #45586f; font-size: 1rem; font-family: var(--font-body); }
.contact-form textarea { min-height: 150px; }
.contact-form .field label { font-size: .85rem; }
.contact-form .btn { width: auto; justify-self: start; }
.contact-sidebar { padding-left: 35px; border-left: 1px solid var(--border); }
.contact-sidebar h2 { font-size: 1.55rem; margin-bottom: 26px; }
.direct-contact { display: block; color: var(--text); font-size: 1rem; overflow-wrap: anywhere; margin: 0 0 26px; }
.direct-contact small { display: block; color: var(--text-muted); margin-bottom: 5px; font-size: .75rem; }
.aside-note { border-top: 1px solid var(--border); padding: 24px 0 0; margin-top: 24px; }
.aside-note h3 { font-weight: 500; font-size: 1rem; margin-bottom: 10px; }
.aside-note p { color: var(--text-muted); font-size: .9rem; }
.cta-section { border-radius: 5px; background: var(--bg-alt); }
.pricing-card.featured { box-shadow: none; border-color: #4268a1; }
.price-amount { color: var(--text); background: none; -webkit-text-fill-color: var(--text); }
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 24px; }
.footer-inner { padding-bottom: 36px; }
.footer-brand p { color: var(--text-muted); font-size: .85rem; margin-top: 20px; }
.footer-col h4 { color: var(--text); font-family: var(--font-body); font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { font-size: .83rem; overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .75rem; color: var(--text-muted); padding-top: 24px; }
.footer-bottom a { font-size: .75rem; }
@media(min-width:880px) { nav { gap: 26px; } nav a:not(.btn) { font-size: .82rem; } nav a.btn { padding: 10px 18px; } }
@media(max-width:1000px) { .intro-grid { gap: 36px; } .intro-copy h1 { font-size: 3rem; } .personal-grid,.estimate-grid,.detail-grid,.offer-layout { gap: 48px; } .contact-layout { gap: 40px; } }
@media(max-width:879px) {
 :root { --header-h: 70px; }
 .intro-grid { gap: 28px; grid-template-columns: 1.1fr .9fr; padding-top: 48px; }
 .intro-copy h1 { font-size: clamp(2.3rem,5vw,3rem); letter-spacing: -1.5px; }
 .intro-desc { font-size: .96rem; }
 .intro-note { font-size: .75rem; }
 .intro-actions { gap: 18px; }
 .section-heading-row { align-items: flex-start; gap: 25px; }
 .section-heading-row > p { max-width: 290px; font-size: .93rem; }
 .service-row { grid-template-columns: 32px .9fr 1fr; column-gap: 22px; }
 .work-grid { gap: 20px; }
 .work-item h3 { font-size: 1.1rem; }
 .personal-grid,.estimate-grid,.offer-layout,.detail-grid { gap: 36px; }
 .contact-layout { grid-template-columns: 1.3fr 1fr; gap: 30px; }
 .contact-sidebar { padding-left: 24px; }
 .contact-form .form-row.two { grid-template-columns: 1fr; }
 nav a:not(.btn) { opacity: 1; transform: none; }
 nav a.btn { transition-delay: 0s; }
 nav { background: var(--bg); padding-top: 10px; }
 .header-actions { margin-left: auto; }
 .footer-links { gap: 30px; }
}
@media(max-width:639px) {
 .container { padding-left: 22px; padding-right: 22px; }
 .logo { font-size: 1.04rem; gap: 7px; } .logo-mark { width: 23px; }
 .header-call { font-size: .72rem; }
 .location-line { font-size: .62rem; letter-spacing: 0; padding: 14px 0; }
 .location-line span { margin: 0 6px; }
 .intro-grid { grid-template-columns: 1fr; padding: 42px 0 28px; gap: 34px; }
 .intro-copy h1 { font-size: clamp(2.35rem,8.7vw,3.4rem); line-height: 1.14; }
 .intro-copy .kicker { font-size: .65rem; margin-bottom: 18px; letter-spacing: 1.2px; }
 .intro-desc { font-size: 1rem; }
 .intro-actions { flex-wrap: wrap; gap: 18px; margin-top: 24px; }
 .intro-note { max-width: none; font-size: .74rem; }
 .intro-project { max-width: 500px; }
 .intro-project figcaption { padding-top: 12px; }
 .intro-project figcaption strong { font-size: .78rem; }
 .intro-bottom { flex-direction: column; gap: 4px; padding: 18px 0; font-size: .75rem; }
 .section-heading-row { flex-direction: column; gap: 22px; margin-bottom: 30px; }
 .section-heading-row > p { max-width: none; }
 .service-row { grid-template-columns: 28px 1fr; gap: 14px; padding: 28px 0; }
 .service-row > div { grid-column: 2; }
 .service-row h3 { font-size: 1.4rem; } .service-row h3 br { display: none; }
 .work-grid { grid-template-columns: 1fr; gap: 36px; }
 .work-image { margin-bottom: 18px; }
 .work-item h3 { font-size: 1.25rem; }
 .personal-grid,.estimate-grid,.offer-layout,.detail-grid,.contact-layout { grid-template-columns: 1fr; gap: 30px; }
 .prose { font-size: 1rem; }
 .price-directory > a:first-child { padding-top: 20px; border-top: 1px solid var(--border); }
 .price-directory > a { gap: 14px; }
 .price-directory span { font-size: .8rem; } .price-directory strong { font-size: .95rem; }
 .closing-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
 .closing-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; }
 .page-hero { padding: 46px 0 36px; }
 .page-hero h1 { font-size: 2.65rem; letter-spacing: -1.4px; }
 .page-hero .lead { font-size: 1rem; }
 .principles { grid-template-columns: 1fr; gap: 28px; }
 .principles h3 { margin-top: 14px; }
 .contact-sidebar { border-left: 0; border-top: 1px solid var(--border); padding: 30px 0 0; }
 .contact-form .form-row.two { grid-template-columns: 1fr; }
 .footer-inner { gap: 34px; }
 .footer-links { display: grid; grid-template-columns: .75fr 1.25fr; gap: 20px; }
 .footer-col a { font-size: .78rem; }
 .footer-bottom { align-items: flex-start; }
 .offer-layout .btn { width: 100%; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none !important; transition: none !important; } }
.btn::before, .btn::after { display: none !important; }
@media(max-width:879px) { nav { transition: none; } }
/* Public navigation remains usable if JavaScript is unavailable. */
@media(max-width:879px) {
 .no-js header { position: static; }
 .no-js .header-inner { height: auto; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
 .no-js .header-actions { display: none; }
 .no-js nav { position: static; visibility: visible; opacity: 1; transform: none; flex-basis: 100%; padding: 10px 0 0; }
 .no-js nav a.btn { opacity: 1; transform: none; }
 .no-js main { padding-top: 0; }
}
.demo-split > *, .editor-grid > * { min-width: 0; }
.demo-code .code-window { max-width: 100%; }
.code-body { overflow-x: auto; }
.tab-btn { border-radius: 4px; font-family: var(--font-body); }

/* Readability: flat surfaces, brighter text, and comfortable reading sizes. */
.kicker, .project-body .tag {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #8fcfff;
}
.kicker { font-size: .8rem; letter-spacing: 1.2px; }
.free-offer, .pricing-card.featured { background: #0c1522; box-shadow: none; }
.free-offer::before, .free-offer::after, .pricing-card.featured::after { content: none; display: none !important; }
.prose, .intro-desc, .service-row p, .detail-items p, .project-body p,
.faq-body, .free-offer > p, .section-header p, .closing-inner p:not(.kicker) {
  color: #d2dce9;
  font-size: 1.0625rem;
  line-height: 1.8;
}
.free-offer > .kicker { color: #8fcfff; font-size: .8rem; }
.free-offer .fine-print, .intro-note, .form-note { color: #c0ccdb; font-size: .9375rem; line-height: 1.7; }
.project-body .tag { font-size: .75rem; }

/* Service terms use the same flat surfaces and readable text as the rest of the site. */
.footer-policy-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-policy-links a { font-size: .8125rem; }
.policy-content { max-width: 780px; color: #d2dce9; font-size: 1.0625rem; line-height: 1.8; }
.policy-content .policy-date { color: var(--text-muted); font-size: .875rem; margin-bottom: 18px; }
.policy-content .policy-scope { padding-bottom: 28px; }
.policy-content section { padding: 28px 0; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 24px); }
.policy-content h2 { font-size: clamp(1.25rem, 4vw, 1.5rem); letter-spacing: -.4px; margin-bottom: 16px; font-weight: 600; }
.policy-content p + p { margin-top: 16px; }
.policy-content a:not(.btn) { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.policy-content .btn { margin-top: 22px; }
@media(max-width:639px) { .footer-bottom { flex-wrap: wrap; } .footer-policy-links { gap: 12px 20px; } }
