/* =========================================================
   MOTION.BY — MAIN CSS
   Clean consolidated version
   ========================================================= */

/* =========================================================
   01. VARIABLES
   ========================================================= */

:root {
    --bg: #080808;
    --bg-soft: #101010;
    --text: #f2f2f2;
    --muted: #777;
    --muted-dark: #555;
    --line: #242424;
    --accent: #ff4f19;
    --container: 1240px;
}


/* =========================================================
   02. RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.lightbox-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}


/* =========================================================
   03. COMMON
   ========================================================= */

.section-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}


/* =========================================================
   04. HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: 28px 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition:
        padding .35s cubic-bezier(.2,.7,.2,1),
        background .35s ease,
        border-color .35s ease,
        backdrop-filter .35s ease;
}

.site-header.is-scrolled {
    padding: 15px 0;
    background: rgba(8, 8, 8, .82);
    border-bottom-color: rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.logo-desktop {
    display: block;
}

.logo-desktop img {
    width: 135px;
    height: 20px;
    object-fit: contain;
    object-position: left center;
}

.logo-mobile {
    display: none;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.navigation a {
    position: relative;
    color: #d8d8d8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .25s ease;
}

.navigation a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}

.navigation a:hover {
    color: #fff;
}

.navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navigation .header-phone {
    margin-left: 8px;
    color: #f2f2f2;
    white-space: nowrap;
}

.navigation .header-phone::after {
    background: var(--accent);
}

.menu-toggle {
    display: none;
    width: 34px;
    height: 28px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    margin: 5px 0;
    background: #fff;
    transition: transform .25s ease, opacity .25s ease;
}


/* =========================================================
   05. HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: .55;
}

.hero::after {
    content: "";
    position: absolute;
    top: 14%;
    right: 8%;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255,79,25,.18) 0,
        rgba(255,79,25,.06) 35%,
        transparent 70%
    );
    filter: blur(8px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 150px;
    padding-bottom: 34px;
}

.hero-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-content {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.hero-index {
    padding-top: 12px;
    color: var(--muted-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
}

.hero-index span {
    color: var(--accent);
}

.hero-main {
    max-width: 920px;
}

.hero-eyebrow {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(76px, 10vw, 154px);
    line-height: .82;
    letter-spacing: -.075em;
    font-weight: 700;
    text-transform: uppercase;
}

.hero h1 span {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #777;
    text-stroke: 1px #777;
}

.hero-description {
    max-width: 580px;
    margin: 42px 0 0;
    color: #b8b8b8;
    font-size: 18px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

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

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #080808;
}

.button-primary:hover {
    border-color: #ff6a3d;
    background: #ff6a3d;
}

.button-secondary {
    background: transparent;
    color: #fff;
}

.button-secondary:hover {
    border-color: #666;
    background: #161616;
}

.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
}

.scroll-indicator {
    color: var(--muted);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: .45;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(4px);
    }
}


/* =========================================================
   06. HOME — INTRO
   ========================================================= */

.intro-section {
    padding: 130px 0 150px;
    border-top: 1px solid var(--line);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 100px;
    margin-top: 72px;
}

.intro-heading {
    position: relative;
}

.intro-number {
    margin-bottom: 24px;
    color: var(--muted-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
}

.intro-heading h2 {
    margin: 0;
    font-size: clamp(48px, 6vw, 88px);
    line-height: .9;
    letter-spacing: -.06em;
    text-transform: uppercase;
}

.intro-text {
    padding-top: 8px;
}

.intro-text p {
    max-width: 620px;
    margin-bottom: 24px;
    color: #aaa;
    font-size: 17px;
    line-height: 1.65;
}

.intro-text .intro-lead {
    color: #e2e2e2;
    font-size: 22px;
    line-height: 1.5;
}

.intro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.intro-tags span {
    padding: 8px 11px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .12em;
}


/* =========================================================
   07. HOME — SERVICES
   ========================================================= */

.services-section {
    padding: 120px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 70px;
    background: var(--line);
    border: 1px solid var(--line);
}

.service-card {
    min-height: 300px;
    padding: 34px;
    background: var(--bg-soft);
    transition: background .3s ease;
}

.service-card:hover {
    background: #141414;
}

.service-number {
    display: block;
    margin-bottom: 80px;
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.03em;
}

.service-card p {
    max-width: 340px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.works-placeholder {
    grid-column: 1 / -1;
    padding: 80px 40px;
    background: var(--bg-soft);
}

.works-placeholder h2 {
    margin-bottom: 16px;
    font-size: clamp(36px, 5vw, 72px);
    line-height: .9;
    letter-spacing: -.05em;
}

.works-placeholder p {
    margin: 0;
    color: var(--muted);
}


/* =========================================================
   08. HOME / WORKS
   ========================================================= */

.works-section {
    padding: 130px 0 120px;
    border-top: 1px solid var(--line);
}

.works-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.works-counter {
    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
}

.works-page-intro {
    margin: 72px 0 70px;
}

.works-page-intro h1 {
    margin: 0 0 18px;
    font-size: clamp(64px, 10vw, 140px);
    line-height: .82;
    letter-spacing: -.07em;
    text-transform: uppercase;
}

.works-page-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .13em;
}

.projects-list {
    margin-top: 70px;
    border-top: 1px solid var(--line);
}

.project-row {
    display: grid;
    grid-template-columns: 70px 260px minmax(0, 1fr) 80px 36px;
    gap: 26px;
    align-items: center;
    min-height: 210px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    transition: background .3s ease, padding .3s ease;
}

.project-row:hover {
    padding-inline: 14px;
    background: #101010;
}

.project-row-number {
    align-self: start;
    padding-top: 8px;
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 600;
}

.project-row-image {
    height: 160px;
    overflow: hidden;
    background: #111;
}

.project-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.project-row:hover .project-row-image img {
    transform: scale(1.04);
}

.project-no-image {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
}

.project-row-info {
    min-width: 0;
}

.project-row-category {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-row-info h3 {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.04em;
}

.project-row-info p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.project-row-year {
    align-self: start;
    padding-top: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.project-row-arrow {
    color: var(--muted);
    font-size: 22px;
    transition: color .25s ease, transform .25s ease;
}

.project-row:hover .project-row-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.works-all-link {
    margin-top: 36px;
    text-align: right;
}

.works-all-link a {
    color: #ddd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.works-all-link a:hover {
    color: var(--accent);
}


/* =========================================================
   09. HOME — NOTES
   ========================================================= */

.home-notes {
    padding: 110px 0 115px;
    border-top: 1px solid var(--line);
}

.home-notes-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-top: 70px;
}

.home-notes-title {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.home-notes-number {
    padding-top: 7px;
    color: var(--muted-dark);
    font-size: 12px;
    font-weight: 600;
}

.home-notes-title h2 {
    margin: 0;
    font-size: clamp(52px, 7vw, 100px);
    line-height: .84;
    letter-spacing: -.065em;
}

.home-notes-title h2 span {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #777;
}

.home-notes-all {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.home-notes-all:hover {
    color: var(--accent);
}

.home-notes-list {
    margin-top: 62px;
    border-top: 1px solid var(--line);
}

.home-note-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 220px 32px;
    gap: 28px;
    align-items: center;
    min-height: 145px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    transition: background .25s ease, padding .25s ease;
}

.home-note-row:hover {
    padding-inline: 12px;
    background: #0e0e0e;
}

.home-note-index {
    align-self: start;
    padding-top: 6px;
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 600;
}

.home-note-main {
    min-width: 0;
}

.home-note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-note-meta span:first-child {
    color: var(--accent);
}

.home-note-main h3 {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.home-note-main p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.home-note-image {
    height: 100px;
    overflow: hidden;
}

.home-note-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-note-arrow {
    color: var(--muted);
    font-size: 20px;
}

.home-notes-empty {
    padding: 60px 0;
    color: var(--muted);
}


/* =========================================================
   10. HOME — CONTACT CTA
   ========================================================= */

.contact-section {
    position: relative;
    overflow: hidden;
    padding: 160px 0 150px;
    background: #0b0b0b;
    border-top: 1px solid var(--line);
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.018)
        );
}

.contact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 100px;
    margin-top: 70px;
}

.contact-number {
    margin-bottom: 24px;
    color: var(--muted-dark);
    font-size: 12px;
    font-weight: 600;
}

.contact-title h2 {
    margin: 0;
    font-size: clamp(64px, 9vw, 132px);
    line-height: .82;
    letter-spacing: -.075em;
}

.contact-title h2 span {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #777;
}

.contact-info {
    padding-top: 10px;
}

.contact-line {
    width: 100%;
    height: 1px;
    margin-bottom: 30px;
    background: var(--line);
}

.contact-description {
    max-width: 470px;
    margin-bottom: 40px;
    color: #aaa;
    font-size: 18px;
    line-height: 1.55;
}

.contact-links {
    display: flex;
    flex-direction: column;
}

.contact-email {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    font-size: 17px;
    transition: color .25s ease;
}

.contact-email:last-child {
    border-bottom: 1px solid var(--line);
}

.contact-email strong {
    font-size: 20px;
    font-weight: 400;
    transition: transform .25s ease;
}

.contact-email:hover {
    color: var(--accent);
}

.contact-email:hover strong {
    transform: translate(3px, -3px);
}

.contact-note {
    margin-top: 34px;
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .13em;
}


/* =========================================================
   11. PROJECT PAGE
   ========================================================= */

.project-page {
    padding: 150px 0 120px;
}

.project-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 80px;
    align-items: end;
    margin-top: 70px;
}

.project-category {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-title-block h1 {
    margin: 0;
    font-size: clamp(56px, 3vw, 120px);
    line-height: .84;
    letter-spacing: -.07em;
    text-transform: uppercase;
}

.project-meta {
    display: grid;
    gap: 20px;
}

.project-meta > div {
    display: grid;
    gap: 5px;
    color: #ccc;
    font-size: 14px;
}

.project-meta span {
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .12em;
}

.project-image {
    margin-top: 80px;
    background: #111;
}

.project-image img {
    width: 100%;
    max-height: 760px;
    object-fit: cover;
}

.case-section {
    padding: 100px 0 0;
}

.case-label {
    margin-bottom: 50px;
    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .13em;
}

.case-grid {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
    gap: 90px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.case-grid h2 {
    margin: 0;
    font-size: clamp(40px, 5vw, 72px);
    line-height: .88;
    letter-spacing: -.06em;
}

.case-text {
    color: #aaa;
    font-size: 17px;
    line-height: 1.7;
}

.case-text p {
    margin-bottom: 22px;
}

.video-section {
    padding-top: 120px;
}

.video-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.video-header h2 {
    margin: 0;
    font-size: clamp(46px, 6vw, 86px);
    line-height: .84;
    letter-spacing: -.065em;
}

.video-header-meta {
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .13em;
    text-align: right;
}

.project-video {
    background: #0c0c0c;
    border: 1px solid var(--line);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.youtube-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.youtube-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 60px;
    padding: 0 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.video-footer a {
    color: #ddd;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

.video-footer a:hover {
    color: var(--accent);
}

.project-gallery {
    padding-top: 120px;
}

.gallery-heading {
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.gallery-heading h2 {
    margin: 0 0 48px;
    font-size: clamp(46px, 6vw, 86px);
    line-height: .84;
    letter-spacing: -.065em;
}

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

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #111;
    cursor: pointer;
    text-align: left;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

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

.gallery-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: #fff;
    font-size: 11px;
}

.project-back {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.project-back a {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-back a:hover {
    color: var(--accent);
}


/* =========================================================
   12. LIGHTBOX
   ========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: rgba(0,0,0,.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-content {
    width: min(1100px, 88vw);
    max-height: 88vh;
    text-align: center;
}

.lightbox-content img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    margin-inline: auto;
}

.lightbox-caption {
    margin-top: 14px;
    color: #aaa;
    font-size: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.lightbox-close {
    top: 24px;
    right: 30px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    color: #aaa;
    font-size: 28px;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 26px;
}

.lightbox-next {
    right: 26px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--accent);
}


/* =========================================================
   13. ABOUT PAGE
   ========================================================= */

.about-page,
.services-page,
.contacts-page,
.notes-page,
.note-detail-page {
    padding: 150px 0 120px;
}

.about-hero,
.services-hero,
.contacts-hero {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 30px;
    margin-top: 70px;
}

.about-hero-number,
.services-hero-number,
.contacts-hero-number {
    padding-top: 10px;
    color: var(--muted-dark);
    font-size: 12px;
    font-weight: 600;
}

.about-hero-content h1,
.services-hero-content h1,
.contacts-hero-content h1 {
    margin: 0;
    font-size: clamp(64px, 9vw, 130px);
    line-height: .83;
    letter-spacing: -.075em;
}

.about-hero-content h1 span,
.services-hero-content h1 span,
.contacts-hero-content h1 span {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #777;
}

.about-hero-content p,
.services-hero-content p,
.contacts-hero-content p {
    max-width: 650px;
    margin: 34px 0 0;
    color: #aaa;
    font-size: 18px;
    line-height: 1.6;
}

.about-story,
.about-principles {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 100px;
    padding-top: 130px;
}

.about-story-heading h2,
.about-principles-heading h2 {
    margin: 0;
    font-size: clamp(46px, 6vw, 82px);
    line-height: .86;
    letter-spacing: -.06em;
}

.about-story-text,
.about-principles-text {
    padding-top: 8px;
}

.about-story-text p,
.about-principles-text p {
    max-width: 650px;
    margin-bottom: 24px;
    color: #aaa;
    font-size: 17px;
    line-height: 1.7;
}

.about-story-text .about-story-lead,
.about-principles-text .about-principles-lead {
    color: #e2e2e2;
    font-size: 21px;
    line-height: 1.55;
}

.about-cycle {
    padding-top: 130px;
}

.about-cycle-header {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 100px;
    padding-bottom: 45px;
    border-bottom: 1px solid var(--line);
}

.about-cycle-header p {
    max-width: 650px;
    margin: 0;
    color: #aaa;
    font-size: 17px;
    line-height: 1.6;
}

.about-cycle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}


.about-cycle-item {
    min-height: 270px;
    padding: 28px;
    background: var(--bg);
}

.about-cycle-item span {
    display: block;
    margin-bottom: 70px;
    color: var(--muted-dark);
    font-size: 11px;
}

.about-cycle-item h3 {
    margin-bottom: 12px;
    font-size: 22px;
    letter-spacing: -.03em;
}

.about-cycle-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   14. SERVICES PAGE
   ========================================================= */

.services-list {
    margin-top: 110px;
    border-top: 1px solid var(--line);
}

.service-detail {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 40px;
    padding: 55px 0;
    border-bottom: 1px solid var(--line);
}

.service-detail-number {
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 600;
}

.service-detail-main {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
    gap: 80px;
}

.service-detail-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(40px, 5vw, 70px);
    line-height: .88;
    letter-spacing: -.06em;
}

.service-detail-heading span {
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .12em;
}

.service-detail-content > p {
    margin: 0 0 30px;
    color: #aaa;
    font-size: 16px;
    line-height: 1.65;
}

.service-detail-includes > span {
    display: block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
}

.service-detail-includes ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-detail-includes li {
    padding: 8px 0;
    border-bottom: 1px solid #1c1c1c;
    color: #888;
    font-size: 13px;
}

.service-detail-includes li::before {
    content: "— ";
    color: var(--muted-dark);
}

.services-final {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 100px;
    margin-top: 90px;
    padding-top: 45px;
    border-top: 1px solid var(--line);
}

.services-final-heading h2 {
    margin: 0;
    font-size: clamp(50px, 7vw, 92px);
    line-height: .85;
    letter-spacing: -.065em;
}

.services-final-content p {
    max-width: 550px;
    margin: 0 0 30px;
    color: #aaa;
    font-size: 17px;
    line-height: 1.65;
}

.services-final-content a {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.services-final-content a:hover {
    color: var(--accent);
}


/* =========================================================
   15. CONTACTS PAGE
   ========================================================= */

.contacts-main {
    display: grid;
    grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
    gap: 100px;
    margin-top: 110px;
    padding-top: 50px;
    border-top: 1px solid var(--line);
}

.contacts-info {
    display: grid;
    align-content: start;
    gap: 40px;
}

.contact-item {
    display: grid;
    gap: 10px;
}

.contact-label {
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em;
}

.contact-item a {
    color: #ddd;
    font-size: 18px;
}

.contact-item a:hover {
    color: var(--accent);
}

.contacts-form-wrap {
    max-width: 700px;
}

.contacts-form-wrap > .section-label {
    margin-bottom: 40px;
}

.contacts-form {
    display: grid;
    gap: 28px;
}

.form-field {
    display: grid;
    gap: 10px;
}

.form-field label {
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    outline: 0;
    background: transparent;
    color: #fff;
    border-radius: 0;
    resize: vertical;
    transition: border-color .25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #555;
}

.form-field input:focus,
.form-field textarea:focus {
    border-bottom-color: var(--accent);
}

.contacts-form button {
    width: fit-content;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #080808;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    transition: background .25s ease, transform .25s ease;
}

.contacts-form button:hover {
    background: #ff6a3d;
    transform: translateY(-2px);
}

.contact-success {
    padding: 30px;
    border: 1px solid var(--line);
    background: #0e0e0e;
}

.contact-success-title {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}

.contact-success p {
    margin-bottom: 24px;
    color: #aaa;
}

.contact-success a {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
}

.contact-success a:hover {
    color: var(--accent);
}


/* =========================================================
   16. NOTES INDEX
   ========================================================= */

.notes-header {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 100px;
    align-items: end;
    margin-top: 70px;
}

.notes-header h1 {
    margin: 0;
    font-size: clamp(64px, 9vw, 130px);
    line-height: .82;
    letter-spacing: -.075em;
}

.notes-header h1 span {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #777;
}

.notes-header p {
    max-width: 580px;
    margin: 0 0 4px;
    color: #aaa;
    font-size: 17px;
    line-height: 1.6;
}

.notes-list {
    margin-top: 110px;
    border-top: 1px solid var(--line);
}

.note-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 240px 32px;
    gap: 28px;
    align-items: center;
    min-height: 170px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    transition: background .25s ease, padding .25s ease;
}

.note-card:hover {
    padding-inline: 12px;
    background: #0e0e0e;
}

.note-number {
    align-self: start;
    padding-top: 6px;
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 600;
}

.note-content {
    min-width: 0;
}

.note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.note-meta span:first-child {
    color: var(--accent);
}

.note-content h2 {
    margin-bottom: 9px;
    font-size: 27px;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.note-content p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.note-cover {
    height: 110px;
    overflow: hidden;
}

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

.note-arrow {
    color: var(--muted);
    font-size: 20px;
}

.notes-empty {
    padding: 80px 0;
}

.notes-empty > span {
    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
}

.notes-empty h2 {
    margin: 25px 0 14px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .86;
    letter-spacing: -.06em;
}

.notes-empty p {
    margin: 0;
    color: var(--muted);
}


/* =========================================================
   17. NOTE DETAIL
   ========================================================= */

.note-detail-header {
    max-width: 1000px;
    margin-top: 70px;
}

.note-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.note-detail-meta span:first-child {
    color: var(--accent);
}

.note-detail-header h1 {
    margin: 0;
    font-size: clamp(58px, 3vw, 120px);
    line-height: .84;
    letter-spacing: -.07em;
}

.note-detail-excerpt {
    max-width: 760px;
    margin: 36px 0 0;
    color: #aaa;
    font-size: 19px;
    line-height: 1.6;
}

.note-detail-cover {
    margin-top: 70px;
}

.note-detail-cover img {
    width: 100%;
    max-height: 760px;
    object-fit: cover;
}

.note-toc {
    max-width: 850px;
    margin: 70px auto 0;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.note-article {
    max-width: 850px;
    margin: 80px auto 0;
    color: #bbb;
    font-size: 17px;
    line-height: 1.8;
}

.note-article h2,
.note-article h3 {
    margin: 55px 0 20px;
    color: #fff;
    line-height: 1;
    letter-spacing: -.04em;
}

.note-article h2 {
    font-size: 40px;
}

.note-article h3 {
    font-size: 28px;
}

.note-article p {
    margin-bottom: 24px;
}

.note-article a {
    color: var(--accent);
}

.note-article ul,
.note-article ol {
    margin-bottom: 26px;
    padding-left: 24px;
}

.note-article blockquote {
    margin: 35px 0;
    padding-left: 24px;
    border-left: 2px solid var(--accent);
    color: #ddd;
}

.note-detail-footer {
    max-width: 850px;
    margin: 80px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.note-back {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.note-back:hover {
    color: var(--accent);
}


/* =========================================================
   18. FOOTER
   ========================================================= */

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}


/* =========================================================
   19. REVEAL / MOTION
   ========================================================= */

.reveal,
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible,
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   20. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .navigation {
        gap: 18px;
    }

    .navigation .header-phone {
        margin-left: 0;
    }

    .hero-content {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .intro-grid,
    .about-story,
    .about-principles,
    .about-cycle-header,
    .notes-header {
        gap: 55px;
    }

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

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

    .project-row {
        grid-template-columns: 45px 210px minmax(0, 1fr) 65px 28px;
        gap: 18px;
    }

    .project-row-image {
        height: 135px;
    }

    .home-note-row {
        grid-template-columns: 45px minmax(0, 1fr) 170px 28px;
        gap: 18px;
    }

    .note-card {
        grid-template-columns: 45px minmax(0, 1fr) 180px 28px;
        gap: 18px;
    }

    .project-header,
    .contacts-main {
        gap: 55px;
    }

    .service-detail-main {
        gap: 50px;
    }

    .contact-grid,
    .services-final {
        gap: 60px;
    }
}


/* =========================================================
   21. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .site-header {
        padding: 21px 0;
    }

    .site-header.is-scrolled {
        padding: 12px 0;
    }

    .site-header > .container {
        gap: 18px;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .navigation {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 22px;
        padding: 90px 32px 50px;
        background: rgba(8,8,8,.97);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .navigation.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navigation a {
        font-size: 22px;
        letter-spacing: .06em;
    }

    .navigation a::after {
        bottom: -5px;
    }

    .navigation .header-phone {
        margin: 14px 0 0;
        color: var(--accent);
        font-size: 18px;
        letter-spacing: .04em;
    }

    .hero-inner {
        padding-top: 130px;
        padding-bottom: 25px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-index {
        padding-top: 0;
    }

    .hero h1 {
        font-size: clamp(62px, 17vw, 94px);
        line-height: .82;
        letter-spacing: -.07em;
    }

    .hero-description {
        margin-top: 30px;
        font-size: 16px;
    }



    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .intro-section,
    .services-section,
    .works-section,
    .home-notes {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .intro-grid,
    .about-story,
    .about-principles,
    .about-cycle-header,
    .notes-header,
    .contact-grid,
    .contacts-main,
    .services-final,
    .project-header {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-grid,
    .home-notes-header,
    .notes-list,
    .services-list,
    .projects-list {
        margin-top: 48px;
    }

    .intro-heading h2 {
        font-size: clamp(44px, 12vw, 70px);
    }

    .intro-text .intro-lead {
        font-size: 19px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 240px;
    }

    .service-number {
        margin-bottom: 55px;
    }

    .works-heading {
        align-items: flex-start;
    }

    .works-page-intro {
        margin: 48px 0;
    }

    .works-page-intro h1 {
        font-size: clamp(58px, 18vw, 92px);
    }

    .project-row {
        grid-template-columns: 32px minmax(0, 1fr) 28px;
        gap: 14px;
        min-height: 0;
        padding: 22px 0;
    }

    .project-row-image {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        height: 190px;
    }

    .project-row-info {
        grid-column: 2;
        grid-row: 2;
    }

    .project-row-number {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .project-row-year {
        display: none;
    }

    .project-row-arrow {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }

    .project-row-info h3 {
        font-size: 24px;
    }

    .works-all-link {
        text-align: left;
    }

    .home-notes-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-notes-title {
        gap: 15px;
    }

    .home-notes-title h2 {
        font-size: clamp(48px, 14vw, 74px);
    }

    .home-note-row {
        grid-template-columns: 32px minmax(0, 1fr) 28px;
        gap: 14px;
        min-height: 0;
        padding: 22px 0;
    }

    .home-note-image {
        display: none;
    }

    .home-note-main h3 {
        font-size: 21px;
    }

    .contact-section {
        padding: 100px 0 90px;
    }

    .contact-grid {
        margin-top: 48px;
    }

    .contact-title h2 {
        font-size: clamp(58px, 18vw, 92px);
    }

    .contact-description {
        font-size: 16px;
    }

    .project-page,
    .about-page,
    .services-page,
    .contacts-page,
    .notes-page,
    .note-detail-page {
        padding-top: 120px;
        padding-bottom: 90px;
    }

    .about-hero,
    .services-hero,
    .contacts-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 48px;
    }

    .about-hero-content h1,
    .services-hero-content h1,
    .contacts-hero-content h1 {
        font-size: clamp(58px, 17vw, 94px);
    }

    .about-story,
    .about-principles,
    .about-cycle {
        padding-top: 90px;
    }

    .about-cycle-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-cycle-item {
        min-height: 230px;
    }

    .about-cycle-item span {
        margin-bottom: 48px;
    }

    .services-list {
        margin-top: 70px;
    }

    .service-detail {
        grid-template-columns: 35px minmax(0, 1fr);
        gap: 18px;
        padding: 38px 0;
    }

    .service-detail-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-detail-heading h2 {
        font-size: clamp(38px, 11vw, 60px);
    }

    .services-final {
        margin-top: 85px;
    }

    .contacts-main {
        margin-top: 70px;
        padding-top: 35px;
    }

    .notes-header {
        margin-top: 48px;
    }

    .notes-header h1 {
        font-size: clamp(58px, 17vw, 94px);
    }

    .notes-list {
        margin-top: 70px;
    }

    .note-card {
        grid-template-columns: 32px minmax(0, 1fr) 28px;
        gap: 14px;
        min-height: 0;
        padding: 22px 0;
    }

    .note-cover {
        display: none;
    }

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

    .project-header {
        margin-top: 48px;
    }

    .project-title-block h1 {
        font-size: clamp(35px, 8vw, 90px);
    }

    .project-image {
        margin-top: 50px;
    }

    .case-section {
        padding-top: 75px;
    }

    .case-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 28px;
    }

    .case-grid h2 {
        font-size: clamp(40px, 12vw, 64px);
    }

    .video-section,
    .project-gallery {
        padding-top: 85px;
    }

    .video-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
        padding-top: 28px;
    }

    .video-header-meta {
        text-align: left;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-back {
        margin-top: 60px;
    }

    .note-detail-header {
        margin-top: 48px;
    }

    .note-detail-header h1 {
        font-size: clamp(52px, 15vw, 88px);
    }

    .note-detail-excerpt {
        margin-top: 28px;
        font-size: 17px;
    }

    .note-detail-cover {
        margin-top: 50px;
    }

    .note-article {
        margin-top: 60px;
        font-size: 16px;
    }

    .note-article h2 {
        font-size: 34px;
    }

    .note-article h3 {
        font-size: 25px;
    }

    .lightbox {
        padding: 25px 16px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 14px;
        right: 16px;
    }

    .site-footer .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}


/* =========================================================
   22. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* ABOUT — RESPONSIVE SERVICES GRID */

@media (max-width: 900px) {
    .about-cycle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .about-cycle-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================================
   SERVICES — VISUAL REFINEMENT
   ======================================================== */

.service-detail {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 30px;
    padding: 48px 0;
}

.service-detail-main {
    grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
    gap: 60px;
}

.service-detail-heading h2 {
    font-size: clamp(42px, 4.2vw, 60px);
    line-height: .92;
    letter-spacing: -.055em;
}

.service-detail-content > p {
    max-width: 620px;
    margin-bottom: 24px;
    color: #aaa;
    font-size: 15px;
    line-height: 1.6;
}

.service-detail-includes > span {
    margin-bottom: 10px;
    font-size: 9px;
}

.service-detail-includes li {
    padding: 7px 0;
    font-size: 12px;
    line-height: 1.45;
}

/* Keep the detailed layout comfortable on tablets. */
@media (max-width: 900px) {
    .service-detail {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 24px;
        padding: 40px 0;
    }

    .service-detail-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .service-detail-heading h2 {
        font-size: clamp(38px, 8vw, 54px);
    }
}

/* Mobile: compact, readable single-column service blocks. */
@media (max-width: 600px) {
    .service-detail {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 16px;
        padding: 34px 0;
    }

    .service-detail-heading h2 {
        font-size: clamp(34px, 11vw, 46px);
    }

    .service-detail-content > p {
        font-size: 14px;
        line-height: 1.55;
    }

    .service-detail-includes li {
        padding: 7px 0;
        font-size: 12px;
    }
}


/* CONTACT FORM — HONEYPOT */
.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* WORKS: full cover without cropping */
.project-row-image {
    height: 160px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-row-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center;
    transform: none;
}

.project-row:hover .project-row-image img {
    transform: none;
}

@media (max-width: 900px) {
    .project-row-image {
        height: 150px;
    }
}

@media (max-width: 700px) {
    .project-row-image {
        height: auto;
        min-height: 180px;
    }

    .project-row-image img {
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: contain !important;
    }
}

/* =========================================================
   MOBILE — длинное слово ВИДЕОМОНТАЖА
   ========================================================= */

@media (max-width: 768px) {

    .hero h1 span,
    .about-hero-content h1 span {
        display: inline-block;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

}


/* =========================================================
   RESTORE — NOTES / NOTE DETAIL
   Старое оформление содержания и статьи
   ========================================================= */

/* TABLE OF CONTENTS */
.note-toc {
    max-width: 760px;
    margin: 80px auto 0;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.note-toc-label {
    margin-bottom: 22px;
    color: #666;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.note-toc ol {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.note-toc li {
    margin: 0;
    padding: 0;
}

.note-toc a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 15px;
    align-items: baseline;
    padding: 11px 0;
    color: #999;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    transition: color .25s ease, padding-left .25s ease;
}

.note-toc a span {
    color: #555;
    font-family: monospace;
    font-size: 10px;
}

.note-toc a:hover {
    padding-left: 7px;
    color: #f5f5f5;
}

.note-toc a:hover span {
    color: var(--accent);
}

/* ARTICLE */
.note-article {
    max-width: 760px;
    margin: 100px auto 0;
    color: #bbb;
    font-size: 17px;
    line-height: 1.9;
}

.note-article p {
    margin: 0 0 28px;
    color: #b5b5b5;
    font-size: 17px;
    line-height: 1.9;
}

.note-article h2 {
    margin: 80px 0 30px;
    color: #f5f5f5;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.note-article h3 {
    margin: 55px 0 22px;
    color: #eee;
    font-size: 24px;
    line-height: 1.1;
}

.note-article strong {
    color: #eee;
}

.note-article a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.note-article ul,
.note-article ol {
    margin-bottom: 26px;
    padding-left: 24px;
}

.note-article blockquote {
    margin: 35px 0;
    padding-left: 24px;
    border-left: 2px solid var(--accent);
    color: #ddd;
}

/* FOOTER OF NOTE */
.note-detail-footer {
    max-width: 760px;
    margin: 100px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.12);
}

/* MOBILE NOTES / ARTICLE */
@media (max-width: 900px) {
    .notes-header {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 60px;
    }

    .note-card {
        grid-template-columns: 45px minmax(0, 1fr) 35px;
        gap: 20px;
        min-height: 0;
        padding: 30px 0;
    }

    .note-cover {
        grid-column: 2;
        grid-row: 2;
        margin-top: 10px;
    }

    .note-arrow {
        grid-column: 3;
        grid-row: 1;
    }

    .note-content p {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .notes-page,
    .note-detail-page {
        padding: 130px 0 90px;
    }

    .notes-header {
        margin-top: 45px;
    }

    .notes-header h1 {
        font-size: clamp(54px, 17vw, 90px);
    }

    .note-card {
        grid-template-columns: 35px minmax(0, 1fr) 25px;
        gap: 12px;
    }

    .note-content h2 {
        font-size: 27px;
    }

    .note-meta {
        flex-wrap: wrap;
        gap: 8px 15px;
        margin-bottom: 15px;
    }

    .note-detail-header {
        margin-top: 45px;
    }

    .note-detail-header h1 {
        font-size: clamp(48px, 14vw, 80px);
    }

    .note-detail-cover {
        margin-top: 55px;
    }

    .note-article {
        margin-top: 65px;
    }

    .note-article p {
        font-size: 16px;
        line-height: 1.8;
    }

    .note-article h2 {
        margin-top: 60px;
    }

    .note-toc {
        margin-top: 55px;
        padding: 25px 0;
    }

    .note-toc a {
        grid-template-columns: 35px 1fr;
        gap: 10px;
        font-size: 12px;
    }
}

/* Anchor offset for the fixed header */
.note-article h2,
.note-article h3 {
    scroll-margin-top: 110px;
}


/* =========================================================
   PAGE HEADINGS — возвращаем более сдержанный масштаб
   Заголовок отдельной заметки не изменяем.
   ========================================================= */

.about-hero-content h1,
.services-hero-content h1,
.contacts-hero-content h1 {
    font-size: clamp(52px, 7vw, 105px);
}

.works-page-intro h1 {
    font-size: clamp(54px, 7.5vw, 110px);
}

.notes-header h1 {
    font-size: clamp(54px, 7vw, 105px);
}

@media (max-width: 800px) {

    .about-hero-content h1,
    .services-hero-content h1,
    .contacts-hero-content h1 {
        font-size: clamp(48px, 14vw, 78px);
    }

    .works-page-intro h1 {
        font-size: clamp(50px, 15vw, 82px);
    }

    .notes-header h1 {
        font-size: clamp(50px, 15vw, 82px);
    }
}

/* =========================================================
   FOOTER — SITE SETTINGS
   ========================================================= */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin-top: 0;
    padding: 70px 0 30px;
}

.site-footer .container {
    display: block;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand,
.footer-contact,
.footer-details {
    min-width: 0;
}

.footer-logo {
    margin-bottom: 18px;
    color: #f5f5f5;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.footer-description {
    max-width: 280px;
    color: #777;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-contact > a {
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact > a:hover {
    color: #ffffff;
}

.footer-messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}

.footer-messengers a {
    color: #777;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.25s ease;
}

.footer-messengers a:hover {
    color: #ffffff;
}

.footer-details {
    color: #666;
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-address {
    margin-top: 8px;
    max-width: 260px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #4f4f4f;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 800px) {

    .site-footer {
        padding: 50px 0 25px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .footer-description {
        max-width: 320px;
    }

    .footer-contact {
        gap: 12px;
    }

    .footer-details {
        padding-top: 5px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

}
/* =========================================================
   CONTACTS — LAYOUT FIX
   ========================================================= */

@media (min-width: 801px) {

    .contacts-main {
        display: grid;
        grid-template-columns: minmax(250px, .75fr) minmax(0, 1fr);
        gap: 120px;
        align-items: start;
    }

    .contacts-info {
        display: flex;
        flex-direction: column;
        gap: 55px;
        padding-top: 45px;
    }

    .contacts-form-wrap {
        width: 100%;
        max-width: 650px;
    }

}

@media (max-width: 800px) {

    .contacts-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 70px;
    }

}

/* =========================================================
   HERO — VIDEO / IMAGE BACKGROUND
   ========================================================= */

.hero {
    isolation: isolate;
    background: #080808;
}

.hero-background-video,
.hero-background-image {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
}

.hero-background-video {
    display: block;
    object-fit: cover;
    object-position: center center;
}

.hero-background-image {
    display: block;
}

.hero-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-background-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #000;
    opacity: calc(var(--hero-overlay-opacity) / 100);
    pointer-events: none;
}

/* Grid остаётся поверх фонового видео / фото */
.hero-grid {
    z-index: -1;
}

/* Текст Hero всегда поверх фона */
.hero-inner {
    z-index: 1;
}


/* =========================================================
   HERO — MOBILE BACKGROUND
   ========================================================= */

@media (max-width: 800px) {

    .hero-background-video,
    .hero-background-image,
    .hero-background-image img {
        object-position: center center;
    }

}

/* =========================================================
   SERVICES INTRO
   Использует визуальную систему SERVICES FINAL
   ========================================================= */

.services-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 100px;
    margin-top: 100px;
    padding-top: 45px;
    /*border-top: 1px solid var(--line);*/
    align-items: start;
}

.services-intro-heading h2 {
    margin: 0;
    font-size: clamp(50px, 7vw, 92px);
    line-height: .85;
    letter-spacing: -.065em;
}

.services-intro-content {
    max-width: 550px;
    color: #aaa;
    font-size: 17px;
    line-height: 1.65;
}

.services-intro-content p {
    margin: 0 0 24px;
}

.services-intro-content p:last-child {
    margin-bottom: 0;
}

.services-intro-content strong {
    color: #eee;
}

.services-intro-content em {
    color: #ddd;
}

.services-intro-content ul,
.services-intro-content ol {
    margin: 0 0 24px;
    padding-left: 20px;
}

.services-intro-content li {
    margin-bottom: 8px;
}

.services-intro-content blockquote {
    margin: 28px 0;
    padding-left: 24px;
    border-left: 2px solid var(--accent);
    color: #ddd;
}

.services-intro-content a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

.services-intro-content a:hover {
    color: var(--accent);
}


/* MOBILE */

@media (max-width: 800px) {

    .services-intro {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 85px;
        padding-top: 35px;
    }

    .services-intro-heading h2 {
        font-size: clamp(44px, 13vw, 70px);
    }

    .services-intro-content {
        max-width: none;
        font-size: 16px;
        line-height: 1.6;
    }

}


/* =========================================================
   EXPERIENCE / HISTORY
   ========================================================= */

.experience-page {
    padding: 80px 0 0;
}

.experience-header {
    position: relative;
    min-height: 520px;
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    margin-bottom: 100px;
    overflow: hidden;
}

.experience-header::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            rgba(20, 18, 20, 1) 0%,
            rgba(20, 18, 20, .25) 35%,
            rgba(20, 18, 20, 0) 100%
        ),
        url("/media/experience/hero.jpg") center center / cover no-repeat;
    z-index: -1;
}

.experience-header h1 {
    margin: 0;
    font-size: clamp(64px, 8vw, 130px);
    line-height: .86;
    font-weight: 400;
    letter-spacing: -.045em;
}

.experience-header h1 span {
    color: #F55A1F;
}

.experience-header p {
    max-width: 470px;
    margin: 35px 0 0;
    font-size: 17px;
    line-height: 1.6;
    opacity: .65;
}

/* TIMELINE */

.experience-list {
    position: relative;
    padding: 20px 0 100px;
}

.experience-list::before {
    content: "";
    position: absolute;
    left: 56px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,.16);
}

.experience-item {
    position: relative;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 280px;
    gap: 40px;
    align-items: center;
    min-height: 280px;
    padding: 55px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.experience-item::before {
    content: "";
    position: absolute;
    left: 49px;
    top: 65px;
    width: 14px;
    height: 14px;
    border: 3px solid #F55A1F;
    border-radius: 50%;
    background: #141214;
    box-sizing: border-box;
}

.experience-period {
    align-self: start;
    padding-top: 5px;
    padding-left: 70px;
    color: #F55A1F;
    font-size: 13px;
    letter-spacing: .12em;
    /*padding-left: 0;*/
    white-space: nowrap;
}

.experience-content {
    padding-left: 20px;
    padding-top: 30px;
}

.experience-content h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 500;
}

.experience-content h3 {
    margin: 0 0 22px;
    font-size: 17px;
    font-weight: 400;
    opacity: .75;
}

.experience-content p {
    max-width: 570px;
    margin: 0 0 25px;
    font-size: 15px;
    line-height: 1.65;
    opacity: .62;
}

.experience-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.experience-content li {
    position: relative;
    margin: 8px 0;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.4;
    opacity: .7;
}

.experience-content li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #F55A1F;
}

.experience-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    /*overflow: hidden;*/
    /*background: #1A1A1A;*/
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.experience-item:hover .experience-image img {
    transform: scale(1.04);
}

/* MOBILE */

@media (max-width: 800px) {

    .experience-page {
        padding-top: 50px;
    }

    .experience-header {
        min-height: 430px;
        display: flex;
        align-items: flex-end;
        margin-bottom: 60px;
        padding: 40px 0;
    }

    .experience-header::after {
        width: 100%;
        background:
            linear-gradient(
                0deg,
                rgba(20,18,20,1) 5%,
                rgba(20,18,20,.35) 70%,
                rgba(20,18,20,.15) 100%
            ),
            url("/media/experience/hero.jpg") center center / cover no-repeat;
    }

    .experience-header h1 {
        font-size: clamp(52px, 15vw, 90px);
    }

    .experience-header p {
        margin-top: 25px;
        font-size: 15px;
    }

    .experience-list {
        padding-bottom: 60px;
    }

    .experience-list::before {
        left: 7px;
    }

    .experience-item {
        display: block;
        min-height: 0;
        padding: 45px 0 45px 38px;
    }

    .experience-item::before {
        left: 0;
        top: 50px;
    }

    .experience-period {
        padding: 0;
        margin-bottom: 14px;
        font-size: 12px;
        white-space: normal;
    }

    .experience-content {
        padding: 0;
    }

    .experience-content h2 {
        font-size: 26px;
    }

    .experience-content h3 {
        font-size: 15px;
    }

    .experience-image {
        margin-top: 30px;
        aspect-ratio: 16 / 10;
    }
}
/* =========================================================
   EXPERIENCE HERO
   Использует визуальную систему основного HERO
   ========================================================= */

.experience-hero {
    position: relative;
    min-height: 100vh;
}

.experience-hero-background {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

.experience-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.02);
}

.experience-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: rgb(0 0 0 / var(--experience-overlay, 55%));
    pointer-events: none;
}

.experience-hero .hero-grid {
    z-index: -1;
}

.experience-hero .hero-inner {
    z-index: 1;
}

.experience-hero .hero-title-accent {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.8);
}

.experience-hero .hero-description {
    max-width: 560px;
}

.experience-hero .hero-bottom {
    margin-top: auto;
}


/* =========================================================
   EXPERIENCE HERO — MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .experience-hero {
        min-height: 100svh;
    }

    .experience-hero-background img {
        object-position: center center;
    }

    .experience-hero .hero-title-accent {
        -webkit-text-stroke: .7px rgba(255,255,255,.8);
    }

    .experience-hero .hero-description {
        max-width: 100%;
    }

}
