@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-raised: #0d0f13;
  --panel: #12151a;
  --panel-soft: #181c22;
  --text: #f1f2f4;
  --muted: #9298a3;
  --border: #252a32;
  --line: var(--border);
  --line-strong: #414956;
  --lime: #b7ff45;
  --blue: var(--lime);
  --red: var(--lime);
  --radius: 5px;
  --shell: min(1440px, 90%);
  --display: "Space Grotesk", Inter, sans-serif;
  --ease: cubic-bezier(.2,.75,.25,1);
}
.moto-accent { --lime: #e2ffac; --red: var(--lime); }
body { font-weight: 400; }
h1, h2, h3, .brand, .package-price { font-family: var(--display); font-weight: 700; }
.button, .package-name, .filter-button { font-family: Inter, sans-serif; font-weight: 600; }
.section { padding-block: clamp(60px, 8vw, 120px); border-bottom: 1px solid var(--border); }
.section-heading { gap: clamp(20px, 5vw, 72px); margin-bottom: clamp(24px, 4vw, 56px); }
.section-heading h1, .section-heading h2, .faq-intro h2, .order-intro h2, .about-layout h2 {
  font-size: clamp(2.1rem, 5.3vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.hero h1 em, .section-heading h1 em, .section-heading h2 em, .work-section .section-heading h1 em,
.work-section .section-heading h2 em, .transformation-section .section-heading h2 em,
.process-section .section-heading h2 em, .pricing-section .section-heading h2 em,
.faq-intro h2 em, .order-intro h2 em, .about-layout em {
  display: inline;
  padding: 0;
  color: #b0b7c2;
  background: none;
  font-style: normal;
  transform: none;
}
.eyebrow { color: var(--muted); letter-spacing: .12em; font-size: .72rem; font-weight: 600; }
.site-header, .site-header.is-scrolled { background: #08090bf5; border-bottom: 1px solid var(--border); backdrop-filter: none; }
.site-header .brand { white-space: nowrap; }
.brand-mark { clip-path: none; transform: none; box-shadow: none; background: var(--panel); border: 1px solid var(--line-strong); color: var(--text); border-radius: 3px; font-weight: 700; }
.site-nav > a:not(.button) { color: var(--muted); font-weight: 500; }
.site-nav > a[aria-current], .site-nav > a:not(.button):hover { color: var(--lime); }
.site-nav .button { margin-inline-start: 8px; }
.button, .button:hover, .button-secondary, .button-secondary:hover {
  clip-path: none;
  filter: none;
  transform: none;
  border-radius: var(--radius);
  border: 1px solid var(--text);
  color: var(--bg);
  background: var(--text);
  text-transform: none;
  letter-spacing: -.01em;
}
.button:hover { background: #dbe0e6; border-color: #dbe0e6; }
.button-secondary, .button-secondary:hover { color: var(--text); background: var(--panel); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--lime); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .58; cursor: wait; }
.button:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.text-link { color: var(--text); font-weight: 600; text-transform: none; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--lime); }

.hero { min-height: auto; padding: calc(var(--header-height) + clamp(36px, 7vw, 112px)) 0 clamp(36px, 6vw, 88px); background: var(--bg); }
.hero::before { display: none; }
.hero-grid { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(32px, 5vw, 88px); min-height: 0; }
.hero-copy { padding: 0; }
.hero h1 { font-size: clamp(2.5rem, 5.35vw, 6rem); line-height: .96; letter-spacing: -.075em; }
.hero h1 > span { white-space: normal; }
.hero-subtitle { color: var(--muted); font-size: clamp(.94rem, 1.25vw, 1.1rem); max-width: 40ch; margin-bottom: 24px; }
.hero-actions .button { box-shadow: inset 3px 0 var(--lime); }
.hero-gauge { display: none; }
.hero-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 0; margin: 0; }
.hero-selector { position: static; grid-row: 1; grid-column: 1 / -1; justify-content: end; gap: 0; padding-bottom: 4px; }
.hero-selector button, .case-tabs button {
  min-height: 44px; padding: 8px 16px; color: var(--muted); background: transparent;
  border: 0; border-bottom: 2px solid var(--line); font-weight: 600;
}
.hero-selector button[aria-pressed="true"], .case-tabs button[aria-pressed="true"] {
  color: var(--text); background: transparent; border-color: var(--lime);
}
.hero-gallery .hero-card:nth-child(n) {
  position: relative; inset: auto; width: 100%; border: 1px solid var(--border); border-radius: 3px;
  box-shadow: none; transform: none; z-index: auto; background: var(--panel);
}
.hero-card:first-child { grid-column: 1 / -1; }
.hero-card img { transition: transform .3s var(--ease); }
.hero-card:hover img { transform: scale(1.025); }
.trust-strip { background: var(--bg-raised); }
.trust-line { min-height: 62px; padding-block: 8px; font-weight: 600; color: var(--muted); }
.trust-line > span + span { border-inline-start: 1px solid var(--border); }

.work-section, .faq-section, .transformation-section { background: var(--bg-raised); color: var(--text); }
.transformation-section, .pricing-section { background: var(--bg); }
.portfolio-page-section { padding-top: calc(var(--header-height) + clamp(40px, 6vw, 96px)); }
.portfolio-page-back { margin-bottom: 24px; }
.portfolio-page-section .section-heading { padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.portfolio-grid { gap: clamp(16px, 2vw, 32px); }
.portfolio-grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portfolio-grid-featured > :nth-child(-n+2) { grid-column: auto; }
.gallery-group:first-of-type .portfolio-card:nth-child(-n+2) { grid-column: span 6; }
.gallery-group:first-of-type .portfolio-card { grid-column: span 3; }
.gallery-group:first-of-type .portfolio-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.gallery-group > h2 { padding-top: 16px; border-top: 1px solid var(--border); letter-spacing: -.04em; }
.portfolio-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.portfolio-card:focus-within, .portfolio-card:hover { border-color: var(--line-strong); }
.portfolio-image { border: 0; border-radius: 3px 3px 0 0; box-shadow: none; }
.portfolio-image img { object-fit: contain; }
.portfolio-image:hover img { transform: scale(1.018); filter: none; }
.portfolio-meta { gap: 6px 12px; padding: 14px 16px 16px; }
.portfolio-meta h3 { font-size: 1.05rem; font-weight: 700; }
.portfolio-meta span { color: var(--muted); font-size: .69rem; font-weight: 500; }
.preview-prompt { left: 8px; bottom: 8px; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 3px; text-transform: none; font-weight: 500; }
.filter-bar { gap: 6px; margin-bottom: 14px; }
.type-filters { margin-top: 0; }
.filter-button { border: 1px solid transparent; border-radius: 3px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.filter-button:hover, .filter-button.is-active { color: var(--text); background: var(--panel-soft); border-color: var(--border); }
.filter-button.is-active { border-bottom-color: var(--lime); }

.transformation-stage, .transformation-card { border-radius: var(--radius); }
.transformation-stage::after { display: none; }
.comparison-handle { color: transparent; text-shadow: none; background: var(--text); pointer-events: none; }
.comparison-handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 36px; height: 36px; background: var(--panel-soft); border: 1px solid var(--text); border-radius: 50%; color: var(--text); }
.comparison-range:active { cursor: grabbing; }
.transformation-meta { padding: 16px 0; }
.comparison-notes { line-height: 1.5; }
.transformation-meta .button { min-height: 44px; color: var(--text); background: var(--panel); border-color: var(--line-strong); }
.transformation-meta .button:hover { border-color: var(--lime); }
.about-section { background: var(--panel); }
.about-layout { grid-template-columns: minmax(140px, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 6vw, 96px); }
.about-avatar { width: 100%; height: auto; aspect-ratio: 3 / 2; font: 700 clamp(2rem, 8vw, 7rem)/1 var(--display); letter-spacing: -.09em; color: var(--text); background: var(--bg-raised); }
.about-layout p:not(.eyebrow) { max-width: 56ch; color: var(--muted); }
.process-section { background: var(--bg-raised); }
.process-grid { padding-top: 12px; }
.process-grid::before { height: 1px; background: var(--line-strong); }
.process-grid::after { height: 1px; background: var(--lime); }
.process-card { padding: 24px 16px 16px; border: 0; border-inline-start: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.process-card:hover { transform: none; }
.process-card:not(:last-child)::after, .process-card:last-child::before { display: none; }
.process-card > span { color: var(--lime); font: 600 1.1rem/1 var(--display); }

.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card, .price-card.is-featured { min-height: 0; padding: clamp(16px, 2.4vw, 36px); background: var(--panel); border: 1px solid var(--border); box-shadow: none; transform: none; }
.price-card.is-featured { background: var(--panel-soft); border-top: 2px solid var(--lime); }
.price-card:hover, .price-card.is-featured:hover { transform: translateY(-2px); }
.package-price { font-size: clamp(2rem, 4vw, 4.3rem); margin-bottom: 24px; }
.price-quote { font-size: clamp(1.65rem, 3vw, 3.1rem); }
.price-card dl > div { grid-template-columns: minmax(74px,.7fr) minmax(0,1fr); gap: 8px; }
.popular-label, .price-saving { color: var(--lime); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 3px; }
.payment-note { background: var(--panel); border-left: 1px solid var(--line-strong); }
.faq-intro .eyebrow, .faq-intro > p:last-child, .faq-panel p { color: var(--muted); }
.faq-item, .faq-item:last-child { border-color: var(--line-strong); }
.faq-item button { color: var(--text); min-height: 66px; font-weight: 600; }
.faq-symbol { border-color: var(--line-strong); border-radius: 3px; }
.faq-item.is-open .faq-symbol { background: var(--panel-soft); border-color: var(--lime); color: var(--lime); }
.form-card, .deadline-calendar { background: var(--panel); box-shadow: none; }
.field input:not([type="checkbox"]), .field select, .field textarea, .deadline-trigger { background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 4px; }
.field label > span:first-of-type:not(.optional) { color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus, .deadline-trigger:focus-visible { border-color: var(--lime); box-shadow: 0 0 0 2px #b7ff4540; }
.field [aria-invalid="true"] { border-color: #ff928c !important; }
.field-error, .form-status.is-error { color: #ffaaa5; }
.form-status.is-success { color: var(--lime); }
.calendar-day.is-selected { color: var(--bg); }
.submit-button { box-shadow: none; }
.site-footer { background: var(--bg-raised); }
.site-footer::before { height: 1px; background: var(--border); }
.footer-cta h2 { letter-spacing: -.05em; }

.lightbox-dialog { width: min(1160px, 100%); background: var(--panel); border-radius: var(--radius); padding: clamp(12px, 3vw, 28px); }
.lightbox-stage { min-height: 0; border: 1px solid var(--border); border-radius: 3px; }
.lightbox-topbar h2 { font-size: clamp(1.3rem, 3vw, 2.1rem); }
.icon-button, .lightbox-nav { border-radius: 3px; font-weight: 600; background: var(--panel-soft); }
.case-details p { max-width: 70ch; line-height: 1.65; }
[data-case-sources] img { width: min(100%, 180px); object-fit: contain; background: var(--bg); }
.lightbox-controls { grid-template-columns: auto minmax(0,1fr) auto; }
.lightbox-controls .button { justify-self: center; text-align: center; }
.mobile-order-button { background: var(--text); color: var(--bg); border-radius: var(--radius); font: 600 .86rem/1 Inter, sans-serif; text-transform: none; }
.reveal { transform: translateY(12px); transition-timing-function: var(--ease); }
.reveal.is-visible { transform: none; }

@media (max-width: 1023px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-group:first-of-type .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-group:first-of-type .portfolio-card:nth-child(n) { grid-column: auto; }
}
@media (max-width: 820px) {
  .site-nav { max-height: calc(100dvh - var(--header-height)); overflow: auto; transform: translateY(-12px); opacity: 0; transition: opacity .2s, transform .2s, visibility .2s; }
  .site-nav.is-open { opacity: 1; }
  .site-nav .button { margin-inline-start: 0; }
}
@media (max-width: 767px) {
  .hero-grid, .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
  .hero-actions .button, .hero-actions .text-link { width: auto; }
  .hero-gallery { translate: none; }
  .hero-selector { justify-content: start; }
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .about-avatar { max-width: 200px; }
}
@media (max-width: 560px) {
  .portfolio-grid, .portfolio-grid-featured, .gallery-group:first-of-type .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-line > span:nth-child(3) { border-inline-start: 0; }
  .lightbox-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lightbox-controls .button { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card img, .site-nav, .reveal, .process-grid::after { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
