:root {
    --background: #090d14;
    --surface: #111827;
    --surface-light: #182231;
    --text: #f8fafc;
    --muted: #9aa8bb;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --red: #dc2626;
    --red-hover: #b91c1c;
    --border: rgba(255, 255, 255, 0.09);
    --max-width: 1180px;
    --content-width: 1100px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: var(--header-height);
    background: var(--background);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a,
button,
input,
select,
textarea {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 3px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(9, 13, 20, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, var(--max-width));
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    width: 166px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-nav a {
    padding: 8px 12px;
    color: var(--muted);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text);
}

.primary-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--blue);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero,
.page-hero,
.section {
    width: 100%;
    margin: 0;
}

.hero {
    position: relative;
    min-height: 510px;
    display: flex;
    align-items: center;
    padding: 82px max(40px, calc((100% - var(--content-width)) / 2));
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    top: -300px;
    right: -200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 68%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 800px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.hero h1,
.page-hero h1,
.success-card h1 {
    margin: 0;
    line-height: 1.02;
    letter-spacing: -1.5px;
}

.hero h1 {
    max-width: 790px;
    font-family: "Goldman", sans-serif;
    font-size: clamp(48px, 6.8vw, 76px);
}

.page-hero h1,
.success-card h1 {
    font-family: "Inter", sans-serif;
}

.hero h1 span {
    display: block;
    color: var(--blue);
}

.hero h2 {
    margin: 23px 0 0;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 600;
    letter-spacing: -0.4px;
}

.hero-description {
    max-width: 640px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-accent span {
    position: absolute;
    z-index: 1;
    display: block;
    background: var(--blue);
    border-radius: 3px;
}

.hero-accent span:nth-child(1) {
    width: 14px;
    height: 14px;
    right: 120px;
    top: 175px;
    opacity: 0.28;
}

.hero-accent span:nth-child(2) {
    width: 8px;
    height: 8px;
    right: 170px;
    top: 225px;
    opacity: 0.16;
}

.hero-accent span:nth-child(3) {
    width: 10px;
    height: 10px;
    right: 85px;
    top: 270px;
    opacity: 0.12;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.18);
}

.button-primary:hover {
    background: var(--red-hover);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    border-color: var(--border);
}

.button-secondary:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(96, 165, 250, 0.45);
}

.button-block {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-light);
    font-weight: 700;
    text-decoration: none;
}

.text-link span {
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

.section {
    padding: 68px max(40px, calc((100% - var(--content-width)) / 2));
    border-bottom: 1px solid var(--border);
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.featured-copy h2,
.cta-panel h2,
.contact-info h1,
.pricing-note-panel h2 {
    margin: 0;
    font-size: clamp(28px, 3.8vw, 38px);
    line-height: 1.16;
    letter-spacing: -1px;
}

.split-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.service-preview-grid,
.pricing-grid,
.included-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-preview-card {
    min-width: 0;
    padding: 25px;
    background: linear-gradient(145deg, rgba(24, 34, 49, 0.92), rgba(17, 24, 39, 0.76));
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.service-preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.4);
    background-color: var(--surface-light);
}

.card-number {
    display: block;
    margin-bottom: 16px;
    color: var(--blue-light);
    font-family: "Goldman", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.service-preview-card h3,
.included-grid h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.service-preview-card p,
.included-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--blue-light);
    font-size: 14px;
    font-weight: 700;
}

.featured-work {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 40px;
    align-items: center;
}

.featured-image {
    overflow: hidden;
    background: #070a0f;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

.featured-image img {
    width: 100%;
    aspect-ratio: 2048 / 990;
    object-fit: cover;
}

.featured-copy {
    min-width: 0;
}

.featured-copy p:not(.eyebrow) {
    margin: 16px 0 22px;
    color: var(--muted);
}

.included-grid article {
    min-width: 0;
    padding: 22px;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.faq-section .section-heading {
    max-width: 760px;
}

.faq-list {
    display: grid;
    gap: 10px;
    max-width: 900px;
}

.faq-page-section .faq-list {
    margin: 0 auto;
}

.faq-item {
    overflow: hidden;
    background: linear-gradient(145deg, rgba(24, 34, 49, 0.9), rgba(17, 24, 39, 0.74));
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item:hover,
.faq-item[open] {
    border-color: rgba(96, 165, 250, 0.34);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    padding: 18px 22px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--blue-light);
    font-family: "Goldman", sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: -3px;
}

.faq-answer {
    padding: 0 58px 20px 22px;
}

.faq-answer p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: min(calc(100% - 80px), var(--max-width));
    margin: 44px auto;
    padding: 42px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(17, 24, 39, 0.78));
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;
}

.cta-panel > div {
    max-width: 710px;
}

.cta-panel p:not(.eyebrow) {
    margin: 10px 0 0;
    color: var(--muted);
}

.cta-panel .button {
    flex: 0 0 auto;
}

.page-hero {
    padding: 70px max(40px, calc((100% - var(--content-width)) / 2)) 56px;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(circle at 88% 0%, rgba(59, 130, 246, 0.14), transparent 34%);
}

.page-hero h1 {
    max-width: 850px;
    font-size: clamp(38px, 5.6vw, 62px);
}

.page-hero > p:last-child {
    max-width: 700px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.pricing-grid {
    align-items: stretch;
}

.pricing-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: linear-gradient(145deg, rgba(24, 34, 49, 0.95), rgba(17, 24, 39, 0.8));
    border: 1px solid var(--border);
    border-radius: 15px;
}

.pricing-card-featured {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22);
}

.pricing-badge {
    align-self: flex-start;
    margin: -10px 0 16px;
    padding: 5px 9px;
    background: rgba(59, 130, 246, 0.13);
    color: var(--blue-light);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.pricing-name {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
}

.pricing-price {
    margin: 0 0 16px;
    font-family: "Goldman", sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
}

.pricing-price span {
    color: var(--blue-light);
    font-size: 22px;
    vertical-align: top;
}

.pricing-price .pricing-plus {
    font-size: 25px;
    vertical-align: baseline;
}

.pricing-description {
    min-height: 98px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 15px;
}

.pricing-card ul,
.project-features,
.project-tech {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-card ul {
    display: grid;
    gap: 9px;
    margin-bottom: 26px;
}

.pricing-card li,
.project-features li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
}

.pricing-card li::before,
.project-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-light);
    font-weight: 700;
}

.pricing-card .button {
    margin-top: auto;
}

.pricing-note-panel {
    max-width: 820px;
    margin: 24px auto 0;
    padding: 26px 30px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 13px;
    text-align: center;
}

.pricing-note-panel h2 {
    font-size: 23px;
}

.pricing-note-panel p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.included-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    min-width: 0;
    padding: 24px;
    background: linear-gradient(145deg, var(--surface-light), var(--surface));
    border: 1px solid var(--border);
    border-radius: 15px;
}

.project-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.6fr);
    gap: 30px;
    align-items: center;
}

.project-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.project-card > p,
.project-details > p:not(.project-kicker) {
    margin: 0 0 20px;
    color: var(--muted);
}

.project-kicker {
    margin: 0 0 8px;
    color: var(--blue-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.project-features {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech li {
    padding: 5px 9px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--blue-light);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.project-carousel {
    position: relative;
    margin-bottom: 20px;
}

.project-card-featured .project-carousel {
    margin-bottom: 0;
}

.carousel-images {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2.16 / 1;
    background: #070a0f;
    border-radius: 10px;
}

.carousel-images.featured-ratio {
    aspect-ratio: 2048 / 990;
}

.carousel-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.carousel-image.active {
    display: block;
}

.carousel-image.mobile-shot {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border: 5px solid #111318;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.carousel-prev,
.carousel-next,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(9, 13, 20, 0.82);
    color: #fff;
    border: 0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.carousel-prev,
.lightbox-prev {
    left: 10px;
}

.carousel-next,
.lightbox-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--blue);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 11px;
}

.dot {
    width: 9px;
    height: 9px;
    padding: 0;
    background: var(--muted);
    border: 0;
    border-radius: 50%;
    opacity: 0.42;
    cursor: pointer;
}

.dot.active {
    background: var(--blue);
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 46px;
    background: rgba(0, 0, 0, 0.88);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1120px;
}

#lightbox-image {
    max-width: 90%;
    max-height: 84vh;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: -46px;
    right: 10px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 34px;
    cursor: pointer;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 38px;
    align-items: start;
}

.contact-info,
.contact-form-card {
    min-width: 0;
}

.contact-info > p:not(.eyebrow) {
    margin: 16px 0 0;
    color: var(--muted);
}

.contact-detail {
    margin-top: 28px;
}

.contact-detail span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.contact-detail a,
.site-footer a {
    color: var(--blue-light);
    text-decoration: none;
}

.contact-detail a:hover,
.site-footer a:hover {
    text-decoration: underline;
}

.email-link {
    display: inline-block;
    overflow-wrap: anywhere;
}

.copy-status {
    min-height: 20px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.copy-status:empty {
    display: none;
}

.contact-copy-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-mascot-reaction {
    position: relative;
    width: 142px;
    max-width: 42%;
    margin-top: 30px;
}

.contact-mascot {
    width: 100%;
    margin: 0;
    filter: drop-shadow(0 14px 25px rgba(0, 0, 0, 0.28));
    transition: opacity 0.16s ease, transform 0.2s ease;
}

.contact-mascot-smile {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.mascot-copy-bubble {
    position: absolute;
    z-index: 2;
    top: -18px;
    left: 78%;
    width: max-content;
    max-width: 150px;
    padding: 9px 12px;
    background: var(--text);
    color: var(--background);
    border: 3px solid var(--background);
    border-radius: 7px;
    box-shadow: 4px 4px 0 var(--blue), 0 10px 24px rgba(0, 0, 0, 0.26);
    font-family: "Goldman", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px) scale(0.96);
    transform-origin: bottom left;
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.2s ease;
}

.mascot-copy-bubble::after {
    content: "";
    position: absolute;
    left: 13px;
    bottom: -9px;
    width: 12px;
    height: 12px;
    background: var(--text);
    border-right: 3px solid var(--background);
    border-bottom: 3px solid var(--background);
    transform: rotate(45deg);
}

.contact-mascot-reaction.is-copying .contact-mascot-default {
    opacity: 0;
    transform: scale(0.98);
}

.contact-mascot-reaction.is-copying .contact-mascot-smile {
    opacity: 1;
    transform: scale(1.03);
}

.contact-mascot-reaction.is-copying .mascot-copy-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.contact-form-card {
    width: min(100%, 520px);
    justify-self: end;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.form-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form-card label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.contact-form-card label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 9px 11px;
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.contact-form-card textarea {
    min-height: 96px;
    resize: vertical;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: #758298;
}

.contact-form-card button {
    margin-top: 8px;
}

.hidden-field {
    position: absolute;
    left: -9999px;
}

.success-main {
    min-height: calc(100vh - var(--header-height) - 112px);
    display: grid;
    place-items: center;
    padding: 60px 20px;
}

.success-card {
    width: min(100%, 650px);
    padding: 46px;
    background: linear-gradient(145deg, var(--surface-light), var(--surface));
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: center;
}

.success-card img {
    width: 126px;
    margin: 0 auto 24px;
}

.success-card h1 {
    font-size: clamp(32px, 5vw, 48px);
}

.success-card > p:not(.eyebrow) {
    margin: 18px 0 26px;
    color: var(--muted);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 28px 40px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer p {
    margin: 0;
}

.footer-brand-group,
.footer-contact-group {
    display: grid;
    gap: 6px;
}

.footer-contact-group {
    justify-items: end;
    text-align: right;
}

.footer-faq-link {
    font-weight: 600;
}

.footer-faq-link[aria-current="page"] {
    color: var(--text);
}

.footer-email {
    position: relative;
    min-width: 0;
    text-align: right;
}

.footer-email .copy-status {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: max-content;
    min-height: 0;
    margin: 0;
    padding: 6px 9px;
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 7px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    font-size: 12px;
    line-height: 1.2;
}

.footer-brand {
    color: var(--text) !important;
    font-family: "Goldman", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(17, 24, 39, 0.95);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 860px) {
    .header-inner {
        padding: 0 24px;
    }

    .hero,
    .page-hero,
    .section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .service-preview-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-description {
        min-height: 0;
    }

    .featured-work,
    .project-card-featured,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        justify-self: center;
    }

    .project-card-featured .project-carousel {
        margin-bottom: 4px;
    }

    .cta-panel {
        width: calc(100% - 48px);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 68px;
    }

    .header-inner {
        padding: 0 18px;
    }

    .logo img {
        width: 148px;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: grid;
        gap: 4px;
        max-height: 0;
        padding: 0 18px;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        background: rgba(9, 13, 20, 0.98);
        border-bottom: 1px solid transparent;
        transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
    }

    .site-header.nav-open .primary-nav {
        max-height: 280px;
        padding: 10px 18px 18px;
        visibility: visible;
        opacity: 1;
        border-bottom-color: var(--border);
    }

    .primary-nav a {
        padding: 10px 12px;
        font-size: 15px;
    }

    .success-nav {
        position: static;
        display: flex;
        max-height: none;
        padding: 0;
        overflow: visible;
        visibility: visible;
        opacity: 1;
        background: transparent;
        border: 0;
    }

    .hero {
        min-height: auto;
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(36px, 11.5vw, 50px);
    }

    .hero h1 span {
        overflow-wrap: anywhere;
    }

    .hero-accent {
        display: none;
    }

    .page-hero {
        padding-top: 54px;
        padding-bottom: 46px;
    }

    .page-hero h1 {
        font-size: clamp(34px, 9.8vw, 48px);
        overflow-wrap: anywhere;
    }

    .split-heading,
    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-panel {
        padding: 32px 26px;
    }

    .projects-grid,
    .included-grid {
        grid-template-columns: 1fr;
    }

    .lightbox {
        padding: 24px 12px;
    }

    #lightbox-image {
        max-width: 100%;
        max-height: 78vh;
    }

    .lightbox-close {
        top: -45px;
        right: 0;
    }

    .site-footer {
        flex-direction: column;
        gap: 16px;
        padding: 26px 18px;
        text-align: center;
    }

    .footer-brand-group,
    .footer-contact-group {
        justify-items: center;
    }

    .footer-contact-group,
    .footer-email {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .hero,
    .page-hero,
    .section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: clamp(34px, 10.8vw, 44px);
    }

    .hero-description,
    .page-hero > p:last-child {
        font-size: 16px;
    }

    .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .button-row .button {
        width: 100%;
    }

    .service-preview-card,
    .pricing-card,
    .project-card,
    .contact-form-card {
        padding: 21px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .featured-work {
        gap: 26px;
    }

    .cta-panel {
        width: calc(100% - 28px);
        margin: 24px auto;
        padding: 28px 20px;
    }

    .cta-panel .button {
        width: 100%;
    }

    .pricing-note-panel {
        padding: 22px 18px;
    }

    .faq-item summary {
        gap: 16px;
        min-height: 58px;
        padding: 16px 18px;
    }

    .faq-answer {
        padding: 0 46px 18px 18px;
    }

    .contact-mascot-reaction {
        width: 118px;
    }

    .mascot-copy-bubble {
        display: none;
    }

    .carousel-prev,
    .carousel-next,
    .lightbox-prev,
    .lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .success-card {
        padding: 34px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
