/* Selin Öztürk İç Mimarlık */

:root {
  --bg: #F7F4EE;
  --bg-alt: #EEE8DD;
  --ink: #1E1C19;
  --muted: #6B655C;
  --line: rgba(30, 28, 25, 0.14);
  --sage: #A8B39A;
  --sage-deep: #5F6B55;
  --dark: #1E1C19;
  --on-dark: #EFE9DE;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
em { font-style: italic; }
h2 { font-size: clamp(40px, 5.4vw, 76px); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  padding: env(safe-area-inset-top, 0) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
  transition: background .5s var(--ease), color .5s var(--ease), height .4s var(--ease), box-shadow .5s;
}
.site-header.is-scrolled, .site-header.is-solid, .site-header.menu-open {
  background: rgba(247, 244, 238, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled { height: 68px; }
/* Bulanıklık efekti sabit konumlu mobil menüyü üst şeride hapsediyor; menü açıkken kapat */
.site-header.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 0; position: relative; z-index: 2; }
.brand img { height: 50px; width: auto; filter: invert(1); transition: filter .5s var(--ease), height .4s var(--ease); }
.brand span { font-size: 9px; letter-spacing: 0.42em; text-transform: uppercase; margin-top: -4px; padding-left: .42em; font-weight: 400; }
.is-scrolled .brand img, .is-solid .brand img, .menu-open .brand img { filter: none; }
.is-scrolled .brand img { height: 36px; }

.site-nav { display: flex; gap: clamp(18px, 2.6vw, 44px); }
.site-nav a {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400;
  position: relative; padding: 6px 0;
}
.site-nav a small { display: none; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.site-nav a:hover::after, .site-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 34px; height: 34px; position: relative; z-index: 2; }
.menu-toggle span { position: absolute; left: 4px; right: 4px; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle span:first-child { top: 13px; }
.menu-toggle span:last-child { top: 21px; }
.menu-open .menu-toggle span:first-child { top: 17px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 17px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand img { height: 34px; }
  .is-scrolled .brand img { height: 30px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 6px;
    padding: var(--header-h) var(--gutter) 40px;
    background: var(--bg); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav a { font-family: var(--serif); font-size: 40px; letter-spacing: 0; text-transform: none; font-weight: 300; display: flex; align-items: baseline; gap: 18px; padding: 4px 0; }
  .site-nav a small { display: inline; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
  .site-nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; background: #2a2622; }
.hero-media { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.8s var(--ease), transform 9s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,18,15,.55) 0%, rgba(20,18,15,0) 26%, rgba(20,18,15,0) 48%, rgba(20,18,15,.62) 100%);
}
.hero-content {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(96px, 14vh, 150px);
  max-width: var(--max); margin: 0 auto;
}
.hero-content .eyebrow { color: rgba(255,255,255,.82); }
.hero h1 { font-size: clamp(46px, 7.4vw, 118px); max-width: 12ch; }
.hero-foot {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 36px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.hero-counter b { font-weight: 400; }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: rgba(255,255,255,.7); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Statement ---------- */
.statement { padding-top: clamp(100px, 16vw, 220px); padding-bottom: clamp(100px, 14vw, 200px); }
.statement p {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 4vw, 58px); line-height: 1.22;
  max-width: 22ch; margin: 0 auto; text-align: center;
}
.statement em { color: var(--sage-deep); }

/* ---------- About ---------- */
.about { padding-bottom: clamp(90px, 12vw, 180px); }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.about-visual { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sage); position: sticky; top: calc(var(--header-h) + 32px); }
.about-visual img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.about-text h2 { margin-bottom: 6px; }
.about-role { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.about-text > p:not(.eyebrow):not(.about-role) { max-width: 60ch; color: #3b3732; }
.about-text blockquote {
  margin: 48px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; max-width: 26ch;
}
.approach { margin-top: clamp(80px, 10vw, 150px); }
.approach-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.approach-list li {
  font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); font-weight: 300;
  padding: 28px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px;
}
.approach-list li:last-child { border-right: 0; }
.approach-list span { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-bottom: 10px; }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); padding: clamp(90px, 12vw, 180px) 0; }
.services-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 140px); }
.services-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.services-head h2 { margin-bottom: 32px; }
.services-head p:last-child { color: #3b3732; max-width: 42ch; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 16px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.service__no { font-size: 12px; letter-spacing: .2em; color: var(--muted); padding-top: 12px; grid-row: span 2; }
.service h3 { font-size: clamp(26px, 2.6vw, 36px); transition: transform .5s var(--ease), color .5s; }
.service p { grid-column: 2; margin: 10px 0 0; color: var(--muted); max-width: 52ch; }
.service:hover h3 { transform: translateX(10px); color: var(--sage-deep); }

/* ---------- Projects ---------- */
.projects { padding: clamp(90px, 12vw, 180px) 0; }
.projects-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 90px); }
.filters { display: flex; gap: 8px; }
.filters button {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; transition: all .35s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(56px, 7vw, 110px); }
.project-card:nth-child(even of .project-card:not([hidden])) { margin-top: clamp(0px, 12vw, 180px); margin-bottom: calc(-1 * clamp(0px, 12vw, 180px)); }
.project-card[hidden] { display: none; }
.project-card__media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-alt); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.045); }
.project-card__meta { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding-top: 22px; }
.project-card__no { font-size: 12px; letter-spacing: .2em; color: var(--muted); padding-top: 9px; grid-row: span 2; }
.project-card h3 { font-size: clamp(28px, 2.6vw, 38px); }
.project-card__meta p { margin: 4px 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Footer / Contact ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding: clamp(90px, 12vw, 170px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 8vw, 140px); align-items: end; }
.site-footer .eyebrow { color: rgba(239,233,222,.6); }
.site-footer h2 { font-size: clamp(52px, 8vw, 128px); }
.site-footer h2 em { color: var(--sage); }
.footer-lede { margin-top: 28px; color: rgba(239,233,222,.72); max-width: 40ch; }
.contact-list { margin: 0; }
.contact-list div { padding: 18px 0; border-top: 1px solid rgba(239,233,222,.16); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.contact-list dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(239,233,222,.55); padding-top: 4px; }
.contact-list dd { margin: 0; }
.contact-list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.contact-list a:hover { background-size: 100% 1px; }
.footer-bottom {
  margin-top: clamp(80px, 10vw, 140px); padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(239,233,222,.16);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(239,233,222,.6);
}
.footer-bottom img { height: 34px; width: auto; filter: invert(1); opacity: .85; }
.to-top:hover { color: var(--on-dark); }

/* ---------- Project page ---------- */
.project-hero { position: relative; height: 92vh; height: 92svh; min-height: 520px; overflow: hidden; color: #fff; background: #2a2622; }
.project-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroIn 2.2s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.45) 0%, rgba(20,18,15,0) 25%, rgba(20,18,15,0) 50%, rgba(20,18,15,.6) 100%); }
.project-hero__content { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 8vh, 96px); }
.project-hero h1 { font-size: clamp(52px, 8vw, 128px); }
.back-link { display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; opacity: .85; }
.back-link:hover { opacity: 1; }

.project-info { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 90px); }
.project-info dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.project-info dl div { padding: 22px 20px 0 0; }
.project-info dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.project-info dd { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); }

/* Soldan sağa, satır satır galeri: her satırdaki görseller aynı yükseklikte, kırpma yok.
   --r = en/boy oranı (HTML'de); --row-h = hedef satır yüksekliği. */
.gallery { --row-h: 320px; display: flex; flex-wrap: wrap; gap: clamp(14px, 1.6vw, 24px); padding-bottom: clamp(90px, 12vw, 160px); }
.gallery::after { content: ""; flex-grow: 999999; }
.gallery-item { display: block; flex-grow: var(--r); flex-basis: calc(var(--r) * var(--row-h)); overflow: hidden; background: var(--bg-alt); cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform 1.1s var(--ease), opacity .5s; }
.gallery-item:hover img { transform: scale(1.03); }

.next-project { position: relative; display: block; height: 70vh; min-height: 420px; overflow: hidden; color: #fff; background: #2a2622; }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform 1.4s var(--ease), opacity .6s; }
.next-project:hover img { transform: scale(1.04); opacity: .85; }
.next-project__label, .next-project__title { position: absolute; left: 0; right: 0; text-align: center; z-index: 2; }
.next-project__label { top: calc(50% - 56px); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.next-project__title { top: calc(50% - 22px); font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 92px); line-height: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(18,16,14,.97); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; max-width: 90vw; max-height: 86vh; display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; transition: opacity .3s; }
.lightbox img.is-loading { opacity: .25; }
.lb-close, .lb-prev, .lb-next { position: absolute; color: #fff; font-family: var(--serif); font-weight: 300; line-height: 1; opacity: .75; transition: opacity .3s; padding: 16px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0)); right: 16px; font-size: 44px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-counter { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0)); left: 0; right: 0; text-align: center; margin: 0; font-size: 12px; letter-spacing: .24em; opacity: .7; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .approach-list { grid-template-columns: repeat(2, 1fr); }
  .approach-list li:nth-child(2) { border-right: 0; }
  .approach-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .about-grid, .services-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-visual, .services-head { position: relative; top: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(even of .project-card:not([hidden])) { margin: 0; }
  .project-card__media { aspect-ratio: 4 / 3; }
  .project-info dl { grid-template-columns: 1fr 1fr; }
  .project-info dl div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .gallery { --row-h: 200px; }
  .lb-prev, .lb-next { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-content { bottom: 110px; }
}
@media (max-width: 520px) {
  .approach-list { grid-template-columns: 1fr; }
  .approach-list li { border-right: 0; margin-right: 0; border-top: 1px solid var(--line); }
  .approach-list li:first-child { border-top: 0; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .filters button { padding: 9px 14px; letter-spacing: .14em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 60px); padding-bottom: 100px; }
.notfound h1 { font-size: clamp(48px, 7vw, 104px); margin-bottom: 24px; }
.notfound h1 em { color: var(--sage-deep); }
.notfound > p:not(.eyebrow) { color: var(--muted); }
.notfound-links { display: flex; gap: 28px; margin-top: 20px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.notfound-links a { border-bottom: 1px solid var(--line); padding-bottom: 4px; color: var(--ink); }
.notfound-links a:hover { border-color: var(--ink); }
