/* ==========================================================================
   CENTO — Mimarlık & Dekorasyon
   Editorial / Modern Architecture Theme
   ========================================================================== */

:root {
    --ink: #17140f;
    --ink-soft: #35312a;
    --paper: #f6f3ed;
    --paper-soft: #eee8db;
    --paper-deep: #e4dcc9;
    --white: #ffffff;
    --brick: #af5430;
    --brick-dark: #8a4025;
    --brick-soft: #d99a71;
    --muted: #726c5f;
    --line: rgba(23, 20, 15, 0.12);
    --line-dark: rgba(246, 243, 237, 0.14);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.6s;
    --header-h: 92px;

    --shadow: 0 30px 60px -20px rgba(23, 20, 15, 0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
}

::selection { background: var(--brick); color: var(--white); }

/* ─── Scrollbar / Progress ─── */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0%;
    background: var(--brick);
    z-index: 10001;
    transition: width 0.1s linear;
}

/* ─── Preloader ─── */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--paper);
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 20px;
}
.loader-line {
    width: 160px; height: 1px;
    background: rgba(246,243,237,0.15);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.loader-line::after {
    content: '';
    position: absolute; left: 0; top: 0;
    height: 100%; width: 0%;
    background: var(--brick);
    animation: loaderFill 1.6s var(--ease) forwards;
}
@keyframes loaderFill { to { width: 100%; } }
.loader-counter {
    margin-top: 14px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--brick-soft);
}

/* ─── Header ─── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    transition: background 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(246, 243, 237, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--line);
}
.header.hide { transform: translateY(-100%); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 40px; height: 40px;
    border: 1.5px solid var(--ink);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.4s, background 0.4s;
}
.logo-mark::before {
    content: 'C';
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--ink);
    transition: color 0.4s;
}
.header:not(.scrolled) .logo-mark { border-color: var(--paper); }
.header:not(.scrolled) .logo-mark::before { color: var(--paper); }
.logo:hover .logo-mark { background: var(--brick); border-color: var(--brick); }
.logo:hover .logo-mark::before { color: var(--white); }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    color: var(--ink);
    transition: color 0.4s;
}
.header:not(.scrolled) .logo-text { color: var(--paper); }
.logo-sub {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brick);
    font-weight: 500;
    margin-top: 1px;
}

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
    position: relative;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink);
    transition: color 0.3s;
}
.header:not(.scrolled) .nav-link { color: rgba(246,243,237,0.88); }
.nav-link span { position: relative; }
.nav-link span::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.nav-link:hover span::after, .nav-link.active span::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-link:hover, .nav-link.active { color: var(--brick); }
.header:not(.scrolled) .nav-link:hover,
.header:not(.scrolled) .nav-link.active { color: var(--white); }

.nav-link-cta {
    margin-left: 14px;
    padding: 11px 26px;
    background: var(--ink);
    color: var(--paper) !important;
}
.header:not(.scrolled) .nav-link-cta { background: var(--paper); color: var(--ink) !important; }
.nav-link-cta span::after { display: none; }
.nav-link-cta:hover { background: var(--brick); color: var(--white) !important; }

.nav-toggle {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    width: 44px; height: 44px;
}
.nav-toggle span {
    display: block; width: 100%; height: 1.5px;
    background: var(--ink);
    transition: var(--dur) var(--ease);
}
.header:not(.scrolled) .nav-toggle span { background: var(--paper); }
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 34px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s, transform 0.3s;
}
.btn i { font-size: 0.8rem; transition: transform 0.35s var(--ease); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brick); transform: translateY(-2px); }
.btn-primary:hover i { transform: translateX(4px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(246,243,237,0.4); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; justify-content: center; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
    color: var(--brick);
    transition: gap 0.3s var(--ease);
}
.link-arrow:hover { gap: 14px; }
.bg-dark .link-arrow { color: var(--brick-soft); }

/* ─── Hero (Split + Showcase Slider) ─── */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--ink);
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    overflow: hidden;
}
.hero-compact { min-height: clamp(620px, 94vh, 920px); }
.hero-ambient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 78% 38%, rgba(175,84,48,0.14) 0%, transparent 62%),
        radial-gradient(ellipse 40% 35% at 12% 78%, rgba(175,84,48,0.08) 0%, transparent 55%);
    pointer-events: none;
}

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    width: 100%;
    padding: clamp(40px, 6vh, 72px) 0;
}
.hero-text { position: relative; z-index: 2; color: var(--paper); }
.hero-eyebrow {
    display: flex; align-items: center; gap: 14px;
    font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--brick-soft); margin-bottom: 28px;
    opacity: 0; transform: translateY(16px);
    animation: heroIn 0.9s 0.15s var(--ease) forwards;
}
.hero-eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--brick-soft); }
.hero-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
    line-height: 1.06;
    margin-bottom: 26px;
    opacity: 0; transform: translateY(24px);
    animation: heroIn 1s 0.3s var(--ease) forwards;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.hero-title.is-changing { opacity: 0; transform: translateY(12px); }
.hero-desc {
    font-size: 1.02rem;
    color: rgba(246,243,237,0.65);
    max-width: 460px;
    font-weight: 300;
    margin-bottom: 36px;
    line-height: 1.75;
    opacity: 0; transform: translateY(20px);
    animation: heroIn 1s 0.45s var(--ease) forwards;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.hero-desc.is-changing { opacity: 0; transform: translateY(10px); }
.hero-actions {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    margin-bottom: 48px;
    opacity: 0; transform: translateY(20px);
    animation: heroIn 1s 0.6s var(--ease) forwards;
}
.hero-meta {
    display: flex; gap: clamp(24px, 4vw, 48px);
    padding-top: 28px;
    border-top: 1px solid var(--line-dark);
    opacity: 0; transform: translateY(20px);
    animation: heroIn 1s 0.75s var(--ease) forwards;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.9rem;
    color: var(--brick-soft);
    line-height: 1;
}
.hero-meta-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(246,243,237,0.45);
}
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-visual {
    position: relative;
    z-index: 1;
    aspect-ratio: 4/5;
    max-height: 76vh;
    min-height: 420px;
}
.hero-frame-deco {
    position: absolute;
    inset: 20px -20px -20px 20px;
    border: 1px solid rgba(246,243,237,0.18);
    z-index: 0;
    pointer-events: none;
}
.hero-showcase {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #1a1612;
    box-shadow: 0 32px 80px rgba(0,0,0,0.45);
}
.hero-slide-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 1.35s var(--ease), visibility 1.35s;
}
.hero-slide-panel.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.hero-slide-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 8s linear, opacity 1.2s var(--ease);
    will-change: transform;
}
.hero-slide-panel.is-active .hero-slide-media img {
    transform: scale(1);
    animation: heroKenBurns 9s ease-out forwards;
}
.hero-slide-placeholder {
    object-fit: cover;
    filter: saturate(0.85);
}
@keyframes heroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}
.hero-slide-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(23,20,15,0.82) 0%, rgba(23,20,15,0.15) 42%, rgba(23,20,15,0.08) 100%),
        linear-gradient(to right, rgba(23,20,15,0.25) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}
.hero-slide-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 28px 24px 76px;
    transform: translateY(16px);
    opacity: 0;
    transition: opacity 0.8s 0.25s var(--ease), transform 0.8s 0.25s var(--ease);
}
.hero-slide-panel.is-active .hero-slide-meta {
    transform: translateY(0);
    opacity: 1;
}
.hero-slide-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--brick-soft);
    line-height: 1;
    opacity: 0.9;
}
.hero-slide-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 4px;
}
.hero-slide-caption strong {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--paper);
    font-weight: 400;
}
.hero-slide-caption span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(246,243,237,0.55);
}

.hero-showcase-ui {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(to top, rgba(23,20,15,0.88) 0%, rgba(23,20,15,0.45) 55%, transparent 100%);
}
.hero-showcase-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--paper);
    min-width: 72px;
}
.hero-showcase-counter #heroCurrent { color: var(--brick-soft); }
.hero-showcase-sep {
    display: block;
    width: 28px;
    height: 1px;
    background: rgba(246,243,237,0.25);
}
.hero-showcase-progress {
    display: flex;
    gap: 6px;
    align-items: center;
}
.hero-progress-seg {
    flex: 1;
    height: 2px;
    min-width: 36px;
    background: rgba(246,243,237,0.16);
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s;
}
.hero-progress-seg:hover { background: rgba(246,243,237,0.28); }
.hero-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--brick-soft);
}
.hero-progress-seg.is-active .hero-progress-fill {
    animation: heroProgressFill var(--hero-duration, 7s) linear forwards;
}
.hero-progress-seg.is-done .hero-progress-fill { width: 100%; animation: none; }
@keyframes heroProgressFill { to { width: 100%; } }

.hero-showcase-arrows { display: flex; gap: 8px; }
.hero-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(246,243,237,0.22);
    background: rgba(246,243,237,0.06);
    color: var(--paper);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    backdrop-filter: blur(6px);
}
.hero-arrow:hover {
    background: var(--brick);
    border-color: var(--brick);
    transform: translateY(-2px);
}

/* Marquee strip under hero */
.marquee-band {
    background: var(--paper-soft);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    overflow: hidden;
}
.marquee-band .marquee-track {
    display: flex; gap: 0;
    animation: marquee 26s linear infinite;
    width: max-content;
}
.marquee-item {
    display: flex; align-items: center; gap: 20px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--ink-soft);
    padding: 0 28px;
    white-space: nowrap;
}
.marquee-item i { color: var(--brick); font-size: 0.7rem; font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Sections (generic) ─── */
.section { padding: clamp(64px, 10vh, 120px) 0; position: relative; }
.section-compact { padding: clamp(48px, 7vh, 76px) 0; }
.section.bg-dark { background: var(--ink); color: var(--paper); }
.section.bg-light { background: var(--paper-soft); }
.bg-cream { background: var(--paper-soft); }

.section-header { margin-bottom: clamp(40px, 7vh, 68px); }
.section-header.center { text-align: center; }
.section-label {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--brick); font-weight: 600;
    margin-bottom: 16px;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--brick); }
.section-header.center .section-label::before { display: none; }
.section-label.light { color: var(--brick-soft); }
.section-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    line-height: 1.12;
}
.section-title-sm { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-title.light { color: var(--paper); }
.section-desc {
    color: var(--muted);
    margin-top: 18px;
    max-width: 560px;
    font-weight: 300;
    font-size: 1rem;
}
.section-desc.light { color: rgba(246,243,237,0.55); }
.section-header.center .section-desc { margin-left: auto; margin-right: auto; }
.section-footer { margin-top: 48px; }
.center { text-align: center; }
.hide-mobile { display: inline-flex; }
.show-mobile { display: none; }

/* ─── About / Intro band ─── */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-wrap img {
    width: 100%; aspect-ratio: 4/5; object-fit: cover;
    filter: grayscale(15%);
    transition: filter 0.6s, transform 1s var(--ease);
}
.about-image-wrap:hover img { filter: grayscale(0%); transform: scale(1.02); }
.about-image-frame {
    position: absolute; inset: 18px -18px -18px 18px;
    border: 1px solid var(--brick);
    z-index: -1;
}
.about-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--ink);
    color: var(--paper);
    padding: 18px 24px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
}
.about-badge small {
    display: block; font-family: var(--font-body); font-style: normal;
    font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--brick-soft); margin-top: 3px; font-weight: 600;
}
.about-text { color: var(--ink-soft); font-weight: 300; margin: 20px 0 28px; }
.about-text p + p { margin-top: 14px; }

.intro-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: end;
    padding-bottom: clamp(32px, 5vw, 48px);
    border-bottom: 1px solid var(--line);
}
.intro-excerpt {
    color: var(--ink-soft); font-weight: 300; line-height: 1.8;
    margin: 16px 0 22px; max-width: 540px;
}
.stats-inline { display: flex; gap: clamp(14px, 3vw, 28px); justify-content: flex-end; flex-wrap: wrap; }
.stat-pill {
    text-align: center; padding: 20px 22px;
    border: 1px solid var(--line);
    min-width: 116px;
    transition: border-color 0.3s, transform 0.3s var(--ease);
}
.stat-pill:hover { border-color: var(--brick); transform: translateY(-3px); }
.stat-pill-num {
    display: block; font-family: var(--font-display); font-style: italic;
    font-size: 2rem; color: var(--brick); line-height: 1; margin-bottom: 6px;
}
.stat-pill-label { font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ─── Stats grid (standalone page) ─── */
.stats-section { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vh, 90px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); }
.stat-item { background: var(--ink); text-align: center; padding: 40px 20px; }
.stat-number, .stat-suffix {
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--brick-soft); line-height: 1;
    display: inline;
}
.stat-title { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 14px; opacity: 0.6; }

/* ─── Work / Projects ─── */
.work-header, .strip-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.work-tabs { display: flex; gap: 4px; background: var(--paper-deep); padding: 4px; }
.work-tab {
    padding: 10px 22px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; background: transparent; border: none; cursor: pointer;
    color: var(--muted); transition: 0.3s;
}
.work-tab.active { background: var(--white); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.work-panel { display: none; }
.work-panel.active { display: block; }

.scroll-track-wrap { position: relative; }
.scroll-track {
    display: flex; gap: 22px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 4px 4px 16px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-btn {
    position: absolute; top: 50%; transform: translateY(-90%);
    width: 46px; height: 46px; background: var(--white);
    border: 1px solid var(--line); cursor: pointer; z-index: 2;
    transition: 0.3s;
}
.scroll-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.scroll-prev { left: -14px; }
.scroll-next { right: -14px; }

.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.project-card, .work-card { display: block; }
.project-card:nth-child(1) { grid-column: span 8; }
.project-card:nth-child(2), .project-card:nth-child(3) { grid-column: span 4; }
.project-card:nth-child(n+4) { grid-column: span 4; }
.project-card:nth-child(1) .project-image { aspect-ratio: 16/9; }
.projects-grid-3 { grid-template-columns: repeat(3, 1fr); }
.projects-grid-3 .project-card { grid-column: span 1 !important; }
.projects-grid-3 .project-card .project-image { aspect-ratio: 4/5 !important; }

.work-card { flex: 0 0 clamp(270px, 30vw, 340px); scroll-snap-align: start; }

.project-image, .work-card-img {
    position: relative; overflow: hidden; aspect-ratio: 4/5;
    background: var(--paper-deep);
}
.project-image img, .work-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(35%);
    transition: transform 1s var(--ease), filter 0.6s;
}
.project-card:hover .project-image img,
.work-card:hover .work-card-img img { transform: scale(1.06); filter: grayscale(0%); }
.project-num {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
    color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(23,20,15,0.55), transparent 55%);
    display: flex; align-items: flex-end; justify-content: flex-end;
    padding: 16px; opacity: 0; transition: opacity 0.4s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-view {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--brick); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    transform: scale(0.6); transition: transform 0.4s var(--ease);
}
.project-card:hover .project-view { transform: scale(1); }
.sanaltur-badge, .tour-tag {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    background: var(--brick); color: var(--white);
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
    padding: 7px 13px;
}
.project-info, .work-card-body {
    padding: 20px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 18px;
}
.work-card-body { padding: 20px 4px 4px; }
.project-info h3, .work-card-body h3 {
    font-family: var(--font-display); font-style: italic; font-weight: 400;
    font-size: 1.25rem; margin-bottom: 6px; transition: color 0.3s;
}
.project-card:hover h3, .work-card:hover h3 { color: var(--brick); }
.project-info p, .work-card-body p {
    font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 6px;
}
.project-info p i { color: var(--brick); }
.work-card-num { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--brick); font-weight: 600; display: block; margin-bottom: 4px; }
.bg-dark .project-info h3 { color: var(--paper); }
.bg-dark .project-card:hover h3 { color: var(--brick-soft); }
.bg-dark .project-info p { color: rgba(246,243,237,0.5); }
.work-footer { margin-top: 24px; }

/* ─── Services ─── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.services-grid-lg { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.service-card {
    background: var(--paper); padding: 44px 32px;
    position: relative; transition: background 0.4s;
}
.service-card:hover { background: var(--white); }
.service-num {
    font-family: var(--font-display); font-style: italic; font-size: 2.4rem;
    color: var(--paper-deep); line-height: 1; margin-bottom: 18px; transition: color 0.4s;
}
.service-card:hover .service-num { color: var(--brick-soft); }
.service-icon {
    width: 52px; height: 52px; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--brick); font-size: 1.2rem; margin-bottom: 20px;
    transition: 0.4s var(--ease);
}
.service-card:hover .service-icon { background: var(--brick); color: var(--white); border-color: var(--brick); }
.service-card h3 { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.9rem; font-weight: 300; line-height: 1.7; }

.services-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-pill {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px; background: var(--white);
    border: 1px solid transparent; transition: 0.3s;
    font-size: 0.875rem; font-weight: 500;
}
.service-pill i { color: var(--brick); width: 20px; text-align: center; }
.service-pill:hover { border-color: var(--brick); transform: translateY(-2px); }

/* ─── Team ─── */
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 230px));
    gap: clamp(28px, 4vw, 44px); justify-content: center;
}
.team-card { text-align: center; }
.team-image { overflow: hidden; margin-bottom: 24px; position: relative; }
.team-image::before {
    content: ''; position: absolute; inset: 14px -14px -14px 14px;
    border: 1px solid var(--brick); z-index: -1; opacity: 0;
    transform: translate(-6px, 6px); transition: 0.4s var(--ease);
}
.team-card:hover .team-image::before { opacity: 1; transform: translate(0, 0); }
.team-image img {
    width: 100%; aspect-ratio: 4/5; object-fit: cover;
    filter: grayscale(65%); transition: transform 1s var(--ease), filter 0.6s;
}
.team-card:hover .team-image img { transform: scale(1.05); filter: grayscale(0%); }
.team-info h3 { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; margin-bottom: 10px; }
.team-info p {
    display: inline-block; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brick); font-weight: 600; padding: 6px 16px; border: 1px solid var(--line);
    transition: border-color 0.3s, background 0.3s;
}
.team-card:hover .team-info p { border-color: var(--brick); background: var(--paper-soft); }

/* ─── Testimonials ─── */
.testimonials-slider { max-width: 760px; margin: 0 auto; position: relative; min-height: 220px; }
.testimonial-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s; text-align: center; }
.testimonial-slide.active { position: relative; opacity: 1; }
.testimonial-quote { font-size: 2.2rem; color: var(--brick); margin-bottom: 20px; opacity: 0.6; }
.testimonial-content p {
    font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    color: var(--ink); margin-bottom: 26px; line-height: 1.55;
}
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author h4 { font-size: 0.85rem; font-weight: 600; }
.testimonial-author span { font-size: 0.78rem; color: var(--muted); }
.testimonials-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.test-prev, .test-next {
    width: 42px; height: 42px; border: 1px solid var(--line); background: transparent;
    cursor: pointer; transition: 0.3s;
}
.test-prev:hover, .test-next:hover { background: var(--brick); border-color: var(--brick); color: var(--white); }
.test-dots { display: flex; gap: 6px; }
.test-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--paper-deep); border: none; cursor: pointer; }
.test-dot.active { background: var(--brick); width: 20px; border-radius: 3px; transition: 0.3s; }

.testimonials-compact blockquote {
    font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: rgba(246,243,237,0.92); line-height: 1.5; margin-bottom: 14px;
}
.testimonials-compact cite { font-size: 0.78rem; color: rgba(246,243,237,0.45); font-style: normal; }
.trust-band { padding: clamp(44px, 6vh, 64px) 0; }
.trust-quote { max-width: 700px; margin: 0 auto; text-align: center; }
.trust-quote + .references-section { margin-top: clamp(40px, 5vw, 56px); }
.testimonials-nav-compact { margin-top: 24px; }
.testimonials-nav-compact .test-prev,
.testimonials-nav-compact .test-next {
    width: 44px; height: 44px;
    border-color: rgba(246,243,237,0.22);
    color: var(--paper);
    background: rgba(246,243,237,0.06);
}
.testimonials-nav-compact .test-prev:hover,
.testimonials-nav-compact .test-next:hover {
    background: var(--brick);
    border-color: var(--brick);
    color: var(--white);
}

/* ─── References band ─── */
.references-section {
    padding-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid rgba(246,243,237,0.1);
}
.references-header {
    text-align: center;
    margin-bottom: clamp(28px, 4vw, 40px);
}
.references-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brick-soft);
    font-weight: 600;
}
.references-eyebrow::before,
.references-eyebrow::after {
    content: '';
    width: 36px;
    height: 1px;
    background: rgba(175,84,48,0.55);
}
.references-header p {
    margin-top: 10px;
    font-size: 0.88rem;
    color: rgba(246,243,237,0.48);
    font-weight: 300;
}
.references-track-wrap {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.references-track-wrap:hover .references-track { animation-play-state: paused; }
.references-track {
    display: flex;
    gap: 14px;
    width: max-content;
    align-items: stretch;
    animation: referencesMarquee 42s linear infinite;
}
@keyframes referencesMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.reference-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(128px, 14vw, 168px);
    height: 76px;
    padding: 18px 28px;
    background: rgba(246,243,237,0.035);
    border: 1px solid rgba(246,243,237,0.1);
    border-radius: 2px;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
    text-decoration: none;
}
.reference-card:hover {
    background: rgba(246,243,237,0.08);
    border-color: rgba(175,84,48,0.42);
    transform: translateY(-3px);
}
.reference-card img {
    max-width: 100%;
    max-height: 38px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.75) contrast(0.92);
    opacity: 0.78;
    transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
}
.reference-card:hover img {
    filter: grayscale(0%) brightness(1.05);
    opacity: 1;
}

/* Legacy reference styles (other pages) */
.references-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 44px; }
.reference-item { opacity: 0.5; filter: grayscale(100%); transition: 0.3s; }
.reference-item:hover { opacity: 1; filter: grayscale(0%); }
.reference-item img { max-height: 42px; width: auto; object-fit: contain; }
.marquee-wrap { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-wrap .marquee-track { display: flex; gap: 56px; animation: marquee 28s linear infinite; width: max-content; align-items: center; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.contact-details { margin-top: 40px; }
.contact-item { display: flex; gap: 20px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.contact-item i {
    width: 46px; height: 46px; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--brick); flex-shrink: 0; font-size: 0.95rem;
}
.contact-item h4 { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brick); margin-bottom: 6px; font-weight: 600; }
.contact-item p { color: var(--ink-soft); font-weight: 300; }
.contact-form-wrap { background: var(--white); padding: clamp(32px, 4vw, 48px); box-shadow: var(--shadow); position: relative; }
.contact-form-wrap::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--brick); }
.contact-form-wrap .section-title { margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.form-group input, .form-group textarea {
    width: 100%; padding: 13px 0; border: none; border-bottom: 1px solid var(--line);
    background: transparent; font-family: var(--font-body); font-size: 0.95rem;
    transition: border-color 0.3s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-bottom-color: var(--brick); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* ─── CTA band ─── */
.cta-band { background: var(--white); border-top: 1px solid var(--line); }
.cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: clamp(32px, 4vw, 48px);
    background: var(--paper-soft); border: 1px solid var(--line);
}
.cta-text p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; font-weight: 300; }
.cta-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-phone { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; transition: color 0.3s; }
.cta-phone i { color: var(--brick); }
.cta-phone:hover { color: var(--brick); }

.cta-section { background: var(--ink); color: var(--paper); text-align: center; }
.cta-section h2 { font-family: var(--font-display); font-style: italic; font-size: clamp(1.9rem, 3.5vw, 2.75rem); margin-bottom: 14px; }
.cta-section p { opacity: 0.6; margin-bottom: 32px; font-weight: 300; }

/* ─── Page Hero (inner pages) ─── */
.page-hero {
    position: relative;
    min-height: clamp(400px, 56vh, 580px);
    display: flex; align-items: flex-end;
    padding: calc(var(--header-h) + 56px) 0 60px;
    background: var(--ink); overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--brick); z-index: 3;
}
.page-hero-sm { min-height: clamp(340px, 44vh, 440px); }
.page-hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0.42; transform: scale(1.03);
}
.page-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(23,20,15,0.55) 0%, rgba(23,20,15,0.7) 55%, var(--ink) 100%);
}
.page-hero .container { position: relative; z-index: 2; width: 100%; }
.page-hero-inner { max-width: 720px; }
.page-hero-index {
    position: absolute; right: clamp(20px, 4vw, 56px); bottom: 0;
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(5rem, 12vw, 10rem); line-height: 0.8;
    color: rgba(246,243,237,0.05); z-index: 1; pointer-events: none;
}
.page-hero-eyebrow {
    display: flex; align-items: center; gap: 14px;
    font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--brick-soft); margin-bottom: 22px;
}
.page-hero-eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--brick-soft); }
.page-hero h1 {
    font-family: var(--font-display); font-style: italic; font-weight: 400;
    font-size: clamp(2.4rem, 5.2vw, 4rem); color: var(--paper); margin-bottom: 18px; line-height: 1.08;
}
.page-hero-desc {
    color: rgba(246,243,237,0.6); font-weight: 300; font-size: 1rem;
    max-width: 520px; margin-bottom: 26px;
}
.breadcrumb {
    display: flex; align-items: center; gap: 10px; font-size: 0.75rem;
    letter-spacing: 0.05em; color: rgba(246,243,237,0.4); margin-bottom: 28px;
}
.breadcrumb a:hover { color: var(--brick-soft); }
.breadcrumb i { font-size: 0.6rem; opacity: 0.6; }

/* ─── Project detail ─── */
.project-detail { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.project-detail-image { position: relative; }
.project-detail-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.project-detail-image::before {
    content: ''; position: absolute; inset: 16px -16px -16px 16px;
    border: 1px solid var(--brick); z-index: -1;
}
.project-detail-info h2 { font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.project-location { color: var(--muted); margin-bottom: 24px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.project-location i { color: var(--brick); }
.project-description { color: var(--ink-soft); margin-bottom: 32px; line-height: 1.85; font-weight: 300; }

/* ─── Rich text content ─── */
.rich-content p { margin-bottom: 1em; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content h2, .rich-content h3, .rich-content h4 {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--ink);
    margin: 1.4em 0 0.6em;
    line-height: 1.25;
}
.rich-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
.rich-content h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.rich-content h4 { font-size: 1.05rem; font-style: normal; font-weight: 600; }
.rich-content ul, .rich-content ol { margin: 0.75em 0 1em 1.25em; }
.rich-content li { margin-bottom: 0.35em; }
.rich-content a { color: var(--brick); text-decoration: underline; text-underline-offset: 3px; }
.rich-content a:hover { color: var(--ink); }
.rich-content blockquote {
    border-left: 3px solid var(--brick);
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: var(--ink-soft);
}
.service-desc { font-size: 0.95rem; line-height: 1.75; color: var(--ink-soft); font-weight: 300; }
.project-detail-info .btn { margin-right: 10px; margin-bottom: 10px; }
.detail-meta-list { margin: 28px 0 32px; border-top: 1px solid var(--line); }
.detail-meta-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.detail-meta-row span:first-child { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.detail-meta-row span:last-child { font-weight: 500; }
.related-projects { border-top: 1px solid var(--line); margin-top: clamp(56px, 8vh, 90px); padding-top: clamp(48px, 7vh, 72px); }

/* ─── Project gallery ─── */
.project-gallery-section {
    border-top: 1px solid var(--line);
    margin-top: clamp(56px, 8vh, 90px);
    padding-top: clamp(48px, 7vh, 72px);
}
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 1.5vw, 16px);
}
.project-gallery-item {
    position: relative;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4/3;
}
.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}
.project-gallery-item:hover img { transform: scale(1.06); }
.project-gallery-zoom {
    position: absolute;
    inset: 0;
    background: rgba(23, 20, 15, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s;
    color: var(--white);
    font-size: 1.1rem;
}
.project-gallery-item:hover .project-gallery-zoom { opacity: 1; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(23, 20, 15, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 2px;
    user-select: none;
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(246, 243, 237, 0.12);
    border: 1px solid rgba(246, 243, 237, 0.2);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s;
    font-size: 1rem;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(246, 243, 237, 0.22); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(246, 243, 237, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .project-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .lightbox-close, .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-close { top: 16px; right: 16px; }
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
}


/* ─── Page intro (label + lead + side box) ─── */
.page-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: end; padding-bottom: clamp(40px, 6vh, 60px); border-bottom: 1px solid var(--line); }
.page-intro-lead { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.5; color: var(--ink-soft); }
.page-intro-box { padding: 26px 28px; background: var(--paper-soft); border-left: 3px solid var(--brick); }
.page-intro-box p { font-size: 0.9rem; color: var(--ink-soft); font-weight: 300; line-height: 1.75; }
.page-intro-box strong { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--brick); margin-bottom: 6px; }

/* ─── Values / pillars ─── */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value-card { background: var(--paper); padding: 40px 30px; transition: background 0.4s; }
.value-card:hover { background: var(--white); }
.value-icon {
    width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brick); font-size: 1.15rem; margin-bottom: 22px; transition: 0.4s var(--ease);
}
.value-card:hover .value-icon { background: var(--brick); color: var(--white); border-color: var(--brick); }
.value-card h3 { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 0.88rem; font-weight: 300; line-height: 1.7; }

/* ─── Process steps ─── */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-step { position: relative; padding: 0 24px 0 0; }
.process-step:not(:last-child)::after {
    content: ''; position: absolute; top: 26px; left: 0; right: -24px; height: 1px;
    background: var(--line);
}
.process-step-num {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--paper);
    font-family: var(--font-display); font-style: italic; font-size: 1.2rem;
    position: relative; z-index: 2; margin-bottom: 24px;
}
.process-step h3 { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 0.87rem; font-weight: 300; line-height: 1.7; max-width: 240px; }
.bg-dark .process-step-num { background: var(--brick); color: var(--white); }
.bg-dark .process-step:not(:last-child)::after { background: var(--line-dark); }
.bg-dark .process-step h3 { color: var(--paper); }
.bg-dark .process-step p { color: rgba(246,243,237,0.5); }

/* ─── Service rows (services page) ─── */
.service-rows { border-top: 1px solid var(--line); }
.service-row {
    display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 28px;
    padding: clamp(26px, 4vh, 38px) 0; border-bottom: 1px solid var(--line);
    transition: background 0.35s;
}
.service-row:hover { background: var(--paper-soft); }
.service-row-num { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--brick-soft); transition: color 0.35s; }
.service-row:hover .service-row-num { color: var(--brick); }
.service-row-body { display: flex; align-items: center; gap: 22px; }
.service-row-icon {
    flex-shrink: 0; width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--brick); font-size: 1.25rem;
    transition: 0.35s var(--ease);
}
.service-row:hover .service-row-icon { background: var(--brick); color: var(--white); border-color: var(--brick); }
.service-row-text h3 { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; margin-bottom: 6px; }
.service-row-text p { color: var(--muted); font-size: 0.9rem; font-weight: 300; max-width: 520px; }
.service-row-arrow {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; color: var(--ink);
    opacity: 0; transform: translateX(-8px); transition: 0.35s var(--ease);
}
.service-row:hover .service-row-arrow { opacity: 1; transform: translateX(0); background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ─── Info cards (contact) ─── */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: clamp(48px, 7vh, 72px); }
.info-card { background: var(--paper); padding: 32px 28px; transition: background 0.35s; }
.info-card:hover { background: var(--white); }
.info-card i { color: var(--brick); font-size: 1.3rem; margin-bottom: 18px; display: block; }
.info-card h4 { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.info-card p, .info-card a { font-size: 0.95rem; font-weight: 500; line-height: 1.6; display: block; }
.info-card a:hover { color: var(--brick); }

.contact-side-panel { background: var(--ink); color: var(--paper); padding: clamp(32px, 4vw, 44px); display: flex; flex-direction: column; }
.contact-side-panel .footer-social { margin-top: auto; }
.contact-side-panel h3 { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; margin-bottom: 18px; }
.contact-side-panel p { color: rgba(246,243,237,0.55); font-weight: 300; font-size: 0.92rem; line-height: 1.8; margin-bottom: 26px; }
.side-hours { list-style: none; margin-bottom: 26px; }
.side-hours li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.88rem; }
.side-hours span:last-child { color: var(--brick-soft); font-weight: 500; }
.contact-side-panel .footer-social a { border-color: var(--line-dark); }

/* ─── Alerts / Empty ─── */
.alert { padding: 16px 22px; margin-bottom: 28px; border-left: 3px solid; font-size: 0.9rem; }
.alert-success { background: rgba(90,140,90,0.08); color: #3c6b3c; border-color: #5a8c5a; }
.alert-error { background: rgba(175,84,48,0.08); color: var(--brick-dark); border-color: var(--brick); }
.empty-message { text-align: center; color: var(--muted); padding: 70px 0; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.empty-message.light { color: rgba(246,243,237,0.45); }

/* ─── Footer ─── */
.footer { background: var(--ink); color: rgba(246,243,237,0.55); }
.footer-top { padding: clamp(56px, 9vh, 96px) 0 clamp(36px, 5vh, 56px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: clamp(36px, 5vw, 72px); }
.footer-logo span { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--paper); display: block; }
.footer-logo small { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brick-soft); font-weight: 600; }
.footer-brand p { margin: 20px 0; font-size: 0.88rem; line-height: 1.8; font-weight: 300; max-width: 340px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px; height: 40px; border: 1px solid var(--line-dark);
    display: flex; align-items: center; justify-content: center;
    color: var(--paper); font-size: 0.85rem; transition: 0.3s;
}
.footer-social a:hover { background: var(--brick); border-color: var(--brick); }
.footer-links h4, .footer-contact h4 { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--paper); margin-bottom: 24px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.85rem; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--brick-soft); transform: translateX(4px); }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 0.85rem; font-weight: 300; }
.footer-contact i { color: var(--brick-soft); margin-top: 3px; font-size: 0.78rem; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; text-align: center; font-size: 0.78rem; }

/* ─── Reveal animations ─── */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale, .img-reveal {
    opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-up { transform: translateY(44px); }
.reveal-left { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal-scale { transform: scale(0.94); }
.revealed { opacity: 1 !important; transform: translate(0) scale(1) !important; }
.img-reveal img { transform: scale(1.1); transition: transform 1.2s var(--ease); }
.img-reveal.revealed img { transform: scale(1); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero-compact { min-height: auto; }
    .hero-split {
        grid-template-columns: 1fr;
        padding: clamp(24px, 4vh, 40px) 0 clamp(32px, 5vh, 48px);
        gap: clamp(24px, 4vw, 36px);
    }
    .hero-visual {
        order: -1;
        max-height: none;
        min-height: 0;
        aspect-ratio: 16/10;
        margin: 0;
        width: 100%;
        max-width: none;
    }
    .hero-frame-deco { inset: 12px -12px -12px 12px; }
    .hero-slide-meta { display: none; }
    .about-grid, .contact-grid, .project-detail, .intro-grid, .page-intro { grid-template-columns: 1fr; }
    .page-intro { align-items: start; }
    .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .process-step:nth-child(2)::after { display: none; }
    .service-row { grid-template-columns: 60px 1fr; }
    .service-row-arrow { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-inline { justify-content: flex-start; }
    .services-strip { grid-template-columns: repeat(2, 1fr); }
    .scroll-btn { display: none; }
    .project-card:nth-child(1) { grid-column: span 6; }
    .project-card:nth-child(n+2) { grid-column: span 3; }
    .projects-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 76px; }
    .nav {
        position: fixed; inset: 0; top: 0;
        background: var(--ink);
        padding: calc(var(--header-h) + 24px) 28px 28px;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease);
        z-index: 999;
    }
    .nav.open { transform: translateX(0); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); color: rgba(246,243,237,0.85) !important; }
    .nav-link-cta { margin: 22px 0 0 !important; text-align: center; justify-content: center; background: var(--brick) !important; color: var(--white) !important; }
    .nav-toggle { display: flex; z-index: 1001; position: relative; }

    .hero-split { padding-top: 16px; gap: 24px; }
    .hero-visual { aspect-ratio: 4/3; border-radius: 2px; }
    .hero-frame-deco { display: none; }
    .hero-eyebrow { margin-bottom: 14px; font-size: 0.62rem; letter-spacing: 0.22em; }
    .hero-eyebrow::before { width: 24px; }
    .hero-title { font-size: clamp(1.85rem, 7.5vw, 2.45rem); margin-bottom: 14px; line-height: 1.12; }
    .hero-desc { font-size: 0.9rem; margin-bottom: 22px; max-width: none; line-height: 1.65; }
    .hero-actions { margin-bottom: 24px; gap: 10px; }
    .hero-actions .btn { flex: 1 1 calc(50% - 5px); justify-content: center; padding: 14px 16px; font-size: 0.82rem; }
    .hero-meta { gap: 20px; padding-top: 18px; flex-wrap: wrap; }
    .hero-meta-num { font-size: 1.5rem; }
    .hero-meta-label { font-size: 0.58rem; }
    .hero-showcase-ui {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        padding: 12px 14px;
    }
    .hero-showcase-counter { font-size: 1rem; min-width: auto; }
    .hero-showcase-sep { width: 18px; }
    .hero-arrow { width: 36px; height: 36px; font-size: 0.85rem; }
    .hero-progress-seg { min-width: 24px; }

    .marquee-item { font-size: 1.05rem; padding: 0 18px; }

    .stats-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card:nth-child(n) { grid-column: span 1 !important; }
    .project-card .project-image { aspect-ratio: 4/3 !important; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .services-strip { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .work-header, .strip-header { flex-direction: column; align-items: flex-start; }
    .stat-pill { flex: 1; min-width: calc(50% - 8px); }
    .hide-mobile { display: none; }
    .show-mobile { display: inline-flex; margin-top: 18px; }
    .process-steps { grid-template-columns: 1fr; }
    .process-step::after { display: none !important; }
    .service-row { grid-template-columns: 1fr; gap: 16px; }
    .service-row-num { display: none; }
    .detail-meta-row { font-size: 0.85rem; }
    .reference-card { min-width: 112px; height: 64px; padding: 14px 20px; }
    .reference-card img { max-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .img-reveal { opacity: 1; transform: none; }
    .references-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
    .references-track-wrap { mask-image: none; -webkit-mask-image: none; overflow: visible; }
    .hero-slide-panel.is-active .hero-slide-media img { animation: none; transform: scale(1); }
    .hero-progress-seg.is-active .hero-progress-fill { width: 100%; animation: none; }
}
