/* BEMARC — Galeri
   12 kolon grid, 8px taban, geniş boşluk ölçeği. Tek tema (beyaz), bilinçli. */

:root {
  --bg: #ffffff;
  --paper: #f3f1ec;
  --ink: #141414;
  --mute: #767572;
  --line: #e2e0db;
  --acc: #2f3a4f;

  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --gap: clamp(16px, 2vw, 24px);
  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px;
  --s6: clamp(48px, 6vw, 72px);
  --s7: clamp(64px, 8vw, 96px);
  --s8: clamp(96px, 12vw, 160px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
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; }
em { font-style: italic; font-weight: 300; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }

.g { padding-left: var(--gutter); padding-right: var(--gutter); }

.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.lab { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.ulink {
  position: relative; display: inline-block; padding-bottom: 4px;
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink);
  transition: color 0.3s;
}
.ulink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; }
.ulink:hover { color: var(--acc); }
.ulink:hover::after { animation: ul 0.6s var(--ease); }
@keyframes ul { 0% { transform: scaleX(1); transform-origin: right; } 50% { transform: scaleX(0); transform-origin: right; } 51% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* image reveal wrapper: clip from bottom, inner img scales down */
.reveal { overflow: hidden; background: var(--paper); clip-path: inset(100% 0 0 0); }
.reveal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.reveal.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease); }
.reveal.is-in img { transform: scale(1); transition: transform 1.8s var(--ease); }
.no-motion .reveal { clip-path: none; }
.no-motion .reveal img { transform: none; }

/* line reveal */
.line { display: block; overflow: hidden; }
.line__in { display: block; transform: translateY(110%); }
.no-motion .line__in { transform: none; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 900; background: var(--bg); display: grid; place-items: center; }
.loader__mark { font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: 0.3em; opacity: 0; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 800; background: rgba(255,255,255,0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(-100%); }
.header::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity 0.4s; }
.header.is-scrolled::after { opacity: 1; }
.no-motion .header { transform: none; }
.header__in { display: flex; justify-content: space-between; align-items: center; height: 76px; padding: 0 var(--gutter); }
.header__logo { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: 0.22em; }
.header__nav { display: flex; gap: 32px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.header__nav a { position: relative; padding: 4px 0; }
.header__nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 26px; }
.burger.is-open i:first-child { top: 22px; transform: rotate(45deg); }
.burger.is-open i:last-child { top: 22px; transform: rotate(-45deg); }

/* Menu */
.menu { position: fixed; inset: 0; z-index: 700; background: var(--bg); padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; visibility: hidden; opacity: 0; transition: opacity 0.4s, visibility 0s 0.4s; }
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.4s; }
.menu__nav { display: flex; flex-direction: column; gap: 8px; }
.menu__nav a { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 10vw, 72px); line-height: 1.05; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); padding: 10px 0; }
.menu__meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--mute); }

/* Hero */
.hero { padding-top: calc(76px + var(--s6)); padding-bottom: var(--s7); }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 7vw, 108px); line-height: 0.98; letter-spacing: -0.025em; max-width: 14ch; text-wrap: balance; }
.hero__row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; margin-top: var(--s6); }
.hero__lead { grid-column: 1 / span 6; max-width: 42ch; color: var(--mute); font-size: 15px; opacity: 0; }
.hero__row .ulink { grid-column: 10 / span 3; justify-self: end; opacity: 0; }
.no-motion .hero__lead, .no-motion .hero__row .ulink { opacity: 1; }
.hero__frame { margin-top: var(--s6); }
.hero__frame .reveal { aspect-ratio: 2 / 1; }
.hero__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 500; }

/* Manifesto */
.mani { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding-top: var(--s8); padding-bottom: var(--s8); border-top: 1px solid var(--line); }
.mani .lab { grid-column: 1 / span 2; padding-top: 10px; }
.mani__text { grid-column: 3 / span 9; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.4vw, 48px); line-height: 1.18; letter-spacing: -0.015em; max-width: 24ch; }
.mani__text .w { color: var(--line); transition: color 0.5s; }
.mani__text .w.on { color: var(--ink); }
.no-motion .mani__text .w { color: var(--ink); }

/* Services */
.serv { border-top: 1px solid var(--line); }
.serv__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-top: var(--s5); padding-bottom: var(--s4); }
.serv__cols { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; margin-left: calc(-1 * var(--s3)); margin-right: calc(-1 * var(--s3)); }
.serv__cols::before, .serv__more::before { content: ""; position: absolute; top: 0; left: var(--s3); right: var(--s3); height: 1px; background: var(--line); }
.serv__col { display: grid; grid-template-rows: auto auto 1fr auto; border-right: 1px solid var(--line); padding: var(--s4) var(--s3) var(--s5); min-height: 480px; }
.serv__col:first-child { border-left: 0; }
.serv__col:last-child { border-right: 0; }
.serv__col h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0 12px; }
.serv__col p { font-size: 14px; color: var(--mute); max-width: 30ch; margin-bottom: var(--s3); }
.serv__col .ph .reveal { aspect-ratio: 4 / 3; }
.serv__col .ph img { transition: transform 1.2s var(--ease); }
.serv__col:hover .ph .reveal.is-in img { transform: scale(1.04); }
.serv__col:hover h3 { font-style: italic; }
.serv__more { display: grid; grid-template-columns: 1fr 1fr; position: relative; margin-left: calc(-1 * var(--s3)); margin-right: calc(-1 * var(--s3)); }
.serv__cols::before, .serv__more::before { content: ""; position: absolute; top: 0; left: var(--s3); right: var(--s3); height: 1px; background: var(--line); }
.serv__more > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: var(--s3) var(--s3); border-right: 1px solid var(--line); }
.serv__more > div:last-child { border-right: 0; }
.serv__name { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.01em; }

/* Areas wall */
.areas { padding-top: var(--s8); padding-bottom: var(--s8); }
.areas__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-bottom: var(--s6); }
.areas__head .lab { grid-column: 1 / span 2; padding-top: 10px; }
.areas__head .h2 { grid-column: 3 / span 8; }
.wall { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: var(--s5); align-items: start; }
.wall__f { display: flex; flex-direction: column; gap: 10px; will-change: transform; }
.wall__f figcaption { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.wall__f img { transition: transform 1.2s var(--ease); }
.wall__f:hover .reveal.is-in img { transform: scale(1.03); }
.wall__f1 { grid-column: 1 / span 7; } .wall__f1 .reveal { aspect-ratio: 4 / 3; }
.wall__f2 { grid-column: 9 / span 4; margin-top: clamp(40px, 10vw, 140px); } .wall__f2 .reveal { aspect-ratio: 3 / 4; }
.wall__f3 { grid-column: 2 / span 4; } .wall__f3 .reveal { aspect-ratio: 1; }
.wall__f4 { grid-column: 7 / span 6; margin-top: clamp(24px, 5vw, 64px); } .wall__f4 .reveal { aspect-ratio: 16 / 10; }
.wall__f5 { grid-column: 1 / span 5; } .wall__f5 .reveal { aspect-ratio: 4 / 5; }
.wall__f6 { grid-column: 7 / span 6; margin-top: clamp(40px, 10vw, 140px); } .wall__f6 .reveal { aspect-ratio: 4 / 3; }

/* Process */
.proc { border-top: 1px solid var(--line); padding-top: var(--s5); padding-bottom: var(--s8); }
.proc__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: var(--s6); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); row-gap: var(--s5); }
.step { border-top: 1px solid var(--ink); padding-top: 18px; }
.step__n { font-family: var(--serif); font-weight: 300; font-size: 28px; color: var(--mute); line-height: 1; }
.step h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 10px; }
.step p { font-size: 14px; color: var(--mute); }

/* Numbers */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: calc(var(--gutter) - var(--s3)); padding-right: calc(var(--gutter) - var(--s3)); }
.num { padding: var(--s4) var(--s3); border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.num > span { display: block; margin-top: 8px; font-size: 13px; color: var(--mute); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding-top: var(--s8); padding-bottom: var(--s8); }
.contact__info { grid-column: 1 / span 6; }
.contact__title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.6vw, 84px); line-height: 0.98; letter-spacing: -0.025em; margin: 12px 0 20px; }
.contact__lead { color: var(--mute); max-width: 40ch; margin-bottom: var(--s4); font-size: 15px; }
.contact__list { list-style: none; }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.contact__list a { position: relative; width: fit-content; }
.contact__list a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.contact__list a:hover::after { transform: scaleX(1); transform-origin: left; }

.form { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 22px; padding-top: 26px; }
.hp { position: absolute; left: -9999px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0;
  font: inherit; font-size: 16px; color: var(--ink); padding: 10px 0 12px; resize: vertical; -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; }
.field select:invalid { color: var(--mute); }
.field input::placeholder, .field textarea::placeholder { color: #a8a6a2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--acc); }
.btn { display: inline-block; margin-top: 6px; padding: 18px 28px; background: var(--ink); color: var(--bg); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; width: fit-content; min-height: 44px; transition: background 0.3s; }
.btn:hover { background: var(--acc); }
.form__note { font-size: 12px; color: var(--mute); }
.form__ok { font-size: 14px; color: var(--ink); border: 1px solid var(--line); padding: 12px 16px; background: var(--paper); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: var(--s5); padding-bottom: 120px; overflow: hidden; }
.footer__big { display: flex; justify-content: space-between; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 17vw, 280px); line-height: 0.8; letter-spacing: 0.02em; color: var(--paper); -webkit-text-stroke: 1px var(--line); user-select: none; }
.footer__big span { display: inline-block; transition: color 0.5s, -webkit-text-stroke-color 0.5s; }
.footer__big:hover span { color: var(--ink); -webkit-text-stroke-color: var(--ink); }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: var(--s4); font-size: 12px; letter-spacing: 0.08em; color: var(--mute); }
.footer__row a { color: var(--ink); }

/* Mobile quick bar */
.quick { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 600; display: none; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 6px; background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.quick a { display: grid; place-items: center; height: 44px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.quick__cta { background: var(--ink); color: var(--bg); }

/* Responsive */
@media (max-width: 1024px) {
  .serv__col { min-height: 0; }
  .contact__info { grid-column: 1 / span 12; }
  .form { grid-column: 1 / span 12; margin-top: var(--s5); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .header__nav, .header__cta { display: none; }
  .burger { display: block; }
  .hero { padding-top: calc(76px + var(--s4)); }
  .hero__lead { grid-column: 1 / span 12; }
  .hero__row .ulink { grid-column: 1 / span 12; justify-self: start; margin-top: 20px; }
  .hero__frame .reveal { aspect-ratio: 4 / 5; }
  .mani .lab, .mani__text, .areas__head .lab, .areas__head .h2 { grid-column: 1 / span 12; }
  .mani__text { margin-top: 12px; }
  .areas__head .h2 { margin-top: 12px; }
  .serv__cols, .serv__more { grid-template-columns: 1fr; margin-left: 0; margin-right: 0; }
  .serv__cols::before, .serv__more::before { left: 0; right: 0; }
  .serv__col { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .serv__col:last-child { border-bottom: 0; }
  .serv__more > div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .serv__more > div:last-child { border-bottom: 0; }
  .wall { row-gap: var(--s4); }
  .wall__f { grid-column: 1 / span 12 !important; margin-top: 0 !important; }
  .wall__f2 .reveal, .wall__f5 .reveal { aspect-ratio: 4 / 5; }
  .wall__f3 .reveal { aspect-ratio: 1; }
  .steps { grid-template-columns: 1fr; }
  .nums { grid-template-columns: 1fr; }
  .nums { padding-left: var(--gutter); padding-right: var(--gutter); }
  .num { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .num:last-child { border-bottom: 0; }
  .contact__list li { grid-template-columns: 90px 1fr; }
  .quick { display: grid; }
  .footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
