
:root {
  --background-color: #f5f4f1;
  --foreground-color: #262523;
  --muted-color: color-mix(in srgb, var(--foreground-color) 64%, transparent);
  --dark-foreground: #fff7f0;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-inter: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  color-scheme: light;
}
.dark {
  --background-color: #1a1917;
  --foreground-color: #fff7f0;
  --muted-color: color-mix(in srgb, var(--foreground-color) 50%, transparent);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--background-color);
  color: var(--foreground-color);
  font-family: ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .3s, color .3s;
}
h1, h2, h3, p, figure, blockquote { margin: 0; font: inherit; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

html[lang="tr"] [data-lang="en"], html[lang="en"] [data-lang="tr"] { display: none !important; }

.lang-switch { display: inline-flex; align-items: center; gap: .35em; font-family: var(--font-mono); font-size: 13px; text-transform: lowercase; }
.lang-switch .sep { opacity: .3; }
.lang-switch button { opacity: .5; transition: opacity .15s; outline: none; }
.lang-switch button:hover, .lang-switch button:focus-visible { opacity: 1; }
html[lang="tr"] .lang-switch [data-set-lang="tr"], html[lang="en"] .lang-switch [data-set-lang="en"] { opacity: 1; }
.site-nav .lang-switch button { opacity: .5; }
html[lang="tr"] .site-nav .lang-switch [data-set-lang="tr"], html[lang="en"] .site-nav .lang-switch [data-set-lang="en"] { opacity: 1; }
.m-bar .m-lang-slot { flex: 1; }
.m-lang { position: absolute; top: 50%; right: 14vw; transform: translateY(-50%); z-index: 1; color: var(--foreground-color); }
.m-lang .lang-switch { font-size: 14px; }
.m-lang .lang-switch button { padding: 6px 2px; }

.mono { font-family: var(--font-mono); }
.sans { font-family: var(--font-sans); }

.ul {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--foreground-color) 35%, transparent);
  outline: none;
  transition: opacity .15s, text-decoration-color .15s, color .15s;
}
.ul:hover, .ul:focus-visible { text-decoration-color: var(--foreground-color); }
.ul.soft { opacity: .6; }
.ul.soft:hover, .ul.soft:focus-visible { opacity: 1; }
.sep { opacity: .4; }

.cursor {
  display: inline-block;
  margin-left: .25rem;
  width: .55em; height: 1em;
  transform: translateY(.15em);
  background: var(--foreground-color);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.fade-in { opacity: 0; animation: fadeIn var(--d, .3s) ease forwards; animation-delay: var(--delay, 0s); }
@keyframes fadeIn { to { opacity: var(--to, 1); } }

.site-nav {
  position: fixed; inset: 0 0 auto 0; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  padding-top: 2rem;
  font-family: var(--font-mono); font-size: 13px; text-transform: lowercase;
  color: var(--foreground-color);
  transition: color .2s;
  view-transition-name: site-nav;
}
.site-nav a, .site-nav button { opacity: .5; outline: none; transition: opacity .15s; }
.site-nav a:hover, .site-nav a:focus-visible,
.site-nav button:hover, .site-nav button:focus-visible,
.site-nav a[aria-current="page"] { opacity: 1; }
.site-nav .theme-wrap { margin: -1rem; padding: 1rem; display: flex; }
.site-nav.on-dark { color: var(--dark-foreground); }

.icon-moon, .icon-sun { display: block; }
.dark .icon-moon { display: none; }
html:not(.dark) .icon-sun { display: none; }

.m-bar { position: fixed; top: 3vw; left: 3vw; right: 3vw; z-index: 50; display: none; }
.m-bar > button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 3.5vw 5vw; border-radius: 9999px;
  background: color-mix(in srgb, var(--foreground-color) 6%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.m-bar .m-name { font-family: var(--font-inter); font-size: 20px; color: var(--foreground-color); }
.m-bar .m-icon { position: relative; width: 5vw; height: 5vw; display: grid; place-items: center; }
.m-bar .m-icon svg { width: 4vw; height: 4vw; position: absolute; transition: opacity .2s, transform .25s; }
.m-bar .m-icon .ic-close { opacity: 0; transform: rotate(-45deg); }
.menu-open .m-bar .m-icon .ic-dots { opacity: 0; transform: rotate(45deg); }
.menu-open .m-bar .m-icon .ic-close { opacity: 1; transform: none; }

.m-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--background-color);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.menu-open .m-menu { opacity: 1; pointer-events: auto; }
.m-menu nav { display: flex; flex-direction: column; align-items: center; gap: .1em; }
.m-menu nav a {
  font-family: var(--font-serif); font-size: 13vw; line-height: 1.15; color: var(--foreground-color);
  transform: translateY(12px); opacity: 0; transition: transform .35s ease, opacity .35s ease;
}
.menu-open .m-menu nav a { transform: none; opacity: 1; }
.menu-open .m-menu nav a:nth-child(2) { transition-delay: .04s; }
.menu-open .m-menu nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .m-menu nav a:nth-child(4) { transition-delay: .12s; }
.m-menu .m-foot {
  position: absolute; bottom: 10vh; display: flex; align-items: center; gap: 8vw;
  font-family: var(--font-inter); font-size: 14px; color: var(--muted-color);
}
.m-menu .m-foot a { display: inline-flex; align-items: center; gap: 4px; }
.m-menu .m-foot svg { width: 12px; height: 12px; }

@media (max-width: 1023.98px) {
  .site-nav { display: none; }
  .m-bar { display: block; }
  .lg-only { display: none !important; }
}
@media (min-width: 1024px) {
  .m-menu { display: none; }
  .sm-only { display: none !important; }
}

.pond-page { overflow: hidden; overscroll-behavior: none; }
#mainPage { position: relative; height: 100dvh; width: 100%; overflow: hidden; background: var(--background-color); transition: background-color .3s; }
#pond { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#mainPage main { position: relative; z-index: 20; display: flex; flex-direction: column; height: 100%; }

.hero {
  margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%;
  color: var(--foreground-color);
}
@media (min-width: 1024px) {
  .hero { position: relative; padding: 8rem 20vw; gap: 2.5rem; }
}
@media (min-width: 1024px) and (max-height: 720px) { .hero { gap: 1.5rem; padding-bottom: 3rem; padding-top: 5rem; } }
.hero .stats {
  position: absolute; right: 20vw; top: 2rem;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.625;
  font-variant-numeric: tabular-nums;
}
.hero .stats div { opacity: .32; }
.hero .stats .pulse { animation: statPulse .6s ease-out; }
@keyframes statPulse { from { opacity: 1; } to { opacity: .32; } }
.hero .quote {
  font-family: var(--font-mono); font-size: 14px; text-transform: lowercase;
  line-height: 1.625; letter-spacing: .02em; --to: .6; --d: .4s;
}
.hero .prose {
  max-width: 54rem; font-family: var(--font-mono); font-size: 15px;
  line-height: max(22px, 3vh); --delay: .2s;
  transition: color .18s;
}
.hero .prose .links { margin-top: 1.5vh; }

.prose:has(.cite button:hover),
.prose:has(.cite button:focus-visible),
.prose:has(.cite[data-open="true"]) { color: color-mix(in srgb, var(--foreground-color) 32%, transparent); }
.cite { position: relative; display: inline-block; }
.cite > button {
  display: inline; vertical-align: baseline;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--foreground-color) 35%, transparent);
  transition: text-decoration-color .15s; outline: none;
}
.cite > button:hover, .cite > button:focus-visible, .cite[data-open="true"] > button {
  text-decoration-color: var(--foreground-color); color: var(--foreground-color);
}
.cite > button:focus-visible { text-decoration-thickness: 2px; }

.pop {
  position: absolute; bottom: 100%; left: 0; z-index: 50; margin-bottom: 10px;
  width: 340px; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 8px; cursor: pointer;
  font-family: var(--font-mono); color: var(--foreground-color);
  line-height: normal; text-align: left;
  transform-origin: bottom left;
  background: color-mix(in srgb, var(--background-color) 93%, var(--foreground-color));
  border: 1px solid color-mix(in srgb, var(--foreground-color) 9%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--foreground-color) 6%, transparent), 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -12px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(4px) scale(.98); pointer-events: none;
  transition: opacity .08s ease-in, transform .08s ease-in;
}
html:not(.dark) .pop {
  background: color-mix(in srgb, var(--background-color) 45%, #ffffff);
  border-color: color-mix(in srgb, var(--foreground-color) 11%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 2px rgba(38,37,35,.06), 0 12px 32px -12px rgba(38,37,35,.18);
}
.cite[data-open="true"] .pop { opacity: 1; transform: none; pointer-events: auto; transition: opacity .12s ease-out, transform .12s ease-out; }
.pop .body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.pop .row { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1; }
.pop .row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .6; }
.pop .row .dt { margin-left: auto; flex-shrink: 0; padding-left: .5rem; font-variant-numeric: tabular-nums; opacity: .4; }
.pop .role { margin-top: 4px; font-size: 13px; line-height: 18px; }
.pop .sum { font-size: 12px; line-height: 18px; opacity: .6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pop .group { display: flex; flex-direction: column; padding: 6px; }
.pop .group .item { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 6px; transition: background-color .1s; }
.pop .group .item:hover { background: color-mix(in srgb, var(--foreground-color) 6%, transparent); }
.pop .foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; font-size: 11px; line-height: 1; opacity: .4;
  border-top: 1px solid color-mix(in srgb, var(--foreground-color) 7%, transparent);
}
html:not(.dark) .pop .foot { border-top-color: color-mix(in srgb, var(--foreground-color) 8%, transparent); }
.logo {
  display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 4px; overflow: hidden;
  background: color-mix(in srgb, var(--foreground-color) 12%, transparent);
}
.logo.has-img { background: none; overflow: visible; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo span { font-size: 10px; line-height: 1; opacity: .6; }

@media (max-width: 1023.98px) {
  .hero { padding: 7rem 1.5rem 3rem; gap: 2rem; font-family: var(--font-mono); }
  .hero .quote { font-size: 13px; }
  .hero .prose { display: flex; flex-direction: column; gap: .75rem; font-size: 14px; line-height: 1.6; }
  .hero .prose > [data-lang] { display: contents; }
  .hero .prose .links { margin-top: .5rem; }
  .hero .pop { position: fixed; left: 16px; right: 16px; bottom: auto; width: auto; margin: 0; }
  .prose:has(.cite button:hover):not(:has(.cite[data-open="true"])) { color: inherit; }
}
@media (max-width: 1023.98px) and (max-height: 640px) { .hero { gap: 1.25rem; padding-bottom: 2rem; } }

.projects-page { height: 100vh; overflow: hidden; }
.proj-rail-wrap { display: flex; height: 100%; flex-direction: column; justify-content: center; padding-top: 3rem; }
.proj-rail {
  display: flex; gap: .75rem; overflow-x: auto;
  padding: 0 max(1.5rem, calc((100vw - 56rem) / 2));
  scrollbar-width: none; scroll-behavior: smooth;
}
.proj-rail::-webkit-scrollbar { display: none; }
.proj-card { display: block; width: min-content; flex-shrink: 0; outline: none; }
.proj-card .shot {
  position: relative; aspect-ratio: 3 / 2; height: min(62vh, 42rem); overflow: hidden;
  background: color-mix(in srgb, var(--foreground-color) 6%, transparent);
}
.proj-card .shot img, .proj-card .shot .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease-out; }
.proj-card:hover .shot img, .proj-card:hover .shot .ph,
.proj-card:focus-visible .shot img, .proj-card:focus-visible .shot .ph { transform: scale(1.03); }
.chip {
  pointer-events: none; position: absolute; bottom: 1rem; left: 1rem;
  border-radius: 9999px; background: rgb(0 0 0 / .55); padding: .375rem .75rem;
  font-family: var(--font-mono); font-size: 12px; color: var(--dark-foreground);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(.25rem); transition: opacity .3s ease-out, transform .3s ease-out;
}
.proj-card:hover .chip, .proj-card:focus-visible .chip { opacity: 1; transform: none; }
.proj-card .meta { margin-top: .75rem; display: flex; align-items: baseline; gap: .75rem; }
.proj-card .meta .t { white-space: nowrap; font-size: 15px; }
.proj-card .meta .y { white-space: nowrap; font-family: var(--font-mono); font-size: 12px; color: var(--muted-color); }
.proj-card .desc { margin-top: .25rem; font-size: 14px; line-height: 1.5; color: var(--muted-color); }

.ph { display: block; background:
  radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--ph, #e86038) 55%, transparent), transparent 60%),
  radial-gradient(90% 90% at 90% 90%, color-mix(in srgb, var(--ph2, #5c5a6c) 60%, transparent), transparent 60%),
  color-mix(in srgb, var(--foreground-color) 6%, transparent); }

.proj-mobile { width: 100%; height: 100%; overflow-y: auto; }
.proj-mobile main { padding: 20vw 1.5rem 12vh; display: flex; flex-direction: column; }
.proj-mobile article { display: flex; flex-direction: column; padding-bottom: 16vw; }
.proj-mobile .shot { position: relative; width: 100%; height: 65vw; border-radius: 1rem; overflow: hidden; }
.proj-mobile .shot img, .proj-mobile .shot .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-mobile h2 { font-family: var(--font-inter); font-size: 21px; margin: 5vw 0 .5rem; }
.proj-mobile p { font-family: var(--font-inter); font-size: 17px; }
.proj-mobile .op { opacity: .6; }
.proj-mobile .yr { margin-top: 1.25rem; }
.proj-mobile .yr p:first-child { margin-bottom: .25rem; }
.pill-btn {
  margin-top: 1.25rem; align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; padding: .25rem 1rem; border-radius: 9999px;
  background: color-mix(in srgb, var(--foreground-color) 8%, transparent);
  transition: transform .15s;
}
.pill-btn:active { transform: scale(.95); }

.pd-hero { position: relative; height: 35vh; min-height: 220px; overflow: hidden; }
.pd-hero .ph, .pd-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / .35), transparent 40%, var(--background-color)); }
.pd-brand {
  position: absolute; top: 2rem; left: 2.5rem; z-index: 31;
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-inter); font-size: 18px; color: var(--dark-foreground);
}
.pd {
  margin: 0 auto; width: 100%; max-width: 56rem; padding: 2.5rem 1.5rem 10rem;
  font-family: var(--font-sans);
}
@media (min-width: 1024px) { .pd { box-sizing: content-box; padding-top: 3.5rem; } }
.pd .back { font-size: 14px; color: var(--muted-color); transition: color .15s; outline: none; }
.pd .back:hover, .pd .back:focus-visible { color: var(--foreground-color); }
.pd h1 { margin-top: 2.5rem; font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.pd .sub { margin-top: .25rem; font-size: 16px; color: var(--muted-color); }
.pd .lead { margin-top: 2rem; font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.pd .hero-img { margin-top: 4rem; aspect-ratio: 16 / 9; width: 100%; border-radius: 6px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground-color) 8%, transparent); }
.pd .hero-img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd .sections { margin-top: 6rem; display: flex; flex-direction: column; }
.pd h2 { margin-bottom: .75rem; font-size: 16px; font-weight: 500; line-height: 1.6; }
.pd h2:not(:first-child) { margin-top: 4rem; }
.pd .sections p { font-size: 16px; line-height: 1.7; text-wrap: pretty; color: color-mix(in srgb, var(--foreground-color) 72%, transparent); }
.pd .sections p + p { margin-top: 1.25rem; }
.pd .fig { margin: 1.5rem 0; aspect-ratio: 16 / 9; width: 100%; border-radius: 6px; overflow: hidden; position: relative;
  border: 1px solid color-mix(in srgb, var(--foreground-color) 10%, transparent); }
.pd .fig > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ink-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--foreground-color) 35%, transparent); transition: text-decoration-color .15s; }
.ink-link:hover { text-decoration-color: var(--foreground-color); }

.gal { margin: 0 auto; display: flex; width: 100%; max-width: 1280px; flex-direction: column; gap: 3.5rem; padding: 7rem 1.5rem 6rem; }
@media (min-width: 1024px) { .gal { gap: 5rem; padding-left: 6vw; padding-right: 6vw; padding-top: 9rem; } }
.gal header { display: flex; flex-direction: column; gap: 1.5rem; font-family: var(--font-mono); }
@media (min-width: 1024px) { .gal header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.gal header .tag { font-size: 14px; text-transform: lowercase; line-height: 1.625; letter-spacing: .02em; opacity: .6; }
.gal header .intro { max-width: 32rem; font-family: var(--font-sans); font-size: 16px; line-height: 1.6; opacity: .8; text-wrap: pretty; margin-top: 1rem; }
.gal header .ext { align-self: flex-start; font-size: 14px; }
@media (min-width: 1024px) { .gal header .ext { align-self: flex-end; } }
.works { display: flex; flex-direction: column; row-gap: 4rem; }
@media (min-width: 1024px) { .works { flex-direction: row; align-items: flex-start; gap: 1rem; } }
.works .col { display: contents; }
@media (min-width: 1024px) { .works .col { display: flex; min-width: 0; flex-direction: column; gap: 1rem; } }
.work { position: relative; min-width: 0; }
.work > button { display: block; width: 100%; overflow: hidden; border-radius: 3px; outline: none; }
.work > button:focus-visible { box-shadow: 0 0 0 1px var(--foreground-color); }
.work img, .work .ph { width: 100%; height: auto; transition: transform .5s ease-out; }
.work:hover img, .work:hover .ph { transform: scale(1.02); }
.work figcaption {
  margin-top: .75rem; display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  font-family: var(--font-mono); font-size: 12px;
}
.work figcaption .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work figcaption .m { flex-shrink: 0; font-variant-numeric: tabular-nums; opacity: .4; }
@media (min-width: 1024px) {
  .work figcaption {
    pointer-events: none; position: absolute; bottom: .75rem; left: .75rem; margin-top: 0;
    max-width: calc(100% - 1.5rem); border-radius: 9999px; background: rgb(0 0 0 / .55);
    padding: .375rem .75rem; color: var(--dark-foreground); opacity: 0;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .3s;
  }
  .work:hover figcaption, .work:focus-within figcaption { opacity: 1; }
  .work figcaption .m { opacity: .6; }
}
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; background: color-mix(in srgb, var(--background-color) 94%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: auto; cursor: zoom-out; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-height: 100%; }
.lightbox img, .lightbox .ph { max-height: 82vh; max-width: 92vw; width: auto; border-radius: 3px; }
.lightbox figcaption { font-family: var(--font-mono); font-size: 12px; opacity: .6; }

.soon { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 0 1.5rem; font-family: var(--font-mono); }
.soon p { font-size: 14px; text-transform: lowercase; letter-spacing: .02em; opacity: .6; }
