/*
Theme Name: TechyPeak Studio
Theme URI: https://techypeak.local/
Author: TechyPeak
Description: An AI-forward IT consulting theme for TechyPeak.
Version: 3.9.2
Text Domain: techypeak-studio
*/

:root {
  --paper: #f7f7f1;
  --ink: #151716;
  --blue: #2455ff;
  --blue-deep: #1839be;
  --lime: #b9ff1c;
  --line: rgba(20, 22, 21, .22);
  --line-soft: rgba(20, 22, 21, .1);
  --muted: #696b68;
  --panel: rgba(255, 255, 255, .56);
  --panel-strong: #fcfcf8;
  --display: "Courier New", Courier, monospace;
  --body: Georgia, "Times New Roman", serif;
  --shadow: 7px 7px 0 rgba(36, 85, 255, .12);
}

body.tp-night {
  --paper: #0e1012;
  --ink: #edf0e9;
  --blue: #91a9ff;
  --blue-deep: #cbd5ff;
  --lime: #c8ff4c;
  --line: rgba(237, 240, 233, .27);
  --line-soft: rgba(237, 240, 233, .12);
  --muted: #a7aba3;
  --panel: rgba(24, 28, 32, .78);
  --panel-strong: #15181c;
  --shadow: 7px 7px 0 rgba(200, 255, 76, .12);
}

body.tp-night { background-image: radial-gradient(rgba(237, 240, 233, .12) 1px, transparent 1px); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(36, 85, 255, .14) 1px, transparent 1px);
  background-size: 16px 16px;
  background-attachment: fixed;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  transition: background-color .22s ease, color .22s ease;
}
body, .site-header, .site-footer, .system-card, .ai-console, .service-card, .catalog-shell, .filter-control, .catalog-table, .contact-panel, .cta-frame { transition: background-color .22s ease, color .22s ease, border-color .22s ease; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.tp-shell { width: min(1360px, calc(100% - 48px)); margin: 0 auto; }
.tp-mono { font-family: var(--display); letter-spacing: .04em; }
.tp-kicker { margin: 0; color: var(--blue); font: 800 12px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.tp-eyebrow { color: var(--muted); font: 700 12px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 91%, transparent); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 26px; }
.site-branding { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; text-decoration: none; font: 800 16px/1 var(--display); letter-spacing: .05em; }
.brand-emblem { display: block; width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.site-navigation { display: flex; flex: 1; justify-content: flex-end; align-items: center; gap: clamp(12px, 2vw, 23px); }
.site-navigation a { padding: 7px 0; border-bottom: 1px solid transparent; text-decoration: none; font: 800 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.site-navigation a:hover, .site-navigation a:focus-visible { border-color: var(--blue); color: var(--blue); outline: none; }
.tp-theme-toggle, .menu-toggle { flex: 0 0 auto; min-width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 800 18px/1 var(--display); }
.tp-theme-toggle { display: grid; place-items: center; }
.mode-icon { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.mode-icon-moon { display: none; }
body.tp-night .mode-icon-sun { display: none; }
body.tp-night .mode-icon-moon { display: block; }
.tp-theme-toggle:hover, .tp-theme-toggle:focus-visible { background: var(--ink); color: var(--paper); outline: 0; }
.menu-toggle { display: none; padding: 0 11px; font-size: 12px; letter-spacing: .07em; }

/* Shared controls */
.tp-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; padding: 10px 15px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 800 11px/1 var(--display); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.tp-button:hover, .tp-button:focus-visible { transform: translate(-3px, -3px); background: var(--panel-strong); box-shadow: 4px 4px 0 var(--blue); outline: none; }
.tp-button.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.tp-button.primary:hover, .tp-button.primary:focus-visible { box-shadow: 4px 4px 0 var(--lime); }
.tp-button .arrow { font-size: 17px; line-height: .6; }

/* Homepage hero */
.tp-hero { display: grid; grid-template-columns: 1.12fr .88fr; column-gap: clamp(38px, 6.5vw, 110px); row-gap: 0; align-items: center; min-height: 640px; padding: 38px 0 44px; }
.tp-hero > .hero-copy-wrap,
.tp-hero > .ai-console { align-self: start; }
.hero-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; margin-bottom: 36px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font: 800 9px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.tp-hero h1, .page-hero h1 { max-width: 820px; margin: 0; color: var(--blue); font: 900 clamp(52px, 7.4vw, 114px)/.9 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.tp-hero h1 span, .page-hero h1 span { display: block; color: var(--ink); }
.hero-copy { max-width: 620px; margin: 30px 0 25px; font-size: clamp(19px, 2vw, 25px); line-height: 1.37; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.hero-notes strong { color: var(--ink); font-family: var(--display); }

.ai-console { position: relative; overflow: hidden; min-height: 452px; padding: 21px; border: 1px solid var(--blue); background: var(--panel); box-shadow: var(--shadow); }
.ai-console::after { content: ""; position: absolute; right: -90px; top: -85px; width: 235px; height: 235px; border: 1px solid var(--blue); border-radius: 50%; opacity: .35; }
.console-topline, .card-label { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font: 800 9px/1 var(--display); letter-spacing: .13em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border: 1px solid var(--ink); background: var(--lime); }
.console-meter { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 30px 0 17px; }
.console-stat { min-height: 88px; padding: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-strong) 75%, transparent); }
.console-stat span { display: block; color: var(--muted); font: 800 9px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.console-stat strong { display: block; margin-top: 14px; color: var(--blue); font: 800 26px/1 var(--display); letter-spacing: -.07em; }
.system-diagram { position: relative; z-index: 1; display: block; width: 100%; height: 225px; margin: 0; }
.ai-console figcaption { position: relative; z-index: 1; max-width: 390px; font-size: 15px; line-height: 1.4; }

/* Moving display */
.tp-ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); color: var(--paper); }
.ticker-track { display: flex; width: max-content; min-width: 200%; padding: 15px 0; animation: techypeak-marquee 28s linear infinite; }
.ticker-track span { padding: 0 27px; font: 800 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ticker-track b { color: var(--lime); font-weight: 400; }
@keyframes techypeak-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* General sections */
.tp-section { padding: 108px 0; }
.section-head { display: grid; grid-template-columns: .75fr 1.25fr; gap: 42px; align-items: end; margin-bottom: 42px; }
.section-head h2 { margin: 11px 0 0; font: 900 clamp(33px, 4.9vw, 71px)/.94 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.section-intro { max-width: 620px; margin: 0; font-size: 20px; line-height: 1.43; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.service-card { display: flex; min-height: 300px; flex-direction: column; padding: 22px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: color-mix(in srgb, var(--panel) 62%, transparent); transition: background .2s ease, transform .2s ease; }
.service-card:hover { position: relative; z-index: 1; background: color-mix(in srgb, var(--lime) 34%, var(--paper)); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--blue); }
.service-number { color: var(--blue); font: 800 13px/1 var(--display); }
.service-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: 42px; border: 1px solid var(--blue); color: var(--blue); font: 800 19px/1 var(--display); }
.service-card h3 { margin: 22px 0 12px; font: 900 25px/1.04 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.service-card p { margin: 0; color: color-mix(in srgb, var(--ink) 83%, var(--paper)); font-size: 16px; }

/* Process */
.process-wrap { border-top: 1px solid var(--ink); }
.process-item { display: grid; grid-template-columns: 94px .8fr 1.2fr auto; gap: 28px; align-items: baseline; padding: 27px 0; border-bottom: 1px solid var(--line); }
.process-number { color: var(--blue); font: 800 14px/1 var(--display); }
.process-item h3 { margin: 0; font: 900 clamp(21px, 3vw, 33px)/1 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.process-item p { max-width: 500px; margin: 0; }
.process-symbol { position: relative; width: 24px; height: 24px; border: 1px solid var(--blue); }
.process-symbol::after { content: "+"; position: absolute; inset: 1px; color: var(--blue); font: 22px/18px var(--display); text-align: center; }

/* Content and CTA */
.insight-section { background: var(--ink); color: var(--paper); }
.insight-section .tp-kicker { color: var(--lime); }
.insight-section h2 { color: #fff; }
body.tp-night .insight-section h2 { color: var(--paper); }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.25); }
.insight-card { display: flex; min-height: 282px; flex-direction: column; padding: 24px; background: var(--ink); color: var(--paper); text-decoration: none; transition: background .2s ease; }
.insight-card:hover { background: #222831; }
.insight-type { color: var(--lime); font: 800 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.insight-card h3 { margin: auto 0 16px; font: 900 27px/1.06 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.insight-footer { display: flex; justify-content: space-between; color: #c9cdc4; font: 800 12px/1 var(--display); letter-spacing: .07em; }
.tp-cta { padding: 105px 0 100px; }
.cta-frame { position: relative; padding: clamp(31px, 6vw, 76px); border: 1px solid var(--blue); background: color-mix(in srgb, var(--blue) 6%, var(--paper)); }
.cta-frame::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--blue) 0 7px, transparent 7px 14px); }
.cta-frame h2 { max-width: 920px; margin: 14px 0 25px; font: 900 clamp(40px, 7vw, 94px)/.93 var(--display); letter-spacing: -.08em; text-transform: uppercase; }
.cta-frame p { max-width: 670px; margin: 0 0 28px; font-size: 20px; }

/* Catalog / downloads page */
.page-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 40px; padding-bottom: 11px; border-bottom: 1px solid var(--line); color: var(--muted); font: 800 9px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.page-hero { padding: 38px 0 46px; }
.blog-page-shell { padding-top: 34px; }
.page-hero .page-deck { max-width: 700px; margin: 27px 0 0; font-size: 20px; }
.catalog-shell { border-top: 1px solid var(--ink); }
.catalog-toolbar { display: grid; grid-template-columns: minmax(230px, 1fr) 190px 190px; gap: 10px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.filter-control { display: flex; align-items: center; min-height: 46px; border: 1px solid var(--line); background: var(--panel); }
.filter-control label { padding: 0 10px; color: var(--muted); font: 800 9px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.filter-control input, .filter-control select { width: 100%; height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 700 12px/1 var(--display); }
.filter-control input { padding-right: 12px; }
.catalog-status { display: flex; justify-content: space-between; gap: 15px; padding: 15px 0; color: var(--muted); font: 800 12px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.catalog-table { overflow: auto; border: 1px solid var(--ink); background: var(--panel); }
.catalog-table table { width: 100%; border-collapse: collapse; min-width: 740px; }
.catalog-table th { padding: 13px 15px; border-bottom: 1px solid var(--ink); color: var(--muted); background: color-mix(in srgb, var(--panel-strong) 65%, transparent); font: 800 12px/1 var(--display); letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.catalog-table td { padding: 17px 15px; border-bottom: 1px solid var(--line-soft); font-size: 15px; vertical-align: middle; }
.catalog-table tbody tr { transition: background .18s ease; }
.catalog-table tbody tr:hover { background: color-mix(in srgb, var(--lime) 20%, transparent); }
.catalog-table tbody tr:last-child td { border-bottom: 0; }
.catalog-code, .catalog-kind, .catalog-status-tag { font: 800 11px/1 var(--display); letter-spacing: .04em; }
.catalog-code { color: var(--blue); }
.catalog-kind { color: var(--muted); }
.catalog-status-tag { display: inline-block; padding: 6px 8px; border: 1px solid var(--line); color: var(--ink); text-transform: uppercase; }
.catalog-link { color: var(--blue); font: 800 12px/1 var(--display); text-decoration: none; }
.catalog-link:hover { text-decoration: underline; }
.catalog-empty { display: none; padding: 34px 15px; color: var(--muted); font: 800 12px var(--display); text-align: center; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; align-items: start; padding: 20px 0 112px; }
.contact-notes { padding-top: 16px; border-top: 1px solid var(--line); }
.contact-notes p { max-width: 420px; margin: 14px 0 0; font-size: 18px; }
.contact-details { margin-top: 35px; }
.contact-details a { color: var(--blue); text-decoration-thickness: 1px; }
.contact-panel { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--blue); background: var(--panel); box-shadow: var(--shadow); }
.contact-panel h2 { margin: 0 0 13px; font: 900 clamp(29px, 4vw, 50px)/.95 var(--display); letter-spacing: -.065em; text-transform: uppercase; }
.contact-panel > p { margin: 0 0 24px; font-size: 18px; }
.contact-placeholder { padding: 25px; border: 1px dashed var(--line); background: color-mix(in srgb, var(--blue) 5%, transparent); }
.contact-placeholder strong { display: block; color: var(--blue); font: 900 13px/1.3 var(--display); text-transform: uppercase; }
.contact-placeholder p { margin: 9px 0 0; font-size: 15px; }
.contact-panel .wpcf7-form p { margin: 0 0 17px; font: 800 12px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.contact-panel .wpcf7 input:not([type=submit]), .contact-panel .wpcf7 textarea, .contact-panel .wpcf7 select { width: 100%; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: var(--paper); color: var(--ink); font: 16px var(--body); }
.contact-panel .wpcf7 textarea { min-height: 140px; resize: vertical; }
.contact-panel .wpcf7 input[type=submit] { min-height: 43px; padding: 10px 15px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font: 800 11px var(--display); letter-spacing: .05em; text-transform: uppercase; }

/* Social links */
.contact-socials { display: flex; gap: 9px; margin-top: 26px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; border: 1px solid var(--line); color: var(--ink); transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease; }
.social-link:hover, .social-link:focus-visible { border-color: var(--blue); background: var(--blue); color: #fff; transform: translate(-2px, -2px); outline: none; box-shadow: 3px 3px 0 var(--lime); }
.social-link svg { width: 20px; height: 20px; fill: currentColor; }
.footer-socials { display: flex; align-items: center; gap: 9px; }
.site-footer .social-link { width: 35px; height: 35px; }
.site-footer .social-link svg { width: 17px; height: 17px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; align-items: center; min-height: 96px; }
.footer-left { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 800 12px/1.5 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.footer-emblem { display: block; width: 15px; height: 15px; flex: 0 0 15px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(14px, 2.2vw, 33px); }
.footer-links a { color: var(--ink); font: 800 12px/1 var(--display); letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--blue); outline: none; }

@media (max-width: 1030px) {
  .site-navigation { gap: 14px; }
  .site-navigation a { font-size: 9px; }
  .tp-hero { grid-template-columns: 1fr; min-height: auto; }
  .ai-console { max-width: 700px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 840px) {
  .tp-shell { width: min(100% - 32px, 1360px); }
  .header-inner { min-height: 62px; }
  .site-navigation { display: none; }
  .site-navigation.is-open { position: absolute; top: 62px; right: 0; left: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 17px 22px; padding: 19px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-navigation.is-open a { font-size: 12px; }
  .menu-toggle { display: block; margin-left: auto; }
  .tp-theme-toggle, .menu-toggle { height: 42px; min-width: 42px; }
  .tp-hero { column-gap: 35px; row-gap: 0; padding: 38px 0 52px; }
  .tp-hero h1, .page-hero h1 { font-size: clamp(50px, 13vw, 91px); }
  .service-grid, .insight-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 230px; }
  .service-icon { margin-top: 30px; }
  .process-item { grid-template-columns: 65px 1fr auto; gap: 16px; }
  .process-item p { grid-column: 2 / 4; }
  .catalog-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-meta { font-size: 8px; }
  .page-meta { margin-bottom: 30px; font-size: 8px; }
  .hero-copy, .section-intro, .cta-frame p { font-size: 18px; }
  .console-meter { grid-template-columns: 1fr; }
  .ai-console { min-height: auto; }
  .system-diagram { height: 190px; }
  .tp-section { padding: 74px 0; }
  .blog-page-shell { padding-top: 34px; }
  .process-item { grid-template-columns: 52px 1fr auto; }
  .process-item h3 { font-size: 22px; }
  .footer-inner { display: block; padding: 26px 0; }
  .footer-links { justify-content: flex-start; margin-top: 21px; }
  .footer-socials { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .tp-button, .service-card { transition: none; }
}

/* Ali Tahri résumé page */
.resume-hero { padding: 58px 0 48px; }
.resume-hero-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 40px; padding-bottom: 11px; border-bottom: 1px solid var(--line); color: var(--muted); font: 800 9px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.resume-hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: clamp(35px, 8vw, 120px); align-items: end; }
.resume-name-heading { margin: 13px 0 0; color: var(--blue); font: 900 clamp(33px, 4.9vw, 71px)/.94 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.resume-summary { max-width: 670px; margin: 29px 0 25px; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; }
.resume-status-panel { padding: 20px; border: 1px solid var(--blue); background: var(--panel); box-shadow: var(--shadow); }
.resume-status-panel > p { margin: 0 0 15px; }
.resume-stat { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.resume-stat span { color: var(--muted); font: 800 12px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.resume-stat strong { font: 800 13px/1.3 var(--display); text-align: right; text-transform: uppercase; }
.resume-focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.resume-focus { min-height: 265px; padding: 22px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: color-mix(in srgb, var(--panel) 62%, transparent); }
.resume-focus > span { color: var(--blue); font: 800 12px/1 var(--display); letter-spacing: .05em; }
.resume-focus h3 { margin: 52px 0 13px; font: 900 23px/1.05 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.resume-focus p { margin: 0; font-size: 15px; line-height: 1.45; }
.resume-experience { border-top: 1px solid var(--line); }
.resume-timeline { border-top: 1px solid var(--ink); }
.resume-role { display: grid; grid-template-columns: 185px .8fr 1.35fr; gap: 32px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.resume-role-date { color: var(--blue); font: 800 12px/1.55 var(--display); letter-spacing: .06em; }
.resume-role-date span { color: var(--muted); }
.resume-role .tp-eyebrow { margin: 0 0 9px; }
.resume-role h3 { margin: 0; font: 900 clamp(20px, 2.6vw, 29px)/1.03 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.resume-role > p { max-width: 560px; margin: 0; font-size: 16px; }
.resume-skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.25); }
.resume-skills-grid article { min-height: 182px; padding: 25px; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); background: var(--ink); }
.resume-skills-grid article:nth-child(2n) { border-right: 0; }
.resume-skills-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.resume-skills-grid span { color: var(--lime); font: 800 12px/1.3 var(--display); letter-spacing: .09em; text-transform: uppercase; }
.resume-skills-grid p { max-width: 570px; margin: 20px 0 0; color: var(--paper); font-size: 16px; }
.credentials-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; }
.credential-list { margin-top: 16px; border-top: 1px solid var(--ink); }
.credential-list > div { display: grid; grid-template-columns: 58px minmax(0, 1fr) 180px; gap: 12px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.credential-list span { color: var(--blue); font: 800 12px/1.2 var(--display); }
.credential-list strong { font-size: 16px; line-height: 1.25; }
.credential-list em { min-width: 0; color: var(--muted); font: italic 14px var(--body); text-align: right; }
.credential-company-hyproc { white-space: nowrap; }
.education-list { margin-top: 16px; border-top: 1px solid var(--ink); }
.education-list article { display: grid; grid-template-columns: 58px 1fr; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.education-list span { color: var(--blue); font: 800 12px/1.2 var(--display); }
.education-list h3 { margin: 0; font: 900 17px/1.2 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.education-list p { margin: 7px 0 0; color: var(--muted); font-size: 15px; white-space: nowrap; }
.resume-interest { margin-top: 37px; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.resume-interest p:last-child { margin-bottom: 0; font-size: 16px; }

@media (max-width: 1030px) {
  .resume-hero-grid, .credentials-grid { grid-template-columns: 1fr; gap: 35px; }
  .resume-status-panel { max-width: 650px; }
  .resume-focus-grid { grid-template-columns: repeat(2, 1fr); }
  .resume-role { grid-template-columns: 155px 1fr; gap: 22px; }
  .resume-role > p { grid-column: 2; }
}

@media (max-width: 640px) {
  .resume-hero { padding: 42px 0; }
  .resume-hero-meta { font-size: 8px; }
  .resume-focus-grid, .resume-skills-grid { grid-template-columns: 1fr; }
  .resume-focus h3 { margin-top: 35px; }
  .resume-skills-grid article, .resume-skills-grid article:nth-child(2n), .resume-skills-grid article:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .resume-skills-grid article:last-child { border-bottom: 0; }
  .resume-role { grid-template-columns: 1fr; gap: 12px; }
  .resume-role > p { grid-column: auto; }
  .credential-list > div { grid-template-columns: 48px 1fr; }
  .credential-list em { grid-column: 2; text-align: left; }
}

/* Expanded professional résumé content */
.resume-credential-ticker { min-height: 90px; background: #f4f4ee; color: #151716; }
.resume-credential-ticker .ticker-track { align-items: center; min-width: max-content; padding: 0; }
.credential-ticker-item { position: relative; display: inline-flex; min-width: 234px; align-items: center; justify-content: center; gap: 12px; min-height: 90px; margin-right: 22px; padding: 16px 24px; }
.credential-ticker-item img { width: 38px; height: 38px; object-fit: contain; filter: grayscale(1) contrast(1.55) brightness(.32); opacity: .94; }
.credential-ticker-label { padding: 0 !important; color: var(--blue); font: 800 16px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.credential-ticker-item::after { content: ""; position: absolute; top: 50%; right: -14px; width: 6px; height: 6px; margin: 0; border-radius: 50%; background: var(--blue); transform: translateY(-50%); }
.resume-projects { border-top: 1px solid var(--line); }
.resume-project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.resume-project-card { position: relative; display: flex; min-height: 305px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 25px; border: 1px solid var(--ink); background: var(--panel); }
.resume-project-card::before { content: ""; position: absolute; right: -48px; top: -48px; width: 165px; height: 165px; border: 1px solid var(--blue); border-radius: 50%; opacity: .28; }
.resume-project-card.featured { grid-column: span 2; min-height: 335px; background: color-mix(in srgb, var(--blue) 8%, var(--panel-strong)); }
.resume-project-card > div, .resume-project-card > p, .project-index { position: relative; z-index: 1; }
.project-date { display: inline-block; margin-bottom: 22px; padding: 7px 9px; border: 1px solid var(--line); color: var(--blue); font: 800 12px/1 var(--display); letter-spacing: .06em; }
.resume-project-card .tp-eyebrow { margin: 0 0 9px; }
.resume-project-card h3 { max-width: 730px; margin: 0; font: 900 clamp(24px, 3.4vw, 40px)/1.01 var(--display); letter-spacing: -.065em; text-transform: uppercase; }
.resume-project-card > p { max-width: 670px; margin: 28px 0 0; font-size: 17px; }
.project-index { align-self: flex-end; color: var(--blue); font: 900 30px/1 var(--display); letter-spacing: -.08em; }
.resume-volunteering { border-top: 1px solid var(--line); }
.resume-community-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.resume-community-grid article { min-height: 230px; padding: 23px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: color-mix(in srgb, var(--panel) 65%, transparent); }
.resume-community-grid span { color: var(--blue); font: 800 12px/1 var(--display); letter-spacing: .06em; }
.resume-community-grid h3 { margin: 43px 0 9px; font: 900 26px/1 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.resume-community-grid p { margin: 0 0 13px; font-size: 17px; }
.resume-community-grid em { color: var(--muted); font: italic 14px/1.4 var(--body); }

@media (max-width: 840px) {
  .resume-project-grid { grid-template-columns: 1fr; }
  .resume-project-card.featured { grid-column: auto; }
  .resume-community-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .education-list p { white-space: normal; }
  .resume-mobile-project .project-store-button { width: 36px; height: 36px; }

  .credential-company-hyproc { white-space: nowrap; }
  .credential-ticker-item { min-width: 188px; min-height: 76px; gap: 9px; margin-right: 16px; padding: 12px 14px; }
  .credential-ticker-item img { width: 30px; height: 30px; }
  .credential-ticker-label { font-size: 13px; letter-spacing: .10em; }
  .credential-ticker-item::after { right: -10.5px; width: 5px; height: 5px; }
  .resume-project-card, .resume-project-card.featured { min-height: 280px; padding: 20px; }
  .resume-project-card > p { font-size: 16px; }
}

/* Shared Go up control */
.tp-go-up { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: grid; width: 36px; height: 36px; padding: 0; border: 1px solid var(--blue); background: var(--blue); color: #fff; box-shadow: 3px 3px 0 var(--ink); place-items: center; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease; }
.tp-go-up b { font: 400 20px/1 var(--body); }
.tp-go-up.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.tp-go-up:hover, .tp-go-up:focus-visible { box-shadow: 8px 8px 0 var(--lime); outline: none; }
body.tp-night .tp-go-up { box-shadow: 5px 5px 0 var(--lime); }
body.tp-night .tp-go-up:hover, body.tp-night .tp-go-up:focus-visible { box-shadow: 8px 8px 0 var(--paper); }

@media (max-width: 640px) {
  .tp-go-up { right: 16px; bottom: 16px; width: 31px; height: 31px; box-shadow: 3px 3px 0 var(--ink); }
  .tp-go-up b { font-size: 18px; }
}


/* Approved shared title scale for the specified website and résumé headings. */
.tp-hero h1,
.page-hero h1,
.resume-name-heading,
.section-head h2,
.cta-frame h2 {
  font-size: clamp(28px, 4.9vw, 66px);
}

/* Restore the original larger scale for the homepage-only Better systems. Brighter moves. hero. */
.tp-hero h1 {
  font-size: clamp(52px, 7.4vw, 114px);
}

@media (max-width: 840px) {
  .tp-hero h1 {
    font-size: clamp(50px, 13vw, 91px);
  }
}

/* Résumé page: retain the brand and display control without the site navigation. */
body.page-template-page-resume .header-inner {
  justify-content: space-between;
}

/* Keep the display-mode control anchored at the top-right of the shared header. */
.header-inner {
  position: relative;
  padding-right: 68px;
}
.tp-theme-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

/* Homepage project portfolio */
.projects-section .section-head { margin-bottom: 42px; }
.projects-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.28); }
.project-card { position: relative; display: flex; grid-column: span 2; min-height: 345px; flex-direction: column; overflow: hidden; padding: 25px; background: var(--ink); color: var(--paper); }
.project-card::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; pointer-events: none; transition: border-color .2s ease, background .2s ease; }
.project-card:hover::after { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 5%, transparent); }
.project-card-wide { grid-column: span 3; min-height: 315px; }
.project-card > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.project-type { color: var(--lime); font: 800 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.project-index { color: rgba(255,255,255,.45); font: 800 12px/1 var(--display); letter-spacing: .08em; }
.project-card-main { position: relative; z-index: 1; margin: auto 0 21px; }
.project-card h3 { max-width: 11ch; margin: 0 0 16px; color: #fff; font: 900 clamp(29px, 3vw, 45px)/.96 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.project-card p { max-width: 39ch; margin: 0; color: #d5d8d1; font-size: 16px; line-height: 1.42; }
.project-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 9px; }
.project-store-button { display: grid; width: 38px; height: 38px; padding: 0; border: 1px solid currentColor; place-items: center; font: 800 17px/1 var(--display); transition: transform .16s ease, box-shadow .16s ease; }
.project-store-button:not(:disabled):hover, .project-store-button:not(:disabled):focus-visible { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--lime); outline: 0; }
.project-store-button-dark { border-color: #fff; background: #fff; color: #151716; }
.project-store-button-blue { border-color: #fff; background: #fff; color: #151716; }
.project-store-button-outline { border-color: #fff; background: transparent; color: #fff; }
.project-store-button:disabled { cursor: default; opacity: 1; }
.store-mark { display: block; width: 20px; height: 20px; object-fit: contain; }
.store-mark-apple { width: 19px; height: 21px; }
.store-mark-googleplay { filter: none; }
.play-mark { display: block; width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 12px solid currentColor; }
.project-links-note { margin: 18px 0 0; color: #bcc0b8; font: 800 12px/1.35 var(--display); letter-spacing: .05em; text-transform: uppercase; }

@media (max-width: 980px) {
  .project-card { grid-column: span 3; }
  .project-card-wide { grid-column: span 3; }
}

/* Résumé project headings */
.resume-project-heading { position: relative; z-index: 1; }
.resume-project-category { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin: 0 0 16px; color: var(--blue); font: 800 12px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.resume-project-category time { color: var(--muted); font: italic 14px/1 var(--body); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.resume-mobile-project .project-actions { align-self: flex-start; margin-top: auto; }
.resume-mobile-project .project-store-button-dark, .resume-mobile-project .project-store-button-blue { border-color: var(--ink); background: var(--panel-strong); color: var(--ink); }

@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card, .project-card-wide { grid-column: auto; min-height: 310px; padding: 24px; }
  .project-card h3 { font-size: clamp(30px, 10vw, 45px); }
  .project-card p { font-size: 16px; }
}


/* YouTube channel page */
.youtube-hero .page-deck { max-width: 760px; }
.youtube-actions { margin-top: 28px; }
.youtube-cta { min-width: 190px; }
.youtube-button-icon { display: block; width: 18px; height: 18px; fill: currentColor; }
.youtube-playlist-icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.youtube-overview { padding-top: 0; padding-bottom: 8px; }
.youtube-overview-frame { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; padding: 25px; border: 1px solid var(--blue); background: var(--panel); box-shadow: var(--shadow); }
.youtube-overview-copy { max-width: 600px; margin: 16px 0 0; font-size: 18px; line-height: 1.42; }
.youtube-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.youtube-stats div { min-height: 86px; padding: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-strong) 75%, transparent); }
.youtube-stats dt { color: var(--muted); font: 800 9px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.youtube-stats dd { margin: 16px 0 0; color: var(--blue); font: 800 28px/1 var(--display); letter-spacing: -.06em; }
.youtube-section { padding-top: 76px; padding-bottom: 76px; }
.youtube-section-head .tp-button { margin-top: 20px; }
.youtube-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.youtube-video-card { display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--ink); background: var(--panel); transition: transform .18s ease, box-shadow .18s ease; }
.youtube-video-card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--blue); }
.youtube-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.youtube-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.youtube-video-card:hover .youtube-thumb img { transform: scale(1.035); }
.youtube-thumb-play { position: absolute; right: 15px; bottom: 15px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); }
.youtube-thumb-play svg { width: 18px; height: 18px; fill: currentColor; }
.youtube-video-body { display: flex; min-height: 242px; flex: 1; flex-direction: column; padding: 22px; }
.youtube-video-body h3 { max-width: 17ch; margin: 10px 0 0; font: 900 clamp(25px, 3.1vw, 40px)/1.02 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.youtube-video-meta { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.youtube-watch-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: auto; padding-top: 22px; color: var(--blue); font: 800 11px/1 var(--display); letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.youtube-watch-link:hover, .youtube-watch-link:focus-visible { color: var(--ink); outline: 0; }
.youtube-watch-link span { font-size: 16px; }
.youtube-cta-section { padding-top: 40px; }

@media (max-width: 840px) {
  .youtube-overview-frame { grid-template-columns: 1fr; }
  .youtube-video-body { min-height: 225px; }
}

@media (max-width: 560px) {
  .youtube-actions { display: grid; grid-template-columns: 1fr; }
  .youtube-cta { width: 100%; }
  .youtube-overview-frame { padding: 20px; }
  .youtube-stats { grid-template-columns: 1fr; }
  .youtube-section { padding-top: 54px; padding-bottom: 54px; }
  .youtube-video-grid { grid-template-columns: 1fr; }
  .youtube-video-body { min-height: 240px; padding: 18px; }
  .youtube-video-body h3 { font-size: 28px; }
}

/* Site-wide title scale: 15px below the previous approved sizes */
.tp-hero h1,
.page-hero h1 {
  font-size: clamp(42px, 7.4vw, 104px);
}
.section-head h2,
.resume-name-heading {
  font-size: clamp(23px, 4.9vw, 61px);
}
.cta-frame h2 {
  font-size: clamp(30px, 7vw, 84px);
}
.youtube-video-body h3 {
  font-size: clamp(15px, 3.1vw, 30px);
}

@media (max-width: 840px) {
  .tp-hero h1,
  .page-hero h1 {
    font-size: clamp(40px, 13vw, 81px);
  }
}

@media (max-width: 560px) {
  .youtube-video-body h3 {
    font-size: 18px;
  }
}

/* YouTube section headings: restored 23px–61px fluid scale */
.youtube-section-head h2 {
  font-size: clamp(23px, calc(4.9vw - 5px), 61px);
}

/* Title color splits and controlled wrapping */
.page-hero h1.title-split .title-tail {
  display: inline;
  color: var(--ink);
}
.page-hero h1#contact-page-title .title-tail {
  white-space: nowrap;
}

/* Home hero title: two separate one-line segments at the agreed responsive size */
.tp-hero h1.home-page-title {
  font-size: clamp(30px, 7.4vw, 94px);
  white-space: nowrap;
}

/* Requested top-page titles: visibly 10px smaller */
.tp-hero h1.top-title,
.page-hero h1.top-title,
.blog-page-shell h1.top-title {
  font-size: clamp(12px, calc(7.4vw - 30px), 74px);
}
.page-hero h1.one-line-title,
.blog-page-shell h1.one-line-title {
  white-space: nowrap;
}
.page-hero h1.one-line-title span,
.blog-page-shell h1.one-line-title span {
  display: inline;
}

@media (max-width: 840px) {
  .tp-hero h1.top-title,
  .page-hero h1.top-title,
  .blog-page-shell h1.top-title {
    font-size: clamp(30px, calc(13vw - 20px), 71px);
  }
}

/* Contact title: 5px smaller than the shared top-title scale */
.page-hero h1#contact-page-title {
  font-size: clamp(12px, calc(7.4vw - 30px), 74px);
}

@media (max-width: 840px) {
  .page-hero h1#contact-page-title {
    font-size: clamp(30px, calc(13vw - 20px), 71px);
  }
}

/* Selected Projects: keep the complete section dark when dark mode is active. */
body.tp-night .projects-section {
  background: var(--paper);
  color: var(--ink);
}
body.tp-night .projects-section h2 {
  color: var(--ink);
}
body.tp-night .projects-section .section-intro {
  color: var(--muted);
}
body.tp-night .projects-section .projects-grid {
  border-color: rgba(237, 240, 233, .28);
  background: rgba(237, 240, 233, .28);
}
body.tp-night .projects-section .project-card {
  background: var(--panel-strong);
  color: var(--ink);
}
body.tp-night .projects-section .project-card h3 {
  color: var(--ink);
}
body.tp-night .projects-section .project-card p {
  color: var(--muted);
}
body.tp-night .projects-section .project-index {
  color: rgba(237, 240, 233, .45);
}
body.tp-night .projects-section .project-store-button-outline {
  border-color: var(--ink);
  color: var(--ink);
}

/* Selected Projects: the section stays dark in both display modes. */
.projects-section,
body.tp-night .projects-section {
  background: #151716;
  color: #f7f7f1;
}
.projects-section h2,
body.tp-night .projects-section h2 {
  color: #f7f7f1;
}
.projects-section .section-intro,
body.tp-night .projects-section .section-intro {
  color: #d5d8d1;
}
.projects-section .projects-grid,
body.tp-night .projects-section .projects-grid {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .28);
}
.projects-section .project-card,
body.tp-night .projects-section .project-card {
  background: #151716;
  color: #f7f7f1;
}
.projects-section .project-card h3,
body.tp-night .projects-section .project-card h3 {
  color: #fff;
}
.projects-section .project-card p,
body.tp-night .projects-section .project-card p {
  color: #d5d8d1;
}
.projects-section .project-index,
body.tp-night .projects-section .project-index {
  color: rgba(255, 255, 255, .45);
}
.projects-section .project-store-button-outline,
body.tp-night .projects-section .project-store-button-outline {
  border-color: #fff;
  color: #fff;
}

/* Website-only accent preview: replace blue with TechyPeak red; résumé stays blue. */
body:not(.page-template-page-resume) {
  --blue: #DE3A3A;
  --blue-deep: #DE3A3A;
  --shadow: 7px 7px 0 rgba(222, 58, 58, .15);
}
body.tp-night:not(.page-template-page-resume) {
  --blue: #DE3A3A;
  --blue-deep: #DE3A3A;
  --shadow: 7px 7px 0 rgba(222, 58, 58, .18);
}

/* Résumé exception: restore its original blue accent while the rest of the website previews red. */
body.page-id-6234 {
  --blue: #2455ff;
  --blue-deep: #1839be;
  --shadow: 7px 7px 0 rgba(36, 85, 255, .12);
}
body.tp-night.page-id-6234 {
  --blue: #91a9ff;
  --blue-deep: #cbd5ff;
  --shadow: 7px 7px 0 rgba(200, 255, 76, .12);
}

/* Website buttons: darker red button treatment; résumé keeps its original blue. */
body:not(.page-id-6234) .tp-button.primary {
  border-color: #AB2D2D;
  background: #AB2D2D;
}
body:not(.page-id-6234) .tp-button.primary:hover,
body:not(.page-id-6234) .tp-button.primary:focus-visible {
  border-color: #AB2D2D;
  background: #AB2D2D;
}

/* YouTube video cards: match the green Selected Projects kicker accent. */
.youtube-watch-link,
.youtube-watch-link:hover,
.youtube-watch-link:focus-visible {
  color: var(--lime);
}

/* Website Go Up control: use the darker button red; résumé remains blue. */
body:not(.page-id-6234) .tp-go-up {
  border-color: #AB2D2D;
  background: #AB2D2D;
}

/* Homepage Selected Projects titles: 10px smaller; résumé project titles are unaffected. */
.projects-section .project-card h3 {
  font-size: clamp(19px, calc(3vw - 10px), 35px);
}
@media (max-width: 640px) {
  .projects-section .project-card h3 {
    font-size: clamp(20px, calc(10vw - 10px), 35px);
  }
}

/* Homepage project cards: match the 28px category-to-title spacing of the wide reference cards. */
.projects-section .project-card-main {
  margin-top: 28px;
}
.projects-section .project-actions {
  margin-top: auto;
}

/* Homepage project cards: consistent 28px bottom padding. */
.projects-section .project-card {
  padding-bottom: 28px;
}

/* Homepage project cards: exact 28px gap from description to action buttons. */
.projects-section .project-card-main {
  margin-bottom: 0;
}
.projects-section .project-actions {
  margin-top: 28px;
}

/* Homepage project cards: align marked space heights to the two-line AutoFuel layout. */
.projects-section .project-card h3 {
  min-height: calc(2 * .96em);
}
.projects-section .project-card-main p {
  min-height: calc(3 * 1.42em);
}


/* Support page: YouTube-inspired editorial layout. */
.support-hero .page-deck { max-width: 760px; }
.support-overview { padding-top: 0; padding-bottom: 8px; }
.support-overview-frame { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; padding: 25px; border: 1px solid var(--blue); background: var(--panel); box-shadow: var(--shadow); }
.support-overview-copy { max-width: 600px; margin: 16px 0 0; font-size: 18px; line-height: 1.42; }
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.support-actions .tp-button { min-width: 190px; }
.support-status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.support-status-grid div { min-height: 112px; padding: 17px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-strong) 75%, transparent); }
.support-status-grid dt { color: var(--muted); font: 800 10px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.support-status-grid dd { margin: 22px 0 0; color: var(--blue); font: 800 clamp(22px, 2.3vw, 32px)/1 var(--display); letter-spacing: -.06em; }
.support-section, .support-steps-section { padding-top: 76px; padding-bottom: 76px; }
.support-section-head { display: grid; grid-template-columns: 1fr .8fr; gap: 32px; align-items: end; margin-bottom: 30px; }
.support-section-head h2 { max-width: 15ch; margin: 12px 0 0; font: 900 clamp(30px, 4.9vw, 66px)/.93 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.support-section-head .section-intro { max-width: 520px; margin: 0; }
.support-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.support-card { display: flex; min-height: 360px; flex-direction: column; padding: 22px; border: 1px solid var(--ink); background: var(--panel); transition: transform .18s ease, box-shadow .18s ease; }
.support-card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--blue); }
.support-card h3 { max-width: 11ch; margin: 12px 0 0; font: 900 clamp(25px, 2.8vw, 38px)/.98 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.support-card > p:not(.tp-eyebrow) { margin: 18px 0 0; font-size: 16px; line-height: 1.42; }
.support-card ul { display: grid; gap: 9px; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.support-card li { position: relative; padding-left: 16px; color: var(--muted); font: 800 11px/1.25 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.support-card li::before { position: absolute; top: .36em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); content: ""; }
.support-steps-section { border-top: 1px solid var(--line-soft); }
.support-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.support-step { min-height: 220px; padding: 22px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 86%, var(--paper)); }
.support-step > span { color: var(--blue); font: 800 13px/1 var(--display); letter-spacing: .08em; }
.support-step h3 { margin: 40px 0 0; font: 900 clamp(26px, 3vw, 42px)/.95 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.support-step p { max-width: 32ch; margin: 16px 0 0; color: var(--muted); }
.support-cta-section { padding-top: 40px; }
.support-cta-section .cta-frame { max-width: none; }
@media (max-width: 960px) {
  .support-card-grid { grid-template-columns: repeat(2, 1fr); }
  .support-card { min-height: 330px; }
}
@media (max-width: 840px) {
  .support-overview-frame { grid-template-columns: 1fr; }
  .support-section-head { grid-template-columns: 1fr; gap: 18px; }
  .support-section-head h2 { max-width: 18ch; }
}
@media (max-width: 560px) {
  .support-overview-frame { padding: 20px; }
  .support-actions { display: grid; grid-template-columns: 1fr; }
  .support-actions .tp-button { width: 100%; }
  .support-status-grid, .support-card-grid, .support-steps-grid { grid-template-columns: 1fr; }
  .support-section, .support-steps-section { padding-top: 54px; padding-bottom: 54px; }
  .support-card { min-height: 320px; padding: 18px; }
  .support-step { min-height: 190px; padding: 18px; }
}

/* Requested desktop title top padding: 30px on Home, Downloads, Support, YouTube, and Contact. */
@media (min-width: 841px) {
  body.home .tp-hero,
  body.page-id-4260 .page-hero,
  body.page-id-5391 .page-hero,
  body.page-id-6242 .page-hero,
  body.page-id-1822 .page-hero {
    padding-top: 30px;
  }
}
/* Résumé operational-details section: fixed black surface in both display modes. */
body.page-id-6234 .insight-section {
  background: #151716;
  color: #f4f4ee;
}
body.page-id-6234 .insight-section .section-intro,
body.page-id-6234 .insight-section .resume-skills-grid p {
  color: #f4f4ee;
}
body.page-id-6234 .insight-section .resume-skills-grid,
body.page-id-6234 .insight-section .resume-skills-grid article {
  background: #151716;
  color: #f4f4ee;
}
body.page-id-6234 .insight-section h2 {
  color: #ffffff;
}
/* Contact Form 7 Submit CTA matches the homepage Start a conversation button. */
.contact-panel .wpcf7 input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px 15px;
  border: 1px solid #AB2D2D;
  border-radius: 0;
  background: #AB2D2D;
  color: #fff;
  font: 800 11px/1 var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.contact-panel .wpcf7 input[type=submit]:hover,
.contact-panel .wpcf7 input[type=submit]:focus-visible {
  border-color: #AB2D2D;
  background: #AB2D2D;
  color: #fff;
  outline: none;
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--lime);
}
/* Contact Form 7 Submit CTA matches the homepage Start a conversation button. */
.contact-panel .wpcf7 input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px 15px;
  border: 1px solid #AB2D2D;
  border-radius: 0;
  background: #AB2D2D;
  color: #fff;
  font: 800 11px/1 var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.contact-panel .wpcf7 input[type=submit]:hover,
.contact-panel .wpcf7 input[type=submit]:focus-visible {
  border-color: #AB2D2D;
  background: #AB2D2D;
  color: #fff;
  outline: none;
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--lime);
}
/* Contact Form 7 renders Submit as an input, so place the CTA arrow on its wrapper. */
.contact-panel .wpcf7-form p:has(> input[type=submit]) {
  position: relative;
  display: inline-block;
  margin-bottom: 0;
}
.contact-panel .wpcf7-form p:has(> input[type=submit])::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 15px;
  color: #fff;
  font: 400 17px/.6 var(--body);
  pointer-events: none;
  transform: translateY(-50%);
}
.contact-panel .wpcf7-form p:has(> input[type=submit]) input[type=submit] {
  padding-right: 38px;
}
/* Contact Form 7 Submit CTA matches the homepage Start a conversation button. */
.contact-panel .wpcf7 input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px 15px;
  border: 1px solid #AB2D2D;
  border-radius: 0;
  background: #AB2D2D;
  color: #fff;
  font: 800 11px/1 var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.contact-panel .wpcf7 input[type=submit]:hover,
.contact-panel .wpcf7 input[type=submit]:focus-visible {
  border-color: #AB2D2D;
  background: #AB2D2D;
  color: #fff;
  outline: none;
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--lime);
}
/* Contact Form 7 renders Submit as an input, so place the CTA arrow on its wrapper. */
.contact-panel .wpcf7-form p:has(> input[type=submit]) {
  position: relative;
  display: inline-block;
  margin-bottom: 0;
}
.contact-panel .wpcf7-form p:has(> input[type=submit])::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 15px;
  color: #fff;
  font: 400 17px/.6 var(--body);
  pointer-events: none;
  transform: translateY(-50%);
}
.contact-panel .wpcf7-form p:has(> input[type=submit]) input[type=submit] {
  padding-right: 38px;
}
@media (max-width: 560px) {
  .contact-panel .wpcf7-form p:has(> input[type=submit]) {
    margin-bottom: 20px;
  }
}
/* Compact Contact Form 7 Submit CTA: approximately half-size with centered label. */
.contact-panel .wpcf7-form p:has(> input[type=submit]) input[type=submit] {
  width: 50px;
  min-width: 50px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  text-align: center;
  font-size: 7px;
  line-height: 1;
  letter-spacing: .03em;
}
.contact-panel .wpcf7-form p:has(> input[type=submit])::after {
  right: 6px;
  font-size: 10px;
}
/* Contact Form 7 Submit CTA: approximately 50% larger than the original control. */
.contact-panel .wpcf7-form p:has(> input[type=submit]) input[type=submit] {
  width: 150px;
  min-width: 150px;
  height: 65px;
  min-height: 65px;
  padding: 0;
  text-align: center;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .05em;
}
.contact-panel .wpcf7-form p:has(> input[type=submit])::after {
  right: 15px;
  font-size: 17px;
}
/* Contact Form 7 Submit CTA: exact requested dimensions. */
.contact-panel .wpcf7-form p:has(> input[type=submit]) input[type=submit] {
  width: 150px;
  min-width: 150px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  text-align: center;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .05em;
}
.contact-panel .wpcf7-form p:has(> input[type=submit])::after {
  right: 15px;
  font-size: 17px;
}
/* Keep a clear gap between the Submit CTA and Cloudflare Turnstile at every viewport width. */
.contact-panel .wpcf7-form p:has(> input[type=submit]) {
  margin-bottom: 20px;
}
/* Keep all three Home hero notes on one line on small screens. */
@media (max-width: 560px) {
  .hero-notes {
    flex-wrap: nowrap;
    gap: clamp(3px, 1.5vw, 6px);
    width: 100%;
    font-size: clamp(9px, 2.8vw, 11px);
    letter-spacing: -.03em;
  }
  .hero-notes span {
    flex: 0 1 auto;
    white-space: nowrap;
  }
}
/* Restore the original 14px hero-note size while keeping the notes on one mobile row. */
@media (max-width: 560px) {
  .hero-notes {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    font-size: 14px;
    letter-spacing: normal;
  }
  .hero-notes span {
    flex: 0 1 auto;
    white-space: nowrap;
  }
}
/* Match the top and bottom spacing around the Home hero notes. */
.hero-notes {
  margin-top: 30px;
  margin-bottom: 30px;
}
/* AutoCare privacy title: split the title on mobile and make the second line black. */
#autocare-privacy-title .privacy-title-tail {
  color: var(--ink);
}

@media (max-width: 840px) {
  #autocare-privacy-title {
    white-space: normal;
    max-width: 100%;
    line-height: .94;
  }
  #autocare-privacy-title .privacy-title-main,
  #autocare-privacy-title .privacy-title-tail {
    display: block;
    white-space: nowrap;
  }
}
/* AutoCare privacy title: split the title on mobile and make the second line black. */
#autocare-privacy-title .privacy-title-main {
  color: var(--blue);
}
#autocare-privacy-title .privacy-title-tail {
  color: var(--ink);
}

@media (max-width: 840px) {
  #autocare-privacy-title {
    white-space: normal;
    max-width: 100%;
    line-height: .94;
  }
  #autocare-privacy-title .privacy-title-main,
  #autocare-privacy-title .privacy-title-tail {
    display: block;
    white-space: nowrap;
  }
}
/* AutoCare Companion promotional page */
.autocare-app-page { overflow: hidden; }
.autocare-app-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 42px; align-items: center; padding-top: 54px; padding-bottom: 68px; }
.autocare-app-hero h1 { max-width: 10ch; margin: 14px 0 22px; color: var(--blue); font: 900 clamp(48px, 7.1vw, 102px)/.91 var(--display); letter-spacing: -.08em; text-transform: uppercase; }
.autocare-app-lead { max-width: 560px; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 25px); line-height: 1.35; }
.autocare-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.autocare-store-cta { display: inline-flex; align-items: center; gap: 11px; min-width: 180px; min-height: 56px; padding: 9px 15px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; box-shadow: 5px 5px 0 rgba(0,0,0,.14); transition: transform .18s ease, box-shadow .18s ease; }
.autocare-store-cta:hover { color: var(--paper); transform: translate(-2px,-2px); box-shadow: 8px 8px 0 rgba(0,0,0,.18); }
.autocare-store-cta img { width: 27px; height: 27px; object-fit: contain; filter: brightness(0) invert(1); }
.autocare-store-cta span { display: grid; font: 800 17px/1 var(--display); letter-spacing: -.03em; }
.autocare-store-cta small { margin-bottom: 4px; font: 700 8px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.autocare-store-google { border-color: var(--blue); background: var(--blue); }
.autocare-store-google img { width: 29px; }
.autocare-privacy-cta { min-height: 56px; }
.autocare-app-hero-media { padding: 14px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.autocare-app-video { display: block; width: 100%; max-height: 620px; object-fit: cover; background: #101311; }\n.autocare-app-youtube { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 620px; overflow: hidden; background: #101311; }\n.autocare-app-youtube iframe { display: block; width: 100%; height: 100%; border: 0; }
.autocare-app-intro { display: grid; grid-template-columns: 1fr .8fr; gap: 32px; align-items: end; padding-top: 74px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.autocare-app-intro h2, .autocare-app-final-cta h2 { max-width: 14ch; margin: 12px 0 0; font: 900 clamp(34px, 5.4vw, 76px)/.93 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.autocare-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 22px; padding-bottom: 86px; }
.autocare-feature-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: center; min-height: 390px; padding: 22px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.autocare-feature-copy h3 { margin: 16px 0 14px; color: var(--blue); font: 900 clamp(26px, 3.4vw, 48px)/.94 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.autocare-feature-copy p { margin: 0; color: var(--muted); line-height: 1.42; }
.autocare-feature-card > img { display: block; width: 100%; max-height: 470px; object-fit: contain; border: 1px solid var(--line); background: #eaf8f7; }
.autocare-app-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: center; padding-top: 76px; padding-bottom: 76px; border-top: 1px solid var(--line); }
.autocare-app-split-copy h2 { max-width: 14ch; margin: 12px 0 20px; font: 900 clamp(34px, 5vw, 72px)/.93 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.autocare-app-split-copy p:not(.tp-kicker) { max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.45; }
.autocare-app-split > img { display: block; width: min(100%, 650px); max-height: 680px; object-fit: contain; margin-inline: auto; border: 1px solid var(--line); background: #eaf8f7; }
.autocare-app-gallery { padding-top: 76px; padding-bottom: 76px; border-top: 1px solid var(--line); }
.autocare-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.autocare-gallery-grid img { display: block; width: 100%; height: 410px; object-fit: contain; border: 1px solid var(--line); background: var(--panel); }
.autocare-gallery-grid img:first-child { object-fit: contain; padding: 24px; }
.autocare-app-final-cta { margin-bottom: 78px; padding: 42px; border: 1px solid var(--blue); background: var(--panel); box-shadow: var(--shadow); }
.autocare-app-final-cta h2 { max-width: 16ch; }
.autocare-app-final-cta > p:not(.tp-kicker) { max-width: 580px; color: var(--muted); font-size: 18px; line-height: 1.42; }
@media (max-width: 840px) {
  .autocare-app-hero, .autocare-app-intro, .autocare-app-split { grid-template-columns: 1fr; }
  .autocare-app-hero h1 { max-width: 12ch; font-size: clamp(46px, 13vw, 82px); }
  .autocare-app-hero-media { max-width: 680px; }
  .autocare-feature-grid { grid-template-columns: 1fr; }
  .autocare-feature-card { grid-template-columns: .8fr 1.2fr; }
  .autocare-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .autocare-gallery-grid img { height: 290px; }
}
@media (max-width: 560px) {
  .autocare-app-hero { padding-top: 34px; padding-bottom: 48px; }
  .autocare-app-hero h1 { font-size: clamp(42px, 14vw, 68px); }
  .autocare-app-actions { align-items: stretch; }
  .autocare-store-cta { flex: 1 1 145px; min-width: 0; min-height: 52px; padding: 8px 10px; }
  .autocare-store-cta span { font-size: 14px; }
  .autocare-privacy-cta { flex: 1 1 100%; justify-content: center; }
  .autocare-feature-card { grid-template-columns: 1fr; padding: 16px; }
  .autocare-feature-card > img { max-height: 520px; }
  .autocare-app-split, .autocare-app-gallery { padding-top: 52px; padding-bottom: 52px; }
  .autocare-gallery-grid { grid-template-columns: 1fr; }
  .autocare-gallery-grid img { height: auto; max-height: 520px; }
  .autocare-app-final-cta { margin-bottom: 52px; padding: 24px; }
}
/* AutoCare Companion: larger square YouTube preview */
.autocare-app-hero { grid-template-columns: minmax(0, .72fr) minmax(500px, 1.28fr); gap: 48px; }
.autocare-app-hero-media { width: 100%; max-width: none; }
.autocare-app-youtube { aspect-ratio: 1 / 1; max-height: none; }
@media (max-width: 840px) {
  .autocare-app-hero { grid-template-columns: 1fr; }
  .autocare-app-hero-media { max-width: 680px; }
  .autocare-app-youtube { aspect-ratio: 1 / 1; }
}
@media (max-width: 560px) {
  .autocare-app-youtube { aspect-ratio: 1 / 1; }
}
/* AutoCare Companion: smaller square local preview */
.autocare-app-hero-media { width: min(100%, 500px); max-width: 500px; justify-self: end; }
@media (max-width: 840px) {
  .autocare-app-hero-media { width: 100%; max-width: 500px; justify-self: start; }
}
@media (max-width: 560px) {
  .autocare-app-hero-media { width: 100%; max-width: none; }
}

/* AutoCare Companion: iPhone Air-style preview frame */
.autocare-iphone-air { position: relative; width: min(100%, 320px); margin-inline: auto; padding: 10px; border: 1px solid rgba(22,24,28,.42); border-radius: 46px; background: linear-gradient(145deg, #f7f8fa 0%, #c8ccd2 34%, #8b9098 70%, #eef0f3 100%); box-shadow: 0 28px 54px rgba(16,19,17,.22), inset 1px 1px 0 rgba(255,255,255,.9), inset -2px -2px 0 rgba(38,42,48,.34); }
.autocare-iphone-screen { position: relative; overflow: hidden; width: 100%; aspect-ratio: 9 / 19.5; border: 2px solid #17191c; border-radius: 38px; background: #101311; box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), 0 0 0 1px rgba(255,255,255,.48); }
.autocare-iphone-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 12px 0 18px rgba(255,255,255,.08), inset -10px 0 18px rgba(0,0,0,.18); z-index: 3; }
.autocare-iphone-dynamic-island { position: absolute; z-index: 5; top: 10px; left: 50%; width: 34%; height: 24px; transform: translateX(-50%); border-radius: 999px; background: #050607; box-shadow: inset 0 1px 1px rgba(255,255,255,.12), 0 1px 2px rgba(0,0,0,.45); }
.autocare-iphone-dynamic-island::after { content: ""; position: absolute; top: 8px; right: 13px; width: 5px; height: 5px; border-radius: 50%; background: #11151a; box-shadow: inset 0 0 0 1px rgba(83,104,126,.5); }
.autocare-app-video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; background: #101311; }
.autocare-iphone-button { position: absolute; z-index: 0; display: block; width: 3px; border-radius: 3px 0 0 3px; background: linear-gradient(#7b8189,#d9dde1,#7d838b); box-shadow: -1px 0 1px rgba(255,255,255,.6), 1px 0 1px rgba(0,0,0,.3); }
.autocare-iphone-button-silent { top: 84px; left: -3px; height: 22px; }
.autocare-iphone-button-volume-up { top: 128px; left: -3px; height: 42px; }
.autocare-iphone-button-volume-down { top: 180px; left: -3px; height: 42px; }
.autocare-iphone-button-power { top: 148px; right: -3px; height: 68px; border-radius: 0 3px 3px 0; }
@media (max-width: 840px) {
  .autocare-iphone-air { width: min(100%, 320px); margin-inline: 0; }
}
@media (max-width: 560px) {
  .autocare-iphone-air { width: min(100%, 300px); margin-inline: auto; padding: 9px; border-radius: 42px; }
  .autocare-iphone-screen { border-radius: 35px; }
}
/* AutoCare Companion hero title: match the Home hero scale in two single-line segments */
.autocare-app-hero h1 { max-width: none; font-size: clamp(30px, 7.4vw, 94px); white-space: nowrap; }
.autocare-app-hero h1 span { white-space: nowrap; }
@media (max-width: 840px) {
  .autocare-app-hero h1 { font-size: clamp(30px, 7.4vw, 94px); }
}/* AutoCare Companion: remove the external hero card around the phone */
.autocare-app-hero-media { padding: 0; border: 0; background: transparent; box-shadow: none; display: flex; justify-content: flex-end; }
@media (max-width: 840px) {
  .autocare-app-hero-media { justify-content: flex-start; }
  .autocare-iphone-air { margin-inline: auto; }
}

/* AutoCare Companion: black iPhone Air-style finish */
.autocare-iphone-air { border-color: #020304; background: linear-gradient(145deg, #30343a 0%, #121519 30%, #030405 68%, #24282e 100%); box-shadow: 0 28px 54px rgba(0,0,0,.34), inset 1px 1px 0 rgba(255,255,255,.18), inset -2px -2px 0 rgba(0,0,0,.75); }
.autocare-iphone-screen { border-color: #050608; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 1px rgba(0,0,0,.85); }
.autocare-iphone-button { background: linear-gradient(#050608, #555b64 48%, #0a0c0f); box-shadow: -1px 0 1px rgba(255,255,255,.16), 1px 0 1px rgba(0,0,0,.85); }/* AutoCare Companion: clean black Dynamic Island overlay */
.autocare-iphone-dynamic-island { top: 16px; left: 50%; z-index: 8; width: 44%; height: 32px; background: #000; box-shadow: inset 0 1px 1px rgba(255,255,255,.08), 0 1px 3px rgba(0,0,0,.65); }
.autocare-iphone-dynamic-island::after { display: none; content: none; }
/* AutoCare Companion: align Privacy Policy with store CTAs */
.autocare-app-actions { flex-wrap: nowrap; }
.autocare-privacy-cta { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; min-height: 56px; padding: 9px 15px; border: 1px solid var(--ink); box-shadow: 5px 5px 0 rgba(0,0,0,.14); }
@media (max-width: 840px) {
  .autocare-app-actions { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .autocare-app-actions { align-items: stretch; }
  .autocare-privacy-cta { flex: 1 1 145px; min-width: 0; min-height: 52px; padding: 8px 10px; }
}

/* Primary navigation: Projects menu and restored Blog link */
.nav-projects { position: relative; }
.nav-projects-toggle { padding: 7px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--ink); font: 800 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.nav-projects-toggle:hover, .nav-projects-toggle:focus-visible { border-color: var(--blue); color: var(--blue); outline: none; }
.nav-projects-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; display: grid; min-width: 190px; gap: 2px; padding: 8px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.nav-projects-menu[hidden] { display: none; }
.nav-projects-menu a { display: block; padding: 10px 11px; border-bottom: 0; color: var(--ink); font-size: 11px; }
.nav-projects-menu a:hover, .nav-projects-menu a:focus-visible { background: var(--ink); color: var(--paper); }
@media (max-width: 1030px) {
  .nav-projects-toggle { font-size: 9px; }
}
@media (max-width: 840px) {
  .nav-projects { flex: 0 0 auto; }
  .nav-projects-toggle { font-size: 12px; }
  .nav-projects-menu { position: static; min-width: 100%; margin-top: 8px; padding: 4px 0 0 14px; border: 0; box-shadow: none; background: transparent; }
  .nav-projects-menu a { padding: 8px 0; font-size: 12px; }
  .nav-projects-menu a:hover, .nav-projects-menu a:focus-visible { background: transparent; color: var(--blue); }
}
/* Blog feature article */
.blog-feature-article { max-width: 980px; margin-top: 42px; padding: 32px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.blog-feature-meta { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.blog-article-tag { color: var(--muted); font: 800 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.blog-feature-article h2 { max-width: 18ch; margin: 28px 0 18px; color: var(--blue); font: 900 clamp(34px, 5vw, 70px)/.94 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.blog-feature-lead { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2vw, 24px); line-height: 1.42; }
.blog-video-link { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 32px 0 42px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.blog-video-link .tp-kicker { margin-right: auto; }
.blog-article-body { max-width: 760px; }
.blog-article-body h3 { margin: 34px 0 10px; color: var(--ink); font: 900 clamp(22px, 2.7vw, 34px)/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.blog-article-body p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.blog-article-endnote { margin-top: 44px; padding: 22px; border-left: 3px solid var(--blue); background: color-mix(in srgb, var(--panel-strong) 72%, transparent); }
.blog-article-endnote p + p { margin-top: 10px; }
@media (max-width: 560px) {
  .blog-feature-article { margin-top: 28px; padding: 20px; }
  .blog-feature-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .blog-feature-article h2 { margin-top: 22px; font-size: clamp(30px, 10vw, 52px); }
  .blog-feature-lead, .blog-article-body p { font-size: 17px; }
  .blog-video-link { align-items: flex-start; flex-direction: column; }
  .blog-video-link .tp-kicker { margin-right: 0; }
  .blog-video-link .tp-button { width: 100%; justify-content: center; }
}
/* Blog cards: four-column layout for expandable article library */
.blog-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 42px; }
.blog-card { min-height: 280px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.blog-card-meta { display: flex; justify-content: space-between; width: 100%; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font: 800 10px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.blog-card-meta span:first-child { color: var(--blue); }
.blog-card h2 { margin: 28px 0 12px; color: var(--blue); font: 900 25px/1.02 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.blog-card p { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.blog-card .tp-button { margin-top: auto; }
.blog-article-detail { max-width: 880px; }
.blog-article-detail .blog-feature-lead { max-width: 760px; }
.blog-article-detail .blog-article-body h2 { margin: 34px 0 10px; color: var(--ink); font: 900 clamp(22px, 2.7vw, 34px)/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
@media (max-width: 1030px) { .blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .blog-card-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .blog-card { min-height: 0; padding: 20px; }
  .blog-card h2 { font-size: 23px; }
  .blog-card p { font-size: 17px; }
}
/* Let the Blog card library use the full page-deck width. */
.blog-page-shell .page-deck { max-width: none; }
/* Expand only the Blog page deck for the four-column article library. */
.page-id-4566 .page-deck { max-width: none; }

/* Blog reference layout: three equal cards across the desktop page. */
.blog-page-shell .page-deck { max-width: none; }
.blog-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; margin-top: 48px; }
.blog-card { min-height: 460px; padding: 18px; }
.blog-card h2 { margin-top: 22px; font-size: 25px; }
.blog-card p { max-width: 34ch; margin-top: 20px; }
.blog-card .tp-button { align-self: flex-end; }
@media (max-width: 1030px) { .blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 560px) {
  .blog-card-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  .blog-card { min-height: 360px; padding: 20px; }
}
/* Dedicated Windows 10 article: compact two-line title. */
.article-title-two { display: flex; flex-direction: column; gap: .04em; max-width: 26ch; margin: 0; color: var(--accent); font-size: clamp(34px, 4.3vw, 68px); line-height: .94; letter-spacing: -.055em; text-transform: uppercase; white-space: normal; }
.article-title-two span { display: block; white-space: nowrap; }
@media (max-width: 840px) { .article-title-two { max-width: 100%; font-size: clamp(30px, 7.4vw, 60px); } }
@media (max-width: 560px) { .article-title-two { font-size: clamp(27px, 8.8vw, 46px); } .article-title-two span { white-space: normal; } }
/* Refined two-line break for the Windows 10 article title. */
.article-title-two { width: min(100%, 1160px); max-width: 1160px; font-size: clamp(30px, 4vw, 62px); overflow: visible; }
.article-title-two span { display: block; width: max-content; max-width: 100%; white-space: nowrap !important; }
@media (max-width: 840px) { .article-title-two { width: 100%; max-width: 100%; font-size: clamp(28px, 6.4vw, 52px); } }
@media (max-width: 560px) { .article-title-two { font-size: clamp(24px, 8.2vw, 42px); } .article-title-two span { width: auto; white-space: normal !important; } }
/* Final compact two-line article title sizing. */
.article-title-two { width: 100% !important; max-width: none !important; font-size: clamp(22px, 2.4vw, 48px) !important; line-height: .96; overflow: visible; }
.article-title-two span { width: max-content !important; max-width: none !important; white-space: nowrap !important; }
@media (max-width: 560px) { .article-title-two { font-size: clamp(20px, 6.5vw, 34px) !important; } .article-title-two span { width: auto !important; max-width: 100% !important; white-space: normal !important; } }
/* Requested final size for the Windows 10 article title. */
.article-title-two { font-size: clamp(22px, 2.4vw, 40px) !important; }
@media (max-width: 560px) { .article-title-two { font-size: clamp(18px, 6.5vw, 30px) !important; } }
/* Highest-priority Windows 10 article title size correction. */
.page-hero h1.article-title-two { font-size: clamp(22px, 2.4vw, 40px) !important; }
@media (max-width: 840px) { .page-hero h1.article-title-two { font-size: clamp(22px, 2.4vw, 40px) !important; } }
@media (max-width: 560px) { .page-hero h1.article-title-two { font-size: clamp(18px, 6.5vw, 30px) !important; } }
/* Correct selector: the article heading uses article-title-two-line. */
.page-hero h1.article-title-two-line { font-size: clamp(22px, 2.4vw, 40px) !important; }
@media (max-width: 840px) { .page-hero h1.article-title-two-line { font-size: clamp(22px, 2.4vw, 40px) !important; } }
@media (max-width: 560px) { .page-hero h1.article-title-two-line { font-size: clamp(18px, 6.5vw, 30px) !important; } }
/* Smaller numbered headings for the Windows 10 / Parallels article. */
.blog-article-body h2.article-step-title,
.blog-article-detail h2.article-step-title { font-size: clamp(24px, 2.35vw, 30px) !important; line-height: 1.02; }
@media (max-width: 560px) {
  .blog-article-body h2.article-step-title,
  .blog-article-detail h2.article-step-title { font-size: clamp(20px, 6vw, 27px) !important; line-height: 1.05; }
}
/* Target only numbered steps 1–6: the second through seventh H2s. */
.blog-article-body h2:nth-of-type(n+2):nth-of-type(-n+7) { font-size: clamp(24px, 2.35vw, 30px) !important; line-height: 1.02; }
@media (max-width: 560px) {
  .blog-article-body h2:nth-of-type(n+2):nth-of-type(-n+7) { font-size: clamp(20px, 6vw, 27px) !important; line-height: 1.05; }
}
/* Global numbered article sections 1–6: requested smaller scale. */
.blog-article-body h2:nth-of-type(n+2):nth-of-type(-n+7),
.blog-article-detail h2:nth-of-type(n+2):nth-of-type(-n+7) { font-size: clamp(18px, 2.35vw, 22px) !important; line-height: 1.08; }
@media (max-width: 560px) {
  .blog-article-body h2:nth-of-type(n+2):nth-of-type(-n+7),
  .blog-article-detail h2:nth-of-type(n+2):nth-of-type(-n+7) { font-size: clamp(16px, 6vw, 21px) !important; line-height: 1.12; }
}
/* Revised mobile scale for numbered article sections 1–6. */
@media (max-width: 560px) {
  .blog-article-body h2:nth-of-type(n+2):nth-of-type(-n+7),
  .blog-article-detail h2:nth-of-type(n+2):nth-of-type(-n+7) { font-size: clamp(16px, 4.5vw, 21px) !important; }
}/* Open the Projects submenu on desktop hover and keyboard focus. */
@media (hover: hover) and (pointer: fine) {
  .nav-projects:hover .nav-projects-menu[hidden],
  .nav-projects:focus-within .nav-projects-menu[hidden] {
    display: grid;
  }
  .nav-projects:hover .nav-projects-toggle,
  .nav-projects:focus-within .nav-projects-toggle {
    border-color: var(--blue);
    color: var(--blue);
  }
}
/* Finson app page additions. */
.finson-app-hero { align-items: center; }
.finson-app-hero-copy { min-width: 0; }
.finson-app-hero h1 { max-width: 15ch; }
.finson-app-hero h1 span { display: block; }
.finson-app-hero-media { align-self: center; }
.finson-iphone-air { background: linear-gradient(145deg, #25282d 0%, #08090b 36%, #000 72%, #171a1f 100%); border-color: #020304; box-shadow: 0 28px 54px rgba(0,0,0,.42), inset 1px 1px 0 rgba(255,255,255,.12), inset -2px -2px 0 rgba(0,0,0,.8); }
.finson-iphone-air .autocare-iphone-screen { background: #050607; border-color: #000; }
.finson-app-intro { display: grid; grid-template-columns: .75fr 1fr; gap: 44px; align-items: end; padding-top: 72px; padding-bottom: 36px; }
.finson-app-intro h2 { margin: 0; color: var(--ink); font: 900 clamp(30px, 4.5vw, 66px)/.95 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.finson-app-intro p:last-child { max-width: 58ch; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.finson-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finson-feature-grid .autocare-feature-card { min-height: 0; }
.finson-feature-grid .autocare-feature-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.finson-app-split { margin-top: 22px; }
.finson-final-cta { margin-top: 28px; }
.finson-privacy-content { padding-top: 0; padding-bottom: 92px; }
.privacy-card { max-width: 900px; margin: 0 auto; padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.privacy-card p { max-width: 72ch; margin: 0 0 18px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.privacy-card .privacy-effective { color: var(--ink); font: 800 12px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.privacy-card h2 { margin: 34px 0 10px; color: var(--ink); font: 900 clamp(22px, 2.8vw, 34px)/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.privacy-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 840px) {
  .finson-app-intro { grid-template-columns: 1fr; gap: 18px; padding-top: 52px; }
  .finson-feature-grid { grid-template-columns: 1fr; }
  .finson-feature-grid .autocare-feature-card img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .finson-app-hero h1 { max-width: none; }
  .finson-app-hero h1 span { display: inline; }
  .finson-app-intro h2 { font-size: clamp(30px, 9vw, 48px); }
  .privacy-card { padding: 22px 18px; }
  .privacy-card p { font-size: 17px; }
}
/* Finson hero correction: metadata across the top, copy left, phone preview right. */
.finson-app-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr) !important;
  grid-template-areas:
    "meta meta"
    "copy media" !important;
  align-items: center;
  gap: 42px 54px;
}
.finson-app-hero > .page-meta { grid-area: meta; }
.finson-app-hero > .finson-app-hero-copy { grid-area: copy; }
.finson-app-hero > .finson-app-hero-media {
  grid-area: media;
  justify-self: end;
  align-self: center;
  width: min(100%, 390px);
  max-width: 390px;
}
.finson-app-hero .finson-iphone-air { width: 100%; }
@media (max-width: 840px) {
  .finson-app-hero {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "meta"
      "copy"
      "media" !important;
    gap: 28px;
  }
  .finson-app-hero > .finson-app-hero-media {
    width: min(100%, 420px);
    max-width: 420px;
    justify-self: center;
  }
}
@media (max-width: 560px) {
  .finson-app-hero { gap: 22px; }
  .finson-app-hero > .finson-app-hero-media { width: 100%; max-width: 320px; }
}
/* Finson hero correction: metadata across the top, copy left, phone preview right. */
.finson-app-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr) !important;
  grid-template-areas:
    "meta meta"
    "copy media" !important;
  align-items: center;
  gap: 42px 54px;
}
.finson-app-hero > .page-meta { grid-area: meta; }
.finson-app-hero > .autocare-app-hero-copy { grid-area: copy; }
.finson-app-hero > .finson-app-hero-media {
  grid-area: media;
  justify-self: end;
  align-self: center;
  width: min(100%, 390px);
  max-width: 390px;
}
.finson-app-hero .finson-iphone-air { width: 100%; }
@media (max-width: 840px) {
  .finson-app-hero {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "meta"
      "copy"
      "media" !important;
    gap: 28px;
  }
  .finson-app-hero > .finson-app-hero-media {
    width: min(100%, 420px);
    max-width: 420px;
    justify-self: center;
  }
}
@media (max-width: 560px) {
  .finson-app-hero { gap: 22px; }
  .finson-app-hero > .finson-app-hero-media { width: 100%; max-width: 320px; }
}
/* Finson mobile viewport correction. */
@media (max-width: 560px) {
  .finson-app-hero {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-inline: 16px;
    box-sizing: border-box;
  }
  .finson-app-hero > .autocare-app-hero-copy {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .finson-app-hero h1,
  .finson-app-hero h1.top-title {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0;
    font-size: clamp(38px, 10.5vw, 68px) !important;
    line-height: .94;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .finson-app-hero h1 span {
    display: block !important;
    max-width: 100%;
    white-space: normal !important;
  }
  .finson-app-hero .page-deck {
    width: 100%;
    max-width: 100%;
    font-size: 18px;
    line-height: 1.42;
    overflow-wrap: break-word;
  }
  .finson-app-hero .finson-app-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 10px;
    margin-top: 24px;
  }
  .finson-app-hero .finson-app-actions > .autocare-store-cta,
  .finson-app-hero .finson-app-actions > .autocare-privacy-cta {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  .finson-app-hero .finson-app-actions > .autocare-privacy-cta {
    grid-column: 1 / -1;
  }
  .finson-app-hero .autocare-store-cta {
    min-height: 54px;
    padding: 8px 9px;
    gap: 7px;
  }
  .finson-app-hero .autocare-store-cta img { width: 24px; height: 24px; }
  .finson-app-hero .autocare-store-cta span { font-size: 13px; }
  .finson-app-hero .autocare-store-cta small { font-size: 7px; letter-spacing: .05em; }
  .finson-app-hero > .finson-app-hero-media {
    width: min(100%, 320px);
    max-width: 320px;
    min-width: 0;
    overflow: hidden;
  }
}
