:root {
    --ink: #111316;
    --graphite: #1e2329;
    --muted: #6b7280;
    --paper: #f7f4ef;
    --white: #ffffff;
    --line: rgba(17, 19, 22, 0.12);
    --copper: #b86a3c;
    --sage: #72816f;
    --blue: #203c5c;
    --shadow: 0 28px 70px rgba(17, 19, 22, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

.shell {
    width: min(1200px, calc(100% - 44px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 100;
    transform: translateY(-140%);
    padding: 10px 14px;
    background: var(--ink);
    color: var(--white);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    width: 100%;
    max-width: 100vw;
    color: var(--white);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(247, 244, 239, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.site-header.nav-open {
    color: var(--ink);
    background: rgba(247, 244, 239, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}

.brand small {
    color: currentColor;
    opacity: 0.72;
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.main-nav a,
.nav-parent {
    padding: 9px 11px;
    border-radius: 999px;
    color: currentColor;
    opacity: 0.78;
    font-size: 0.9rem;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active,
.nav-group.active > .nav-parent {
    background: rgba(255, 255, 255, 0.16);
    opacity: 1;
}

.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a.active,
.site-header.is-scrolled .nav-group.active > .nav-parent {
    background: var(--white);
}

.nav-group {
    position: relative;
    padding: 8px 0;
    margin: -8px 0;
}

.nav-parent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-parent::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.8;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    display: grid;
    min-width: 230px;
    padding: 10px;
    border: 1px solid rgba(17, 19, 22, 0.12);
    border-radius: 18px;
    background: rgba(247, 244, 239, 0.96);
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(17, 19, 22, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: -10px;
    height: 10px;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ink);
    opacity: 0.78;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
    background: var(--white);
    opacity: 1;
}

.header-phone {
    padding: 10px 15px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: currentColor;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 640px;
    color: var(--white);
    overflow: hidden;
    background: var(--ink);
}

.inner-hero {
    min-height: 560px;
}

.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(6, 8, 11, 0.88), rgba(6, 8, 11, 0.52) 48%, rgba(6, 8, 11, 0.14)),
        linear-gradient(0deg, rgba(6, 8, 11, 0.78), rgba(6, 8, 11, 0.06) 42%);
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(0, 720px);
    align-content: end;
    gap: 26px;
    padding: 132px 0 58px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    max-width: 720px;
    font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2.6rem, 4.15vw, 4.35rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: 0;
}

.lead {
    max-width: 610px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.06rem;
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--copper);
    font-size: clamp(1rem, 1.55vw, 1.55rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.hero .eyebrow,
.page-hero .eyebrow,
.gallery-hero .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions,
.cta-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

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

.button.primary {
    background: var(--white);
    color: var(--ink);
}

.button.secondary {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.page-hero .button.secondary,
.split-section .button.secondary {
    border-color: var(--line);
    background: var(--ink);
    color: var(--white);
}

.hero-panel {
    display: flex;
    width: min(820px, 100%);
    gap: 10px;
    flex-wrap: wrap;
    border: 0;
}

.hero-panel span {
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero-panel span:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.section {
    padding: 76px 0;
}

.intro-band {
    background: var(--paper);
}

.intro-grid,
.feature-grid,
.split-section,
.contact-grid,
.cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
    gap: 46px;
    align-items: center;
}

.intro-grid p,
.feature-grid p,
.split-section p {
    color: var(--muted);
    font-size: 1.04rem;
}

.section-head {
    display: block;
    max-width: 820px;
    margin-bottom: 34px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.compact-head {
    max-width: 760px;
}

.showcase-head {
    max-width: 760px;
    margin-bottom: 42px;
}

.services-section .section-head,
.portfolio-showcase .section-head {
    text-align: center;
}

.services-section .eyebrow,
.portfolio-showcase .eyebrow {
    margin-bottom: 14px;
    color: var(--ink);
    font-size: clamp(2.15rem, 4.2vw, 4.4rem);
    line-height: 0.98;
}

.section-head h2,
.feature-grid h2,
.split-section h2,
.cta-inner h2 {
    margin: 0;
    max-width: 760px;
    font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.9rem, 2.8vw, 2.85rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: 0;
}

.compact-head h2 {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
    font-size: clamp(1rem, 1.15vw, 1.18rem);
    line-height: 1.45;
    font-weight: 600;
}

.showcase-head h2 {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
    font-size: clamp(1rem, 1.15vw, 1.18rem);
    line-height: 1.45;
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

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

.service-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--graphite);
    color: var(--white);
    box-shadow: var(--shadow);
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 19, 22, 0.04), rgba(17, 19, 22, 0.86));
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card div {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: 24px;
}

.service-card h2,
.service-card h3,
.work-card h2,
.work-card h3,
.steps-grid h3 {
    margin: 0 0 10px;
    line-height: 1.12;
}

.service-card p,
.steps-grid p,
.work-card p {
    color: rgba(255, 255, 255, 0.76);
}

.steps-grid p {
    color: var(--muted);
}

.service-card a {
    color: var(--white);
    font-weight: 850;
    text-decoration: none;
}

.feature-section,
.process-section,
.related-section {
    background: var(--white);
}

.studio-section {
    background: var(--graphite);
    color: var(--white);
}

.studio-section p,
.studio-section .feature-grid p {
    color: rgba(255, 255, 255, 0.72);
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 18px 18px 18px 50px;
    border: 1px solid rgba(17, 19, 22, 0.12);
    border-radius: 16px;
    background: var(--white);
}

.editorial-list li {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 24px;
    width: 9px;
    height: 9px;
    background: var(--copper);
    border-radius: 50%;
}

.check-list.compact li {
    background: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 16px;
}

.portfolio-grid.large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 18px;
    color: var(--white);
    background: var(--graphite);
    text-decoration: none;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.portfolio-showcase {
    padding-top: 92px;
}

.portfolio-showcase .work-card:first-child {
    grid-row: span 2;
    min-height: 520px;
}

.portfolio-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.portfolio-more span,
.portfolio-more strong {
    display: block;
}

.portfolio-more span {
    margin-bottom: 4px;
    color: var(--copper);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-more strong {
    font-size: 1.05rem;
}

.portfolio-all-button {
    flex: 0 0 auto;
    background: var(--ink);
    color: var(--white);
}

.work-card:nth-child(2),
.work-card:nth-child(4) {
    min-height: 360px;
}

.work-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.work-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 19, 22, 0.04), rgba(17, 19, 22, 0.86));
}

.work-card:hover img {
    transform: scale(1.04);
}

.work-card div {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: 24px;
}

.work-card span {
    color: #f1c29f;
    font-weight: 850;
}

.work-card small {
    display: inline-block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 850;
}

.work-card p {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.portfolio-context {
    background: var(--paper);
}

.related-portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-hero {
    position: relative;
    min-height: 620px;
    color: var(--white);
    overflow: hidden;
    background: var(--ink);
}

.gallery-hero-content {
    position: relative;
    z-index: 1;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 150px 0 76px;
}

.gallery-hero-content h1 {
    margin: 0;
    max-width: 900px;
    font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2.4rem, 4.6vw, 4.4rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0;
}

.back-link {
    align-self: flex-start;
    margin-bottom: 26px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    color: var(--white);
    font-weight: 850;
    text-decoration: none;
}

.gallery-grid {
    columns: 3 280px;
    column-gap: 18px;
}

.gallery-tile {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: var(--graphite);
    overflow: hidden;
    cursor: zoom-in;
    break-inside: avoid;
}

.gallery-tile img {
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}

.gallery-tile:hover img {
    transform: scale(1.035);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(9, 11, 14, 0.9);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(1200px, 96vw);
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: none;
    max-width: 100vw;
    padding: 24px;
    background: rgba(8, 10, 13, 0.82);
    backdrop-filter: blur(18px);
}

.portfolio-modal.is-open {
    display: grid;
    place-items: center;
}

.portfolio-modal-panel {
    position: relative;
    width: min(1380px, 100%);
    max-height: min(860px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: #111316;
    color: var(--white);
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.54);
}

.portfolio-viewer {
    display: grid;
    grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: min(800px, calc(100vh - 48px));
}

.portfolio-info {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 14px;
    padding: 34px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.portfolio-info h2 {
    margin: 0;
    font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 3.6rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: 0;
}

.portfolio-category {
    color: #f1c29f;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-count {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 800;
}

.portfolio-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.portfolio-controls button,
.portfolio-close {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.portfolio-controls button {
    min-width: 44px;
    min-height: 44px;
    padding: 9px 15px;
    font-size: 1.45rem;
    line-height: 1;
}

.portfolio-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 46px;
    height: 46px;
    background: rgba(10, 12, 15, 0.72);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 400;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.portfolio-close:hover {
    background: rgba(10, 12, 15, 0.88);
    border-color: rgba(255, 255, 255, 0.46);
}

.portfolio-main {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 30px 30px 16px;
    overflow: hidden;
}

.portfolio-main img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 230px);
    object-fit: contain;
    border-radius: 20px;
    background: #050607;
}

.portfolio-thumbs {
    grid-column: 2;
    display: flex;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 30px 30px;
    scrollbar-width: thin;
}

.portfolio-thumbs button {
    flex: 0 0 96px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.62;
}

.portfolio-thumbs button.is-active {
    border-color: #f1c29f;
    opacity: 1;
}

.portfolio-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero {
    padding: 132px 0 62px;
    background: var(--graphite);
    color: var(--white);
}

.page-hero h1 {
    color: var(--white);
    max-width: 760px;
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1.02;
}

.split-section img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.split-section.reverse img {
    order: 2;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.steps-grid article,
.contact-details,
.contact-form,
.link-grid a {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 14px 46px rgba(17, 19, 22, 0.08);
}

.steps-grid article {
    padding: 26px;
}

.steps-grid span {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--copper);
    font-weight: 900;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.link-grid a {
    padding: 20px;
    text-decoration: none;
}

.link-grid span {
    display: block;
    color: var(--copper);
    font-size: 0.82rem;
    font-weight: 900;
}

.link-grid strong {
    display: block;
    margin-top: 7px;
    line-height: 1.18;
}

.cta-section {
    padding: 78px 0;
    background: var(--ink);
    color: var(--white);
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.72);
}

.contact-grid {
    align-items: start;
}

.contact-details,
.contact-form {
    padding: 30px;
}

.contact-details h2 {
    margin-top: 0;
}

.contact-details a {
    color: var(--blue);
    font-weight: 850;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-status {
    padding: 13px 15px;
    border-radius: 12px;
    font-weight: 850;
}

.form-status.success {
    background: rgba(114, 129, 111, 0.16);
    color: #3f5740;
}

.form-status.error {
    background: rgba(184, 106, 60, 0.16);
    color: #8c3f1d;
}

.form-status p {
    margin: 0;
}

.site-footer {
    background: var(--graphite);
    color: var(--white);
    padding: 62px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.site-footer p,
.site-footer small {
    color: rgba(255, 255, 255, 0.64);
}

.site-footer span,
.site-footer strong {
    display: block;
    margin-bottom: 10px;
    font-weight: 900;
}

.site-footer a {
    display: block;
    margin: 7px 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 1120px) {
    .site-header {
        color: var(--white);
        background: transparent;
        border-bottom: 1px solid transparent;
        backdrop-filter: blur(18px);
    }

    .site-header.is-scrolled,
    .site-header.nav-open {
        color: var(--ink);
        background: rgba(247, 244, 239, 0.98);
        border-bottom-color: var(--line);
    }

    .header-inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 14px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        order: 3;
        width: 100%;
        margin-left: 0;
        max-height: calc(100vh - 84px);
        overflow-y: auto;
        padding: 8px 0 22px;
        flex-direction: column;
        align-items: stretch;
        color: var(--ink);
        overscroll-behavior: contain;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a,
    .nav-parent {
        padding: 13px 14px;
        border-radius: 14px;
        opacity: 0.9;
    }

    .nav-group {
        display: grid;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .nav-parent {
        justify-content: space-between;
        padding: 13px 14px;
    }

    .nav-dropdown {
        display: none;
        position: static;
        min-width: 0;
        margin: 4px 0 10px;
        padding: 8px;
        border-radius: 16px;
        background: var(--white);
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .nav-group.is-expanded .nav-dropdown {
        display: grid;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-dropdown a {
        padding: 11px 12px;
        border-radius: 12px;
    }

    .header-phone {
        display: none;
    }

    .hero-content,
    .intro-grid,
    .feature-grid,
    .split-section,
    .contact-grid,
    .cta-inner {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .card-grid,
    .portfolio-grid,
    .portfolio-grid.large,
    .steps-grid,
    .link-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-viewer {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .portfolio-info {
        padding: 28px 72px 18px 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .portfolio-main {
        padding: 18px;
    }

    .portfolio-main img {
        max-height: 54vh;
    }

    .portfolio-thumbs {
        grid-column: 1;
        padding: 0 18px 18px;
    }

    .section-head {
        display: block;
    }
}

@media (max-width: 680px) {
    .shell {
        width: min(100% - 28px, 1200px);
    }

    .header-inner {
        min-height: 82px;
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .brand {
        max-width: calc(100vw - 104px);
        gap: 10px;
    }

    .brand strong {
        max-width: calc(100vw - 164px);
        font-size: 0.95rem;
    }

    .brand small {
        display: none;
    }

    .hero,
    .inner-hero {
        min-height: auto;
    }

    .hero-content {
        padding: 116px 0 44px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: clamp(1.95rem, 8.2vw, 2.75rem);
        line-height: 1.04;
    }

    .lead {
        font-size: 1rem;
        line-height: 1.55;
    }

    .section {
        padding: 66px 0;
    }

    .page-hero {
        padding: 112px 0 54px;
    }

    .page-hero h1 {
        max-width: 16ch;
        font-size: clamp(1.85rem, 7.8vw, 2.45rem);
        line-height: 1.06;
    }

    .page-hero .lead {
        max-width: 32ch;
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .service-grid,
    .card-grid,
    .portfolio-grid,
    .portfolio-grid.large,
    .steps-grid,
    .link-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-more {
        align-items: stretch;
        flex-direction: column;
    }

    .portfolio-all-button {
        width: 100%;
    }

    .service-card,
    .work-card,
    .work-card:nth-child(2),
    .work-card:nth-child(4) {
        min-height: 370px;
    }

    .split-section.reverse img {
        order: 0;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .portfolio-modal {
        padding: 8px;
        overflow: hidden;
    }

    .portfolio-modal-panel {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 20px;
    }

    .portfolio-viewer {
        min-height: auto;
        max-height: calc(100vh - 16px);
    }

    .portfolio-info {
        padding: 24px 78px 16px 20px;
    }

    .portfolio-close {
        top: 14px;
        right: 14px;
        width: 48px;
        height: 48px;
        font-size: 1.75rem;
    }

    .portfolio-info h2 {
        font-size: clamp(1.8rem, 11vw, 3rem);
    }

    .portfolio-controls {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 50%;
        z-index: 4;
        display: flex;
        justify-content: space-between;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .portfolio-controls button {
        width: 46px;
        height: 46px;
        padding: 0;
        background: rgba(17, 19, 22, 0.72);
        border-color: rgba(255, 255, 255, 0.28);
        font-size: 2.1rem;
        pointer-events: auto;
    }

    .portfolio-main {
        padding: 14px;
    }

    .portfolio-main img {
        width: 100%;
        max-height: 48vh;
        border-radius: 16px;
    }

    .portfolio-thumbs button {
        flex-basis: 82px;
        height: 64px;
    }

    .portfolio-thumbs {
        padding: 0 14px 16px;
    }
}
