/* =========================================================
   Mert Arslan — İç Mimar (Arslan Arch Design)
   versiyon2 / style.css
   ========================================================= */

:root {
    --bg: #EFEAE2;
    --bg-2: #E8E2D8;
    --ink: #1A1815;
    --muted: #534D45;
    --muted-2: #8A8174;
    --accent: #8A7B6A;
    --light: #F6F2EC;
    --radius: 2px;
    --line: rgba(26, 24, 21, 0.14);
    --line-light: rgba(239, 234, 226, 0.16);
    --container: 1360px;
    --pad-x: clamp(20px, 5vw, 72px);
    --font-display: "Archivo", system-ui, sans-serif;
    --font-body: "Hanken Grotesk", system-ui, sans-serif;
    --mono: ui-monospace, Menlo, monospace;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--pad-x);
}

.section { padding-block: clamp(70px, 10vw, 150px); }

/* ---------- Ortak ---------- */
.kicker {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}
.kicker--light { color: rgba(246, 242, 236, .85); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: var(--radius);
    transition: .35s var(--ease);
    border: 1px solid var(--ink);
}
.btn__arrow { font-size: 1rem; }
.btn--light { border-color: rgba(246, 242, 236, .5); color: var(--light); }
.btn--light:hover { background: var(--light); color: var(--ink); border-color: var(--light); }
.btn--solid { background: var(--light); color: var(--ink); border: none; font-weight: 600; padding: 16px 34px; }
.btn--solid:hover { background: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(239, 234, 226, .78);
    border-bottom: 1px solid rgba(26, 24, 21, .10);
}
.header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--pad-x);
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand__logo {
    width: 64px; height: 64px;
    object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; letter-spacing: .16em; }
.brand__sub { font-size: .58rem; letter-spacing: .34em; opacity: .55; font-weight: 500; }

.desk-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); }
.nav-link {
    font-size: .74rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 500;
    opacity: .78;
    transition: opacity .3s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-sep { width: 1px; height: 18px; background: rgba(26, 24, 21, .2); }

.lang { display: flex; align-items: center; gap: 9px; font-size: .74rem; letter-spacing: .1em; font-weight: 600; }
.lang__btn { background: none; border: none; padding: 0; letter-spacing: .1em; font-weight: 600; font-size: .74rem; opacity: .4; transition: opacity .3s; color: inherit; }
.lang__btn.is-active { opacity: 1; }
.lang__slash { opacity: .3; }

.menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.menu-btn span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }

/* ---------- Mobil Menü ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    padding: var(--pad-x);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .5s var(--ease), visibility .5s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__top { height: 30px; display: flex; justify-content: flex-end; }
.mobile-menu__close { background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--ink); }
.mobile-menu__nav { margin: auto 0; display: flex; flex-direction: column; gap: 22px; }
.mobile-menu__nav a { font-family: var(--font-display); font-size: 2.2rem; font-weight: 300; }
.mobile-menu__lang { display: flex; gap: 12px; font-size: .85rem; letter-spacing: .1em; font-weight: 600; }

/* ---------- Hero (Galeri) ---------- */
.hero {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    scroll-margin-top: 74px;
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.06);
    animation: heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,18,15,.04) 0%, rgba(20,18,15,.12) 45%, rgba(20,18,15,.66) 100%);
}
.hero__inner {
    position: relative;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x) clamp(44px, 6vw, 90px);
    color: var(--light);
}
.hero__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.9rem, 8vw, 7rem);
    line-height: .97;
    letter-spacing: -.02em;
    margin: 0;
    max-width: 14ch;
}
.hero__desc {
    max-width: 46ch;
    margin: 30px 0 0;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.65;
    opacity: .92;
}
.hero .btn { margin-top: 38px; }

/* ---------- Hakkımda ---------- */
.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(36px, 6vw, 90px);
    align-items: center;
}
.about__visual { position: relative; }
.about__visual img { width: 100%; border-radius: var(--radius); background: var(--bg-2); }
.about__sign {
    position: absolute;
    bottom: 18px; left: 18px;
    background: rgba(239, 234, 226, .92);
    backdrop-filter: blur(6px);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
}
.about__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.9rem, 3.6vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0;
}
.about__body p { margin: 26px 0 0; font-size: 1.06rem; line-height: 1.78; color: var(--muted); }
.about__body p + p { margin-top: 18px; }

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(28px, 4vw, 54px);
    margin-top: 44px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}
.stat__n { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; }
.stat__l { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); margin-top: 8px; font-weight: 500; }

/* ---------- Projeler ---------- */
.projects { background: var(--bg-2); }
.projects__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(44px, 5vw, 70px);
}
.projects__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.02em; margin: 0; }
.projects__desc { max-width: 40ch; font-size: 1rem; line-height: 1.7; color: var(--muted); margin: 0; }

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
    gap: clamp(22px, 2.6vw, 44px);
}
.project { display: block; cursor: pointer; }
.project__media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: repeating-linear-gradient(45deg, #D9D1C4 0 13px, #E0D8CB 13px 26px);
}
.project__view {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -42%);
    padding: 12px 24px;
    background: rgba(246, 242, 236, .92);
    color: var(--ink);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease), transform .4s var(--ease);
    z-index: 2;
}
.project:hover .project__view,
.project:focus-visible .project__view { opacity: 1; transform: translate(-50%, -50%); }
.project__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform .7s var(--ease), filter .7s var(--ease);
    filter: grayscale(.15);
}
.project[data-ratio="5/4"] .project__media img { aspect-ratio: 5 / 4; }
.project[data-ratio="1/1"] .project__media img { aspect-ratio: 1 / 1; }
.project:hover .project__media img { transform: scale(1.05); filter: grayscale(0); }

.project__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.project__num { font-family: var(--mono); font-size: .7rem; color: var(--muted-2); }
.project__info { display: flex; flex-direction: column; }
.project__meta > .project__info { flex: 1; margin-left: 14px; }
.project__name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 400; letter-spacing: -.01em; }
.project__sub { font-size: .78rem; color: var(--muted-2); margin-top: 4px; letter-spacing: .04em; }
.project__year { font-family: var(--mono); font-size: .74rem; color: var(--muted-2); }

/* baseline alignment helper */
.project__meta { align-items: center; }

/* ---------- Referanslar ---------- */
.refs__head { text-align: center; max-width: 24ch; margin: 0 auto clamp(50px, 6vw, 80px); }
.refs__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; margin: 0; }

.refs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(28px, 3vw, 48px);
}
.ref {
    margin: 0;
    padding: 38px 34px;
    background: var(--bg-2);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.projects .ref { background: var(--bg); }
.ref__quote-mark { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.ref blockquote { margin: 0; font-size: 1.12rem; line-height: 1.6; flex: 1; }
.ref figcaption { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.ref__author { font-family: var(--font-display); font-weight: 500; font-size: .96rem; }
.ref__role { font-size: .78rem; color: var(--muted-2); margin-top: 4px; letter-spacing: .04em; }

.clients { margin-top: clamp(54px, 6vw, 84px); padding-top: 38px; border-top: 1px solid var(--line); }
.clients__label { text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 30px; font-weight: 500; }
.clients__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 64px); }
.clients__list span { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: .16em; color: var(--ink); opacity: .45; }

/* ---------- İletişim ---------- */
.contact { background: var(--ink); color: var(--bg); padding: clamp(70px, 10vw, 150px) 0 0; }
.contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(40px, 6vw, 90px);
}
.contact .kicker { color: var(--accent); }
.contact__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -.02em; margin: 0; max-width: 16ch; }
.contact__desc { margin: 24px 0 0; font-size: 1.06rem; line-height: 1.7; color: rgba(239, 234, 226, .7); max-width: 40ch; }

.contact__info { margin-top: 46px; display: flex; flex-direction: column; gap: 24px; }
.info__label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 234, 226, .5); margin-bottom: 8px; font-weight: 500; }
.info__value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 300; transition: opacity .3s; }
a.info__value:hover { opacity: .7; }

.contact__follow { margin-top: 40px; }
.socials { display: flex; gap: 12px; }
.socials a {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid rgba(239, 234, 226, .28);
    border-radius: 999px;
    transition: .3s;
}
.socials a:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

.contact__form { display: flex; flex-direction: column; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field__label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 234, 226, .55); font-weight: 500; }
.field input, .field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(239, 234, 226, .28);
    color: var(--bg);
    padding: 10px 0;
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    transition: border-color .3s;
    resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--bg); }
.contact__form .btn { margin-top: 8px; align-self: flex-start; }

.contact__sent {
    min-height: 340px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(239, 234, 226, .2);
    border-radius: var(--radius);
    padding: 48px;
}
.contact__sent-mark { font-family: var(--font-display); font-size: 2.2rem; font-weight: 300; color: var(--accent); margin-bottom: 14px; }
.contact__sent p { margin: 0; font-size: 1.1rem; line-height: 1.6; max-width: 30ch; }

/* ---------- Footer ---------- */
.footer {
    margin-top: clamp(60px, 8vw, 110px);
    padding: 34px 0;
    border-top: 1px solid var(--line-light);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { width: 40px; height: 40px; object-fit: contain; filter: invert(1); }
.footer__copy { font-size: .78rem; letter-spacing: .04em; color: rgba(239, 234, 226, .55); }
.footer__url { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: rgba(239, 234, 226, .55); }

/* ---------- Lightbox / Galeri ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 18, 15, .96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s var(--ease);
    color: var(--bg);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px var(--pad-x);
    border-bottom: 1px solid rgba(239, 234, 226, .14);
}
.lightbox__title { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; flex: 1; }
.lightbox__counter { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; color: var(--accent); }
.lightbox__close {
    width: 44px; height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(239, 234, 226, .28);
    background: none;
    color: var(--bg);
    font-size: 1.5rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: .3s var(--ease);
}
.lightbox__close:hover { background: var(--bg); color: var(--ink); transform: rotate(90deg); }

.lightbox__stage {
    flex: 1;
    position: relative;
    display: grid;
    place-items: center;
    padding: 24px var(--pad-x);
    min-height: 0;
}
.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity .4s var(--ease);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.lightbox__img.is-loaded { opacity: 1; }

.lightbox__spinner {
    position: absolute;
    width: 38px; height: 38px;
    border: 2px solid rgba(239, 234, 226, .25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.lightbox__spinner.is-hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 54px; height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(239, 234, 226, .28);
    background: rgba(20, 18, 15, .4);
    color: var(--bg);
    font-size: 1.3rem;
    display: grid;
    place-items: center;
    transition: .3s var(--ease);
}
.lightbox__nav:hover { background: var(--bg); color: var(--ink); }
.lightbox__nav--prev { left: clamp(10px, 3vw, 34px); }
.lightbox__nav--next { right: clamp(10px, 3vw, 34px); }

.lightbox__thumbs {
    display: flex;
    gap: 10px;
    padding: 16px var(--pad-x) 26px;
    overflow-x: auto;
    justify-content: center;
    scrollbar-width: thin;
}
.lightbox__thumb {
    width: 88px; height: 62px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--radius);
    opacity: .4;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__thumb:hover { opacity: .8; }
.lightbox__thumb.is-active { opacity: 1; border-color: var(--accent); }

body.no-scroll { overflow: hidden; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .desk-nav { display: none; }
    .menu-btn { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
