/*
Theme Name: Asil Studio
Theme URI: https://asil.studio
Author: Asil Studio
Author URI: https://asil.studio
Description: Custom landing page theme for Asil Studio — Architectural CGI Visualization
Version: 1.9.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asil-studio
*/

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:        #FFFFFF;
    --bg-warm:   #F5F5F3;
    --bg-dark:   #111110;
    --text:      #1A1816;
    --text-sec:  #5A554E;
    --text-muted:#8A847B;
    --border:    rgba(26,24,22,0.08);
    --border-s:  rgba(26,24,22,0.13);
    --font: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain */
body::after {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9999; opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 256px;
}

/* ── Nav ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 3rem; height: 72px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-l, .nav-r { display: flex; gap: 2rem; align-items: center; }
.nav-r { justify-content: flex-end; }
.nav-a {
    font-family: var(--font); font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text); text-decoration: none; transition: opacity 0.3s;
}
.nav-a:hover { opacity: 0.45; }
.nav-a--bold { font-weight: 600; }

.nav-c { text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.nav-c img { height: 80px; width: auto; }

/* Mobile toggle & menu — hidden on desktop, excluded from grid */
.nav-toggle {
    display: none !important; border: none; background: none; cursor: pointer;
    width: 24px; height: 18px; position: relative; z-index: 101;
    flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
    display: block; width: 100%; height: 2px; background: var(--text);
    transition: all .3s; border-radius: 1px;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-mobile { display: none !important; }

/* Language Switcher */
.lang-switch {
    display: flex; gap: 0.4rem; align-items: center;
    margin-left: 1.5rem; padding-left: 1.5rem;
    border-left: 1px solid var(--border-s);
}
.lang-btn {
    font-family: var(--font); font-size: 0.6rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); text-decoration: none;
    padding: 0.3rem 0.5rem; border: none; background: none;
    cursor: pointer; transition: all 0.3s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
    color: var(--text); background: rgba(26,24,22,0.06);
    border-radius: 3px;
}

/* ── Hero (Option 1 — image with headline overlay at bottom) ── */
.hero { padding: 72px 3rem 0; min-height: 100vh; display: flex; flex-direction: column; }
.hero-img {
    flex: 1; position: relative; margin-top: 1.5rem; overflow: hidden;
    min-height: 70vh;
    opacity: 0; transform: translateY(15px);
    animation: hIn 1s cubic-bezier(.16,1,.3,1) .2s forwards;
}
.hero-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    position: absolute; inset: 0;
}
.hero-img::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, transparent 25%, transparent 45%, rgba(0,0,0,0.52) 100%);
}
@keyframes hIn { to { opacity:1; transform:translateY(0); } }

/* Hero content — bottom overlay with headline + tag */
.hero-content {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
    padding: 0 3rem 3rem;
    display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem;
}
.hero-text {
    max-width: 600px;
    opacity: 0; transform: translateY(15px);
    animation: heroFadeIn .9s cubic-bezier(.16,1,.3,1) .6s forwards;
}
.hero-headline {
    font-family: var(--font);
    font-size: clamp(1.6rem, 3.2vw, 2.8rem);
    font-weight: 300; line-height: 1.2; letter-spacing: -0.01em;
    color: rgba(255,255,255,0.95); margin-bottom: 0.8rem;
}
.hero-headline strong { font-weight: 400; }
.hero-sub {
    font-size: clamp(0.7rem, 1vw, 0.82rem);
    font-weight: 300; line-height: 1.7;
    color: rgba(255,255,255,0.68); max-width: 440px;
}
.hero-tag {
    flex-shrink: 0; text-align: right;
    opacity: 0; transform: translateY(10px);
    animation: heroFadeIn .9s cubic-bezier(.16,1,.3,1) .9s forwards;
}
.hero-tag-label {
    font-size: 0.6rem; font-weight: 400; letter-spacing: 0.12em;
    text-transform: uppercase; color: rgba(255,255,255,0.45);
    display: block; margin-bottom: 0.3rem;
}
.hero-tag-project {
    font-size: 0.65rem; font-weight: 300; font-style: italic;
    color: rgba(255,255,255,0.55);
}
@keyframes heroFadeIn { to { opacity: 1; transform: translateY(0); } }

/* ── Manifesto ── */
.manifesto { padding: 8rem 3rem; }
.manifesto-in {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start;
}
.manifesto h2 {
    font-family: var(--font); font-size: clamp(2.2rem,4vw,3.6rem);
    font-weight: 400; line-height: 1.1; text-transform: uppercase; letter-spacing: -0.01em;
}
.manifesto-r { padding-top: 0.5rem; }
.manifesto-r p {
    font-size: 0.88rem; font-weight: 300; color: var(--text-sec);
    line-height: 1.85; max-width: 480px; margin-bottom: 2rem;
}
.manifesto-r strong { color: var(--text); font-weight: 500; }

/* ── Projects ── */
.projects { padding: 0 0 8rem; }
.projects-in { width: 100%; }
.projects-hd {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 2.5rem; padding: 0 3rem 1rem; border-bottom: 1px solid var(--border-s);
    max-width: 1200px; margin-left: auto; margin-right: auto;
}
.projects-hd span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.projects-hd a {
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text); text-decoration: none; border-bottom: 1px solid var(--text);
    padding-bottom: 2px; transition: opacity .3s;
}
.projects-hd a:hover { opacity: .45; }

.projects-g {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 3px; padding: 0 3px 3px;
}
.p-card {
    cursor: pointer; overflow: hidden;
    min-width: 0; text-decoration: none; color: inherit;
}
.p-thumb {
    width: 100%; aspect-ratio: 4/3; position: relative; overflow: hidden;
}
.p-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s cubic-bezier(.16,1,.3,1);
}
.p-card:hover .p-thumb img { transform: scale(1.03); }

/* Caption overlay on image */
.p-meta {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 4rem 1.6rem 1.4rem;
    background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    pointer-events: none;
}
.p-meta h3 {
    font-family: var(--font); font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.13em; text-transform: uppercase;
    color: #fff; margin-bottom: 0.25rem;
}
.p-meta span { font-size: 0.65rem; font-weight: 300; color: rgba(255,255,255,0.65); letter-spacing: 0.06em; }

/* ── Services ── */
.services { padding: 6rem 3rem 8rem; border-top: 1px solid var(--border-s); }
.services-in { max-width: 1200px; margin: 0 auto; }

.srv-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.2rem; }
.srv-lb { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }
.srv-tags { display: flex; gap: 2.5rem; }
.srv-tag { font-size: 0.62rem; font-weight: 400; letter-spacing: 0.1em; color: var(--text-muted); }

.srv-title {
    font-family: var(--font); font-size: clamp(1.9rem, 3.8vw, 3.2rem);
    font-weight: 400; line-height: 1.05; text-transform: uppercase;
    letter-spacing: -0.01em; text-align: center; margin-bottom: 2.8rem;
}

/* Services grid 2x3 */
.srv-grid-2x3 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }

.srv-card-img { overflow: hidden; }
.srv-card-img img, .srv-card-img video { width: 100%; height: 400px; object-fit: cover; display: block; transition: transform 0.7s ease; }
.srv-card:hover .srv-card-img img, .srv-card:hover .srv-card-img video { transform: scale(1.03); }

.srv-card-placeholder {
    height: 400px; background: var(--bg-warm);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.srv-card-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 22px, rgba(26,24,22,0.04) 22px, rgba(26,24,22,0.04) 23px);
}
.srv-card-placeholder span {
    font-family: var(--font); font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300; color: rgba(26,24,22,0.14); text-transform: uppercase;
    letter-spacing: 0.12em; position: relative; z-index: 1; text-align: center; line-height: 1.4;
}

.srv-card-body { padding: 1rem 0 0; border-top: 1px solid var(--border); }
.srv-card-num { font-size: 0.58rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.1em; display: block; margin-bottom: 0.4rem; }
.srv-card-name {
    font-family: var(--font); font-size: clamp(0.82rem, 1.1vw, 0.95rem);
    font-weight: 400; text-transform: uppercase; letter-spacing: 0.07em; line-height: 1.2; margin-bottom: 0.6rem;
}
.srv-card-desc { font-size: 0.73rem; font-weight: 300; color: var(--text-sec); line-height: 1.72; }

/* ── Price CTA ── */
.price-cta { padding: 3.5rem 3rem; background: var(--bg-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price-cta-in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
.price-cta h3 { font-family: var(--font); font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 400; line-height: 1.2; }
.price-cta p { font-size: 0.78rem; font-weight: 300; color: var(--text-sec); margin-top: 0.4rem; }
.btn-outline {
    display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0;
    font-family: var(--font); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--text); border: 1px solid var(--border-s);
    padding: 1rem 2.4rem; text-decoration: none; transition: all .3s ease; white-space: nowrap;
}
.btn-outline:hover { border-color: var(--text); background: var(--text); color: var(--bg); }

/* ── Why ── */
.why { padding: 8rem 3rem; background: var(--bg-warm); }
.why-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1fr; gap: 7rem; align-items: start; }
.why-lb { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2rem; }
.why h3 { font-family: var(--font); font-size: clamp(1.6rem,2.8vw,2.5rem); font-weight: 400; line-height: 1.25; margin-bottom: 2rem; }
.why h3 em { font-style: italic; font-weight: 300; }
.why-d { font-size: 0.85rem; font-weight: 300; color: var(--text-sec); line-height: 1.85; }
.why-pts { display: flex; flex-direction: column; gap: 0; }
.why-pt { padding: 1.8rem 0; border-bottom: 1px solid var(--border); }
.why-pt:first-child { border-top: 1px solid var(--border); }
.why-pt-num { font-size: 0.58rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.1em; display: block; margin-bottom: 0.5rem; }
.why-pt h4 { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
.why-pt p { font-size: 0.76rem; font-weight: 300; color: var(--text-sec); line-height: 1.75; }

/* ── Portfolio ── */
.portfolio { padding: 7rem 0; border-top: 1px solid var(--border-s); }
.portfolio-in { width: 100%; }
.portfolio-hd {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 2rem; padding: 0 3rem;
    max-width: 1200px; margin-left: auto; margin-right: auto;
}
.portfolio-lb { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.portfolio-g { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 3px; padding: 0 3px 3px; }
.portfolio-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.portfolio-item a { display: block; width: 100%; height: 100%; }
.portfolio-item:hover img { transform: scale(1.04); }
.portfolio-item--wide { grid-column: span 2; aspect-ratio: 8/3; }
.portfolio-item--wide img { aspect-ratio: unset; }

/* ── Contact ── */
.contact { border-top: 1px solid var(--border-s); background: var(--bg-warm); }
.contact-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 0; align-items: stretch; }
.contact-form-col { padding: 7rem 5rem 8rem 3rem; }
.contact-person-col { padding: 7rem 3rem 8rem 4rem; border-left: 1px solid var(--border); }
.contact-lb { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.8rem; }
.contact h2 { font-family: var(--font); font-size: clamp(1.6rem,2.8vw,2.4rem); font-weight: 400; line-height: 1.15; margin-bottom: 1rem; }
.contact-subtext { font-size: 0.82rem; font-weight: 300; line-height: 1.75; color: var(--text-sec); margin-bottom: 2rem; max-width: 480px; }
.contact-form { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.form-group label { font-size: 0.57rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.45rem; }
.form-group input, .form-group textarea {
    background: transparent; border: none; border-bottom: 1px solid var(--border-s);
    padding: 0.55rem 0; font-family: var(--font); font-size: 0.82rem; font-weight: 300;
    color: var(--text); outline: none; transition: border-color 0.3s; resize: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--text); }
.form-group textarea { height: 90px; }

/* CF7 — force wrappers to block so inputs stretch to 100% */
.form-group .wpcf7-form-control-wrap { display: block; width: 100%; }
.form-group .wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) { width: 100%; box-sizing: border-box; }

/* CF7 — privacy policy checkbox */
.form-group--policy { flex-direction: row; align-items: flex-start; gap: 0.6rem; margin-top: 0.4rem; }
.form-group--policy .wpcf7-acceptance { display: flex; align-items: flex-start; gap: 0.6rem; }
.form-group--policy input[type="checkbox"] { width: 14px; height: 14px; min-width: 14px; margin-top: 2px; accent-color: var(--text); cursor: pointer; border: none; }
.form-group--policy .wpcf7-list-item-label { font-size: 0.7rem; font-weight: 300; color: var(--text-muted); line-height: 1.5; }
.form-group--policy .wpcf7-list-item-label a { color: var(--text); text-decoration: underline; }
.form-group--policy .wpcf7-list-item { margin: 0; }

/* CF7 — response messages */
.wpcf7-response-output { margin: 1rem 0 0 !important; padding: 0.6rem 1rem !important; font-size: 0.75rem !important; border-radius: 2px; }
.wpcf7-mail-sent-ok { border-color: #5a8a5a !important; color: #3a6a3a !important; background: #f0f7f0; }
.wpcf7-validation-errors, .wpcf7-spam-blocked { border-color: #c0392b !important; color: #c0392b !important; }
.wpcf7-not-valid-tip { font-size: 0.65rem !important; color: #c0392b !important; margin-top: 0.3rem; }

/* CF7 — tel input inherits same style as text/email */
.form-group input[type="tel"] { background: transparent; border: none; border-bottom: 1px solid var(--border-s); padding: 0.55rem 0; font-family: var(--font); font-size: 0.82rem; font-weight: 300; color: var(--text); outline: none; transition: border-color 0.3s; width: 100%; }
.form-group input[type="tel"]:focus { border-color: var(--text); }
.btn-c {
    display: inline-block; font-family: var(--font); font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--bg); background: var(--text);
    padding: 1.1rem 3.5rem; text-decoration: none; transition: all .35s ease; border: none; cursor: pointer;
}
.btn-c:hover { background: var(--text-sec); }
.person-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; margin-bottom: 1.4rem; }
.person-name { font-family: var(--font); font-size: 0.95rem; font-weight: 400; letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.person-role { font-size: 0.65rem; font-weight: 300; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.person-email { font-size: 0.76rem; font-weight: 300; color: var(--text-sec); text-decoration: none; display: block; margin-bottom: 1.4rem; transition: color 0.3s; }
.person-email:hover { color: var(--text); }
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 0.65rem;
    font-family: var(--font); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text); border: 1px solid var(--border-s);
    padding: 0.9rem 1.8rem; text-decoration: none; transition: all .3s;
}
.btn-whatsapp:hover { border-color: var(--text); }
.btn-whatsapp svg { width: 15px; height: 15px; flex-shrink: 0; }

.person-social {
    display: flex; gap: 0.85rem; align-items: center; margin-top: 2rem;
}
.social-icon {
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); text-decoration: none;
    transition: color 0.3s;
    flex-shrink: 0;
}
.social-icon:hover { color: var(--text); }
.social-icon svg { width: 18px; height: 18px; }

/* ── Single Project ── */
.proj-hero { padding: 72px 3rem 0; max-width: 1200px; margin: 0 auto; }
.proj-hero-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 2.5rem; }
.proj-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-hero-text { padding-bottom: 3rem; border-bottom: 1px solid var(--border-s); }
.proj-hero-text h1 {
    font-family: var(--font); font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0;
}
.proj-location {
    font-size: 0.72rem; font-weight: 400; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.6rem;
}
.proj-desc { padding: 4rem 3rem; max-width: 1200px; margin: 0 auto; }
.proj-desc-in { max-width: 780px; margin: 0 auto; }
.proj-desc-in p { font-size: 0.88rem; font-weight: 300; line-height: 1.8; color: var(--text-sec); margin-bottom: 1.2rem; }
.proj-desc-in h2, .proj-desc-in h3 { font-weight: 400; margin-bottom: 0.8rem; }
/* Gutenberg gallery inside project */
.proj-desc-in .wp-block-gallery { max-width: 100%; margin: 2rem auto; }
.proj-desc-in .wp-block-gallery .wp-block-image { margin: 0; }
.proj-desc-in .wp-block-gallery .wp-block-image img { border-radius: 2px; cursor: pointer; }
/* Wide Gutenberg blocks (gallery, image) break out of narrow container */
.proj-desc-in .wp-block-gallery,
.proj-desc-in .wp-block-image.alignwide,
.proj-desc-in .wp-block-image.alignfull {
    max-width: none; width: calc(100% + 420px); margin-left: -210px;
}
@media (max-width: 1100px) {
    .proj-desc-in .wp-block-gallery,
    .proj-desc-in .wp-block-image.alignwide,
    .proj-desc-in .wp-block-image.alignfull {
        width: 100%; margin-left: 0;
    }
}
.proj-gallery { padding: 0 3rem 6rem; max-width: 1200px; margin: 0 auto; }
.proj-gallery-in { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.proj-gallery-item { overflow: hidden; }
.proj-gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.5s cubic-bezier(.16,1,.3,1); }
.proj-gallery-item:hover img { transform: scale(1.02); }

/* ── Team Page ── */
.team-hero { padding: 72px 3rem 0; }
.team-hero-in { max-width: 1200px; margin: 0 auto; padding: 4rem 0 3rem; }
.team-hero h1 {
    font-family: var(--font); font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 300; line-height: 1.2; letter-spacing: -0.02em;
}
.team-about { padding: 3rem 3rem 5rem; }
.team-about-in {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem;
}
.team-box { padding: 2rem; border: 1px solid var(--border-s); border-radius: 2px; }
.team-box--full { grid-column: 1 / -1; }
.team-box h3 {
    font-family: var(--font); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem;
}
.team-box p { font-size: 0.82rem; font-weight: 300; line-height: 1.75; color: var(--text-sec); }

.team-members { padding: 0 3rem 6rem; }
.team-members-in { max-width: 1200px; margin: 0 auto; }
.team-members-hd {
    display: flex; align-items: baseline; margin-bottom: 2.5rem;
    padding-bottom: 1rem; border-bottom: 1px solid var(--border-s);
}
.team-members-hd span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.team-card { text-align: center; }
.team-card-img { width: 100%; aspect-ratio: 3/4; overflow: hidden; margin-bottom: 1.2rem; background: var(--bg-warm); }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--bg-warm);
}
.team-card-placeholder span {
    font-family: var(--font); font-size: 2rem; font-weight: 200;
    letter-spacing: 0.15em; color: var(--text-muted);
}
.team-card h4 {
    font-family: var(--font); font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.05em; margin-bottom: 0.2rem;
}
.team-card-role {
    font-size: 0.68rem; font-weight: 400; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.8rem;
}
.team-card-desc { font-size: 0.78rem; font-weight: 300; line-height: 1.7; color: var(--text-sec); }

/* ── Team Alternating Sections ── */
.team-section { border-top: 1px solid var(--border-s); overflow: hidden; }
.team-section:nth-child(even) { background: var(--bg-warm); }
.team-section-in {
    display: flex; align-items: stretch; min-height: 560px; width: 100%;
}
.team-section--reverse .team-section-in { flex-direction: row-reverse; }

/* Text column: comfortable internal padding, aligned with the rest of page content */
.team-section-text {
    flex: 0 0 42%; min-width: 0;
    padding: 6rem 4rem 6rem 5rem;
    display: flex; flex-direction: column; justify-content: center;
}
.team-section--reverse .team-section-text {
    padding: 6rem 5rem 6rem 4rem;
}

.team-section-num {
    display: block; font-family: var(--font); font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 1.2rem;
}
.team-section-text h2 {
    font-family: var(--font); font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 300; line-height: 1.2; letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.team-section-text p {
    font-size: 0.84rem; font-weight: 300; line-height: 1.85; color: var(--text-sec);
    max-width: 480px;
}

/* Visual column: stretches to viewport edge, 3px padding for a thin uniform frame */
.team-section-visual {
    flex: 1; min-width: 0; position: relative;
    padding: 3px 3px 3px 0;
}
.team-section--reverse .team-section-visual { padding: 3px 0 3px 3px; }
.team-section-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-section-placeholder {
    width: 100%; height: 100%; min-height: 560px;
    background: var(--bg-warm); border: 1px solid var(--border-s);
    display: flex; align-items: center; justify-content: center;
}
.team-section-placeholder span {
    font-family: var(--font); font-size: 4rem; font-weight: 200;
    color: var(--text-muted); letter-spacing: -0.04em;
}

/* ── Portfolio Page Hero ── */
.portfolio-page-hero { padding: 72px 3rem 0; }
.portfolio-page-hero-in { max-width: 1200px; margin: 0 auto; padding: 4rem 0 3rem; }
.portfolio-page-hero h1 {
    font-family: var(--font); font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.portfolio-page-sub { font-size: 0.82rem; font-weight: 300; color: var(--text-sec); max-width: 480px; }

/* ── Lightbox ── */
.lightbox-trigger { display: block; cursor: zoom-in; }
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,0.88); display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    cursor: zoom-out;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img {
    max-width: 90vw; max-height: 90vh; object-fit: contain;
    border-radius: 2px; box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 36px; height: 36px; border: none; background: rgba(255,255,255,0.15);
    border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-close svg { width: 16px; height: 16px; }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: none; background: rgba(255,255,255,0.1);
    border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s; z-index: 2;
}
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }
.lightbox-counter {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    font-size: 0.78rem; font-weight: 400; letter-spacing: 0.08em; color: rgba(255,255,255,0.6);
}

/* ── Footer ── */
footer { padding: 2.5rem 3rem; background: var(--bg-dark); border-top: none; }
.ft-in {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.ft-brand { display: flex; align-items: center; }
.ft-brand img { height: 52px; width: auto; filter: brightness(0) invert(1); opacity: 0.55; }
.ft-right { display: flex; align-items: center; gap: 1.5rem; }
.ft-copy { font-size: 0.62rem; color: rgba(255,255,255,0.3); }
.ft-link {
    font-size: 0.62rem; color: rgba(255,255,255,0.3); text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 1px;
    transition: color .3s;
}
.ft-link:hover { color: rgba(255,255,255,0.7); }
.ft-social { display: flex; align-items: center; gap: 1.2rem; }
.ft-social-icon {
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.35); text-decoration: none;
    transition: color 0.3s; flex-shrink: 0;
}
.ft-social-icon:hover { color: rgba(255,255,255,0.75); }
.ft-social-icon svg { width: 17px; height: 17px; }

/* ── Services / 3D Visualization Page ── */

/* Shared label */
.sv-section-label {
    display: block; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem;
}

/* 1. Hero */
.sv-hero { padding: 72px 3rem 0; }
.sv-hero-img {
    position: relative; overflow: hidden; margin-top: 1.5rem;
    min-height: 55vh;
    opacity: 0; transform: translateY(15px);
    animation: hIn 1s cubic-bezier(.16,1,.3,1) .2s forwards;
}
.sv-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.sv-hero-img::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, transparent 25%, transparent 40%, rgba(0,0,0,0.56) 100%);
}
.sv-hero-content {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
    padding: 0 3rem 3rem;
}
.sv-hero-text { max-width: 650px; opacity: 0; transform: translateY(15px); animation: heroFadeIn .9s cubic-bezier(.16,1,.3,1) .5s forwards; }
.sv-hero-tag {
    display: inline-block; font-size: 0.58rem; font-weight: 500; letter-spacing: 0.18em;
    text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1rem;
}
.sv-hero-h1 {
    font-family: var(--font); font-size: clamp(1.6rem, 3.2vw, 2.8rem);
    font-weight: 300; line-height: 1.2; letter-spacing: -0.01em;
    color: rgba(255,255,255,0.95); margin-bottom: 0.8rem;
}
.sv-hero-h1 strong { font-weight: 400; }
.sv-hero-sub {
    font-size: clamp(0.72rem, 1vw, 0.84rem); font-weight: 300; line-height: 1.7;
    color: rgba(255,255,255,0.65); max-width: 480px;
}

/* 2. Intro + CTA */
.sv-intro { padding: 6rem 3rem; border-bottom: 1px solid var(--border-s); }
.sv-intro-in {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
/* When no image, content spans full width */
.sv-intro-content:only-child { grid-column: 1 / -1; max-width: 780px; }
.sv-intro-content h2 {
    font-family: var(--font); font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 400; line-height: 1.2; margin-bottom: 1.5rem;
}
.sv-intro-body {
    font-size: 0.85rem; font-weight: 300; line-height: 1.85; color: var(--text-sec);
    margin-bottom: 2.5rem; max-width: 680px;
}
.sv-intro-body p { margin-bottom: 1rem; }
.sv-intro-body strong { color: var(--text); font-weight: 500; }
.sv-intro-img img { width: 100%; height: auto; display: block; }

/* 3. Types / Services */
.sv-types { padding: 6rem 3rem 8rem; border-top: 1px solid var(--border-s); }
.sv-types-in { max-width: 1200px; margin: 0 auto; }
.sv-types-hd { text-align: center; margin-bottom: 3.5rem; }
.sv-types-hd h2 {
    font-family: var(--font); font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 400; line-height: 1.2; margin-bottom: 0.8rem;
}
.sv-types-sub { font-size: 0.82rem; font-weight: 300; color: var(--text-sec); max-width: 560px; margin: 0 auto; }

/* 4. Differentiators (4 boxes) */
.sv-diff { padding: 6rem 3rem 8rem; background: var(--bg-warm); }
.sv-diff-in { max-width: 1200px; margin: 0 auto; }
.sv-diff-hd { text-align: center; margin-bottom: 3.5rem; }
.sv-diff-hd h2 {
    font-family: var(--font); font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 400; line-height: 1.2; margin-bottom: 0.8rem;
}
.sv-diff-sub { font-size: 0.82rem; font-weight: 300; color: var(--text-sec); max-width: 560px; margin: 0 auto; }
.sv-diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.sv-diff-box { background: var(--bg); border: 1px solid var(--border-s); }
.sv-diff-box-img { overflow: hidden; }
.sv-diff-box-img img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .6s ease; }
.sv-diff-box:hover .sv-diff-box-img img { transform: scale(1.03); }
.sv-diff-box-placeholder {
    height: 220px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-warm); position: relative;
}
.sv-diff-box-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 22px, rgba(26,24,22,0.04) 22px, rgba(26,24,22,0.04) 23px);
}
.sv-diff-box-placeholder span {
    font-family: var(--font); font-size: 1.6rem; font-weight: 200;
    color: rgba(26,24,22,0.12); letter-spacing: 0.1em; position: relative; z-index: 1;
}
.sv-diff-box h3 {
    font-family: var(--font); font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.06em; text-transform: uppercase; padding: 1.2rem 1.5rem 0.4rem;
}
.sv-diff-box p { font-size: 0.78rem; font-weight: 300; line-height: 1.7; color: var(--text-sec); padding: 0 1.5rem 1.5rem; }

/* 5. CTA Banner */
.sv-cta { padding: 4rem 3rem; background: var(--text); }
.sv-cta-in {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; gap: 3rem;
}
.sv-cta-left h2 {
    font-family: var(--font); font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 400; line-height: 1.3; color: var(--bg); margin-bottom: 0.5rem;
}
.sv-cta-left p { font-size: 0.78rem; font-weight: 300; color: rgba(255,255,255,0.60); }
.sv-cta .btn-outline {
    color: #fff; border-color: rgba(255,255,255,0.30);
}
.sv-cta .btn-outline:hover { background: var(--bg); color: var(--text); border-color: var(--bg); }

/* 6. Gallery */
.sv-gallery { padding: 6rem 0 8rem; }
.sv-gallery-in { width: 100%; }
.sv-gallery-hd {
    margin-bottom: 2.5rem; padding: 0 3rem;
    max-width: 1200px; margin-left: auto; margin-right: auto;
}
.sv-gallery-hd h2 {
    font-family: var(--font); font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 400; line-height: 1.2;
}
.sv-gallery-more { margin-top: 2.5rem; text-align: center; padding: 0 3rem; }
.sv-gallery-empty {
    grid-column: 1 / -1; text-align: center; padding: 4rem 2rem;
    font-size: 0.82rem; font-weight: 300; color: var(--text-muted);
    border: 1px dashed var(--border-s);
}

/* 7. Process — centered timeline */
.sv-process { padding: 6rem 3rem 8rem; border-top: 1px solid var(--border-s); }
.sv-process-in { max-width: 800px; margin: 0 auto; }
.sv-process-hd { text-align: center; margin-bottom: 3.5rem; }
.sv-process-hd h2 {
    font-family: var(--font); font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 400; line-height: 1.2; margin-bottom: 0.8rem;
}
.sv-process-sub { font-size: 0.82rem; font-weight: 300; color: var(--text-sec); max-width: 560px; margin: 0 auto; }
.sv-timeline { display: flex; flex-direction: column; }
.sv-timeline-step {
    display: flex; gap: 2rem; padding: 2.2rem 0;
    border-bottom: 1px solid var(--border-s);
}
.sv-timeline-step:first-child { border-top: 1px solid var(--border-s); }
.sv-timeline-num {
    flex-shrink: 0; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-s); border-radius: 50%;
}
.sv-timeline-num span {
    font-family: var(--font); font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.05em; color: var(--text-muted);
}
.sv-timeline-body { padding-top: 0.3rem; }
.sv-timeline-body h3 {
    font-family: var(--font); font-size: 0.88rem; font-weight: 500;
    letter-spacing: 0.03em; margin-bottom: 0.5rem;
}
.sv-timeline-body p { font-size: 0.78rem; font-weight: 300; line-height: 1.7; color: var(--text-sec); }

/* 8. VS Comparison — 3-column */
.sv-vs { padding: 6rem 3rem 8rem; background: var(--bg-warm); }
.sv-vs-in { max-width: 1200px; margin: 0 auto; }
.sv-vs-h {
    font-family: var(--font); font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    font-weight: 400; line-height: 1.3; text-align: center; margin-bottom: 3rem;
}
.sv-vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 2px; overflow: hidden; }
.sv-vs-col { padding: 2.5rem; }
.sv-vs-col h3 {
    font-family: var(--font); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.sv-vs-col ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.sv-vs-col li {
    font-size: 0.78rem; font-weight: 300; line-height: 1.6;
    padding-left: 1.5rem; position: relative;
}
.sv-vs-col li::before {
    content: ''; position: absolute; left: 0; top: 0.45rem;
    width: 8px; height: 8px; border-radius: 50%;
}
/* Left column (Typical Agency) */
.sv-vs-left { background: var(--bg); }
.sv-vs-left h3 { color: var(--text-sec); }
.sv-vs-left li { color: var(--text-sec); }
.sv-vs-left li::before { background: rgba(26,24,22,0.15); }
/* Right column (Asil Studio — highlighted) */
.sv-vs-right { background: var(--text); }
.sv-vs-right h3 { color: var(--bg); }
.sv-vs-right li { color: rgba(255,255,255,0.82); }
.sv-vs-right li::before { background: rgba(255,255,255,0.55); }

/* 9. FAQ */
.sv-faq { padding: 6rem 3rem 8rem; border-top: 1px solid var(--border-s); }
.sv-faq-in { max-width: 800px; margin: 0 auto; }
.sv-faq-hd { margin-bottom: 2.5rem; }
.sv-faq-hd h2 {
    font-family: var(--font); font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 400; line-height: 1.2;
}
.sv-faq-list { display: flex; flex-direction: column; }
.sv-faq-item { border-bottom: 1px solid var(--border-s); }
.sv-faq-item:first-child { border-top: 1px solid var(--border-s); }
.sv-faq-q {
    width: 100%; background: none; border: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.4rem 0; text-align: left; gap: 1.5rem;
    font-family: var(--font); font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.03em; color: var(--text); transition: opacity .3s;
}
.sv-faq-q:hover { opacity: 0.6; }
.sv-faq-icon {
    width: 18px; height: 18px; flex-shrink: 0;
    transition: transform .35s ease;
}
.sv-faq-item.open .sv-faq-icon { transform: rotate(45deg); }
.sv-faq-a {
    max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease;
    padding: 0;
}
.sv-faq-item.open .sv-faq-a { max-height: 300px; padding: 0 0 1.4rem; }
.sv-faq-a p { font-size: 0.78rem; font-weight: 300; line-height: 1.8; color: var(--text-sec); }

/* ── Privacy Policy Page ── */
.privacy-hero { padding: 72px 3rem 0; }
.privacy-hero-in { max-width: 1200px; margin: 0 auto; padding: 4rem 0 3rem; }
.privacy-hero h1 {
    font-family: var(--font); font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 300; line-height: 1.2; letter-spacing: -0.02em;
}
.privacy-content { padding: 0 3rem 6rem; }
.privacy-content-in {
    max-width: 780px; margin: 0 auto;
    font-size: 0.88rem; font-weight: 300; line-height: 1.85; color: var(--text-sec);
}
.privacy-content-in h2, .privacy-content-in h3 {
    font-family: var(--font); font-weight: 400; color: var(--text);
    margin: 2rem 0 1rem; font-size: 1.1rem;
}
.privacy-content-in p { margin-bottom: 1.2rem; }
.privacy-content-in ul, .privacy-content-in ol { margin: 0 0 1.2rem 1.5rem; }
.privacy-content-in a { color: var(--text); }

/* ── Reveal ── */
.rv { opacity: 0; transform: translateY(20px); transition: all .65s cubic-bezier(.16,1,.3,1); }
.rv.vis { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: .1s; }
.rv-d2 { transition-delay: .2s; }

/* ── Mobile ── */
@media (max-width: 900px) {
    nav {
        padding: 0 1.5rem; height: 64px;
        grid-template-columns: auto 1fr auto; gap: 0;
    }
    .nav-toggle { display: flex !important; }
    .nav-l, .nav-r { display: none !important; }
    .nav-mobile {
        display: flex !important; flex-direction: column; align-items: center;
        position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
        background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden; padding: 0;
        transition: max-height .35s ease, padding .35s ease;
    }
    nav.menu-open .nav-mobile { max-height: 500px; padding: 1.2rem 0; }
    .nav-mobile .nav-a {
        padding: 0.7rem 1.5rem; width: 100%; text-align: center;
    }
    .nav-c img { height: 48px; }
    .nav-mobile .lang-switch { margin: 0.5rem 0 0; padding: 0; border: none; justify-content: center; }
    .hero { padding: 64px 1.5rem 0; }
    .hero-img { margin-top: 1rem; min-height: 75vh; }
    .hero-content {
        flex-direction: column; align-items: flex-start;
        gap: 1.2rem; padding: 0 1.5rem 2rem;
    }
    .hero-headline { font-size: clamp(1.4rem, 6vw, 2rem); }
    .hero-sub { font-size: 0.72rem; max-width: 300px; }
    .hero-tag { text-align: left; }
    /* Services page mobile */
    .sv-hero { padding: 64px 1.5rem 0; }
    .sv-hero-img { min-height: 50vh; }
    .sv-hero-content { padding: 0 1.5rem 2rem; }
    .sv-hero-h1 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
    .sv-intro { padding: 4rem 1.5rem; }
    .sv-intro-in { grid-template-columns: 1fr; gap: 2.5rem; }
    .sv-types { padding: 4rem 1.5rem 5rem; }
    .sv-diff { padding: 4rem 1.5rem 5rem; }
    .sv-diff-grid { grid-template-columns: 1fr; }
    .sv-cta { padding: 3rem 1.5rem; }
    .sv-cta-in { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .sv-gallery { padding: 4rem 0 5rem; }
    .sv-gallery-hd { padding: 0 1.5rem; }
    .sv-gallery-more { padding: 0 1.5rem; }
    .sv-process { padding: 4rem 1.5rem 5rem; }
    .sv-timeline-step { gap: 1.2rem; padding: 1.5rem 0; }
    .sv-timeline-num { width: 36px; height: 36px; }
    .sv-timeline-num span { font-size: 0.6rem; }
    .sv-vs { padding: 4rem 1.5rem 5rem; }
    .sv-vs-grid { grid-template-columns: 1fr; }
    .sv-vs-col { padding: 2rem 1.5rem; }
    .sv-faq { padding: 4rem 1.5rem 5rem; }

    .manifesto { padding: 5rem 1.5rem; }
    .manifesto-in { grid-template-columns: 1fr; gap: 2.5rem; }
    .projects { padding: 0 0 5rem; }
    .projects-hd { padding: 0 1.5rem 1rem; }
    .projects-g { grid-template-columns: 1fr; }
    .p-card { width: 100%; }
    .services { padding: 4rem 1.5rem 5rem; }
    .srv-grid-2x3 { grid-template-columns: 1fr; }
    .srv-card-img img, .srv-card-img video,
    .srv-card-placeholder { height: 280px; }
    .price-cta { padding: 2.5rem 1.5rem; }
    .price-cta-in { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .why { padding: 5rem 1.5rem; }
    .why-in { grid-template-columns: 1fr; gap: 3rem; }
    .portfolio { padding: 4rem 0; }
    .portfolio-hd { padding: 0 1.5rem; }
    .portfolio-g { grid-template-columns: repeat(2, 1fr); gap: 2px; }
    .portfolio-item--wide { grid-column: span 1; aspect-ratio: 4/3; }
    .portfolio-item { aspect-ratio: 4/3; }
    .team-hero { padding: 64px 1.5rem 0; }
    .team-about { padding: 2rem 1.5rem 4rem; }
    .team-about-in { grid-template-columns: 1fr; }
    .team-box--full { grid-column: 1; }
    .team-members { padding: 0 1.5rem 4rem; }
    .team-grid { grid-template-columns: 1fr; gap: 3rem; }
    .team-section { /* no section padding; handled per-column */ }
    .team-section-in { flex-direction: column; min-height: auto; }
    .team-section--reverse .team-section-in { flex-direction: column; }
    .team-section-text { flex: none; padding: 3.5rem 1.5rem; }
    .team-section--reverse .team-section-text { padding: 3.5rem 1.5rem; }
    .team-section-visual { padding: 0 3px 3px; min-height: 260px; }
    .team-section--reverse .team-section-visual { padding: 0 3px 3px; }
    .team-section-text p { max-width: none; }
    .portfolio-page-hero { padding: 64px 1.5rem 0; }
    .proj-hero { padding: 64px 1.5rem 0; }
    .privacy-hero { padding: 64px 1.5rem 0; }
    .privacy-content { padding: 0 1.5rem 4rem; }
    .proj-desc { padding: 3rem 1.5rem; }
    .proj-gallery { padding: 0 1.5rem 4rem; }
    .proj-gallery-in { grid-template-columns: 1fr; }
    .contact-in { grid-template-columns: 1fr; }
    .contact-form-col { padding: 4rem 1.5rem 3rem; }
    .contact-person-col { padding: 3rem 1.5rem 4rem; border-left: none; border-top: 1px solid var(--border); }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    footer { padding: 2rem 1.5rem; }
    .ft-in { flex-direction: column; gap: 1rem; text-align: center; }
    .ft-right { flex-direction: column; gap: 0.5rem; }
}

/* ── RTL / Arabic ──────────────────────────────────────────────────────────
 * dir="rtl" on <html> (from language_attributes()) automatically reverses
 * CSS Grid auto-placement and Flexbox row direction — no overrides needed.
 * We only manually flip PHYSICAL properties (border-left/right, padding, margin)
 * that the browser cannot infer from direction alone.
 * ─────────────────────────────────────────────────────────────────────────── */
[dir="rtl"] {
    font-family: 'Tajawal', 'Poppins', sans-serif;
}

/* Remove letter-spacing for Arabic script */
[dir="rtl"] .nav-a,
[dir="rtl"] .nav-a--bold { letter-spacing: 0; }

/* Lang-switch: flip physical border/padding from left side to right side */
[dir="rtl"] .lang-switch {
    margin-left: 0;       margin-right: 1.5rem;
    padding-left: 0;      padding-right: 1.5rem;
    border-left: none;    border-right: 1px solid var(--border-s);
}

/* Contact section: flip the vertical divider between form and person columns */
[dir="rtl"] .contact-form-col  { border-left: none;  border-right: 1px solid var(--border); }
[dir="rtl"] .contact-person-col { border-right: none; border-left: 1px solid var(--border); }

/* Form inputs: explicit RTL so placeholder/text aligns right */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select { direction: rtl; text-align: right; }

/* Mobile nav: center links (mobile nav is a column, direction doesn't matter) */
@media (max-width: 768px) {
    [dir="rtl"] .nav-mobile .nav-a { text-align: center; }
    [dir="rtl"] .nav-mobile .lang-switch {
        margin-right: 0; padding-right: 0;
        border-right: none; justify-content: center;
    }
}

/* Hide WPML auto-injected footer language switcher */
.wpml-ls-statics-footer,
#lang_sel_footer,
.wpml-ls-legacy-list-horizontal { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════
   HOME PAGE — White Color Scheme & Full-Viewport Hero
   ══════════════════════════════════════════════════════════════════════════ */

/* Nav — transparent glass on top of hero, solid on scroll */
body.home nav {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
body.home nav .nav-a,
body.home nav .nav-a--bold { color: rgba(255,255,255,0.92); }
body.home nav .nav-a:hover { opacity: 0.65; }
body.home nav .nav-toggle span { background: #fff; }
body.home nav .lang-btn { color: rgba(255,255,255,0.65); }
body.home nav .lang-btn:hover,
body.home nav .lang-btn.active { color: #fff; background: rgba(255,255,255,0.15); }
body.home nav .lang-switch { border-left-color: rgba(255,255,255,0.25); }
/* Logo: invert to white when nav is transparent */
body.home nav:not(.scrolled) .nav-c img { filter: brightness(0) invert(1); }

/* Mobile dropdown always has white bg → restore dark text */
body.home .nav-mobile .nav-a,
body.home .nav-mobile .nav-a--bold { color: var(--text) !important; }
body.home .nav-mobile .lang-btn { color: var(--text-muted) !important; }
body.home .nav-mobile .lang-btn.active { color: var(--text) !important; background: rgba(26,24,22,0.06) !important; }
body.home .nav-mobile .lang-switch { border-left-color: var(--border-s) !important; }

/* Scrolled state — white nav appears */
body.home nav.scrolled {
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid var(--border-s);
    backdrop-filter: blur(16px);
}
body.home nav.scrolled .nav-a,
body.home nav.scrolled .nav-a--bold { color: var(--text); }
body.home nav.scrolled .nav-toggle span { background: var(--text); }
body.home nav.scrolled .lang-btn { color: var(--text-muted); }
body.home nav.scrolled .lang-btn.active { color: var(--text); background: rgba(26,24,22,0.06); }
body.home nav.scrolled .lang-switch { border-left-color: var(--border-s); }
body.home nav.scrolled .nav-c img { filter: none; }

/* 3. Hero — full viewport, nav sits directly on top (no top padding) */
body.home .hero {
    padding: 0;
    min-height: 100vh;
}
body.home .hero-img {
    margin-top: 0;
    min-height: 100vh;
}
/* Gradient: dark at top (nav legibility) + dark at bottom (text legibility) */
body.home .hero-img::after {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.40) 0%,
        transparent 28%,
        transparent 48%,
        rgba(0,0,0,0.62) 100%
    );
}

/* 4. Mobile: also remove top padding on hero */
@media (max-width: 900px) {
    body.home nav { background: transparent; border-bottom-color: transparent; }
    body.home .hero { padding: 0; }
    body.home .hero-img { margin-top: 0; min-height: 100vh; }
    body.home nav.scrolled { background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--border-s); }
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVICES PAGE (3D Visualization) — Full-Viewport Hero & Transparent Nav
   ══════════════════════════════════════════════════════════════════════════ */
body.pg-3dviz nav {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
body.pg-3dviz nav .nav-a,
body.pg-3dviz nav .nav-a--bold { color: rgba(255,255,255,0.92); }
body.pg-3dviz nav .nav-a:hover { opacity: 0.65; }
body.pg-3dviz nav .nav-toggle span { background: #fff; }
body.pg-3dviz nav .lang-btn { color: rgba(255,255,255,0.65); }
body.pg-3dviz nav .lang-btn:hover,
body.pg-3dviz nav .lang-btn.active { color: #fff; background: rgba(255,255,255,0.15); }
body.pg-3dviz nav .lang-switch { border-left-color: rgba(255,255,255,0.25); }
body.pg-3dviz nav:not(.scrolled) .nav-c img { filter: brightness(0) invert(1); }

/* Mobile dropdown → restore dark text */
body.pg-3dviz .nav-mobile .nav-a,
body.pg-3dviz .nav-mobile .nav-a--bold { color: var(--text) !important; }
body.pg-3dviz .nav-mobile .lang-btn { color: var(--text-muted) !important; }
body.pg-3dviz .nav-mobile .lang-btn.active { color: var(--text) !important; background: rgba(26,24,22,0.06) !important; }
body.pg-3dviz .nav-mobile .lang-switch { border-left-color: var(--border-s) !important; }

/* Scrolled state */
body.pg-3dviz nav.scrolled {
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid var(--border-s);
    backdrop-filter: blur(16px);
}
body.pg-3dviz nav.scrolled .nav-a,
body.pg-3dviz nav.scrolled .nav-a--bold { color: var(--text); }
body.pg-3dviz nav.scrolled .nav-toggle span { background: var(--text); }
body.pg-3dviz nav.scrolled .lang-btn { color: var(--text-muted); }
body.pg-3dviz nav.scrolled .lang-btn.active { color: var(--text); background: rgba(26,24,22,0.06); }
body.pg-3dviz nav.scrolled .lang-switch { border-left-color: var(--border-s); }
body.pg-3dviz nav.scrolled .nav-c img { filter: none; }

/* Hero — full viewport */
body.pg-3dviz .sv-hero { padding: 0; }
body.pg-3dviz .sv-hero-img {
    margin-top: 0;
    min-height: 100vh;
}
body.pg-3dviz .sv-hero-img::after {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.42) 0%,
        transparent 30%,
        transparent 50%,
        rgba(0,0,0,0.60) 100%
    );
}
body.pg-3dviz .sv-hero-content { padding: 0 3rem 4rem; }

@media (max-width: 900px) {
    body.pg-3dviz nav { background: transparent; border-bottom-color: transparent; }
    body.pg-3dviz .sv-hero { padding: 0; }
    body.pg-3dviz .sv-hero-img { margin-top: 0; min-height: 100vh; }
    body.pg-3dviz nav.scrolled { background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--border-s); }
}

/* ══════════════════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.not-found {
    min-height: calc(100vh - 72px);
    display: flex; align-items: center; justify-content: center;
    padding: 72px 3rem 4rem;
}
.not-found-in {
    text-align: center;
    max-width: 520px;
}
.not-found-code {
    display: block;
    font-family: var(--font);
    font-size: clamp(5rem, 16vw, 11rem);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--border-s);
    margin-bottom: 1.5rem;
}
.not-found-h {
    font-family: var(--font);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    color: var(--text);
}
.not-found-sub {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-sec);
    margin-bottom: 2.5rem;
}
.not-found-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   THANK YOU PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.thankyou {
    min-height: calc(100vh - 72px);
    display: flex; align-items: center; justify-content: center;
    padding: 72px 3rem 4rem;
}
.thankyou-in {
    text-align: center;
    max-width: 520px;
}
.thankyou-icon {
    width: 64px; height: 64px;
    margin: 0 auto 2rem;
    color: var(--text);
}
.thankyou-icon svg { width: 100%; height: 100%; }
.thankyou-label {
    display: inline-block;
    font-size: 0.58rem; font-weight: 500; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 1rem;
}
.thankyou-h {
    font-family: var(--font);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}
.thankyou-sub {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-sec);
    margin-bottom: 2.5rem;
}
.thankyou-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; flex-wrap: wrap;
}

@media (max-width: 600px) {
    .not-found { padding: 64px 1.5rem 3rem; }
    .thankyou  { padding: 64px 1.5rem 3rem; }
    .not-found-actions, .thankyou-actions { flex-direction: column; align-items: stretch; }
    .not-found-actions .btn-c, .not-found-actions .btn-outline,
    .thankyou-actions .btn-c, .thankyou-actions .btn-outline { text-align: center; justify-content: center; }
}