/* Hodeus Studio — the name as a monument
   Ekranı dolduran topografik alan (soyut) içinden yükselen "hodeus" adı (somut). */

:root {
    --ground: #F6F8F6;
    --surface: #EBF0EC;
    --ink: #0A0F0C;
    --muted: #4F5D55;
    --accent: #1A7A43;
    --on-accent: #FFFFFF;
    --brand-dot: #1E8A4C;

    --green: #2ECC71;
    --on-green: #04140A;

    --inverse: #0A0D0B;
    --inverse-ink: #EEF3EF;
    --inverse-muted: #A3B0A8;

    --radius: 16px;
    --margin: clamp(20px, 2.4vw, 36px);
    --section-y: clamp(112px, 15vw, 208px);
    --nav-h: 76px;

    --step-small: 0.875rem;
    --step-body: 1.0625rem;
    --step-lead: clamp(1.25rem, 1.08rem + 0.6vw, 1.625rem);
    --step-head: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);

    --display: 'Unbounded', 'Onest', system-ui, sans-serif;
    --text: 'Onest', system-ui, sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
    --t-press: 140ms;
    --t-hover: 180ms;

    color-scheme: light;
}

[data-theme="dark"] {
    --ground: #0A0D0B;
    --surface: #151B17;
    --ink: #EEF3EF;
    --muted: #A3B0A8;
    --accent: #2ECC71;
    --on-accent: #04140A;
    --brand-dot: #2EB567;

    --inverse: #EEF3EF;
    --inverse-ink: #0A0D0B;
    --inverse-muted: #4F5D55;
    color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Kök koyu: sayfa sonundaki esneme altbilgiyle aynı renkte kalır. Gövde açık zemindir. */
html { scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--inverse); }

body {
    font-family: var(--text);
    font-size: var(--step-body);
    line-height: 1.55;
    background: var(--ground);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "kern" 1;
    user-select: none;
    scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent) var(--ground);
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; pointer-events: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

::selection { background: var(--green); color: var(--on-green); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
    position: fixed; left: 16px; top: 16px; z-index: 300;
    padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--ground);
    text-decoration: none; font-weight: 600; transform: translateY(-160%);
    transition: transform var(--t-hover) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* Tema geçişi: yeni tema tıklanan noktadan daire olarak açılır (main.js) */
html.vt-theme::view-transition-old(root),
html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- hod/eus daire logosu ---------- */
/* Daire yazı rengini, harfler bulunduğu zeminin rengini alır: açık temada siyah daire,
   koyu temada açık daire; yeşil kartta harfler yeşil kalır (--mark-cut) */
.h-mark {
    position: relative; display: block; aspect-ratio: 1;
    border-radius: 50%; background: currentColor;
}
.h-mark::after {
    content: ""; position: absolute; inset: 0;
    background: var(--mark-cut, var(--ground));
    -webkit-mask: url("images/hodeuslogo/hodeus-iki-satir-harfler.svg") center / contain no-repeat;
    mask: url("images/hodeuslogo/hodeus-iki-satir-harfler.svg") center / contain no-repeat;
}

/* Büyük, canlı logo: her şerit kendi şekline kırpılmış kalın bir kalem darbesiyle çizilir.
   S'nin iki spirali birbirini kovalar, kemerler ve çubuklar onlara katılır; logo durur, şeritler
   geldikleri yönde çekilir. Hareket azaltılmışsa logo tam ve hareketsiz kalır. */
.hlogo { display: block; width: 100%; height: auto; overflow: visible; }
.hs { fill: none; stroke: currentColor; stroke-width: 38; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; }
@media (prefers-reduced-motion: no-preference) {
    .hs { animation: hdraw 7s infinite backwards; }
    .hs-1a { animation-delay: 0.3s; }
    .hs-1b { animation-delay: 0.48s; }
    .hs-0 { animation-delay: 0.8s; }
    .hs-3 { animation-delay: 0.92s; }
    .hs-2 { animation-name: hdraw-short; animation-delay: 1.8s; }
    .hs-4 { animation-name: hdraw-short; animation-delay: 1.92s; }
    .hlogo.is-paused .hs { animation-play-state: paused; }
}
@keyframes hdraw {
    0% { stroke-dashoffset: 1.05; animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
    24% { stroke-dashoffset: 0; animation-timing-function: linear; }
    70% { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.55); }
    88%, 100% { stroke-dashoffset: -1.05; }
}
@keyframes hdraw-short {
    0% { stroke-dashoffset: 1.05; animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
    10% { stroke-dashoffset: 0; animation-timing-function: linear; }
    66% { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.55); }
    76%, 100% { stroke-dashoffset: -1.05; }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 0 calc(var(--margin) + 14px);
    color: var(--ink);
    transition: background-color 240ms ease, transform 360ms var(--ease-out);
}
.nav.is-solid { background: var(--ground); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 0.9375rem; letter-spacing: -0.02em; }
/* Yazılı logo ters dönmez: üzerine gelince mühür gibi hafifçe yatar, basınca içeri çöker */
.nav-logo .h-mark { width: 34px; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-logo:hover .h-mark { transform: rotate(-12deg); } }
.nav-logo:active .h-mark { transform: scale(0.92); transition-duration: var(--t-press); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
    position: relative; display: block; padding: 8px 0;
    font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--muted);
    transition: color var(--t-hover) ease;
}
.nav-links a::after {
    content: ""; position: absolute; left: 50%; bottom: -1px; width: 5px; height: 5px; margin-left: -2.5px;
    border-radius: 50%; background: var(--accent);
    opacity: 0; transform: scale(0.4); transition: transform 280ms var(--ease-out), opacity 200ms ease;
}
.nav-links a.active-nav { color: var(--ink); }
.nav-links a.active-nav::after { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.chip {
    height: 40px; min-width: 40px; padding: 0 14px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); color: var(--ink);
    font-size: var(--step-small); font-weight: 600; letter-spacing: 0.02em;
    transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.chip:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: color-mix(in srgb, var(--surface) 80%, var(--ink) 12%); } }
.chip-icon { width: 40px; padding: 0; }
.chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 420ms var(--ease-out); }
.theme-toggle:active svg { transform: rotate(-30deg); }
.chip .i-sun { display: none; }
[data-theme="dark"] .chip .i-sun { display: block; }
[data-theme="dark"] .chip .i-moon { display: none; }

.hamburger { display: none; width: 44px; height: 44px; position: relative; border-radius: 999px; }
.hamburger span {
    position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 280ms var(--ease-out);
}
.hamburger span:first-child { top: 18px; }
.hamburger span:last-child { top: 24px; }
.hamburger.open span:first-child { transform: translateY(3px) rotate(45deg); }
.hamburger.open span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav {
    position: fixed; inset: 0; z-index: 90;
    background: var(--ground);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
    padding: 110px 28px 48px;
    text-align: center;
    opacity: 0; visibility: hidden;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
}
.mobile-nav.open { opacity: 1; visibility: visible; transition: opacity 200ms ease, visibility 0s; }
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mobile-nav-links a {
    font-family: var(--display); font-size: 1.625rem; font-weight: 500; letter-spacing: -0.03em;
    text-decoration: none; color: var(--ink); padding: 4px 0;
}
.mobile-nav-links a.active-nav { color: var(--accent); }
.mobile-nav-toggles { display: flex; justify-content: center; gap: 10px; }

/* ---------- Buttons & links ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 26px; border-radius: 999px;
    background: var(--ink); color: var(--ground);
    font-size: var(--step-body); font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 260ms var(--ease-out); }
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
    .button:hover { background: var(--accent); color: var(--on-accent); }
    .button:hover svg { transform: translate(2px, -2px); }
}

.text-link {
    font-weight: 600; color: var(--ink); text-decoration: underline;
    text-decoration-thickness: 1.5px; text-underline-offset: 0.3em;
    text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent);
    transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .text-link:hover { color: var(--accent); text-decoration-color: currentColor; } }

/* ---------- Hero: ekranı dolduran alan ---------- */
.hero {
    position: relative; z-index: 1;
    background: var(--ground);
    min-height: 100svh;
    display: grid; grid-template-rows: 1fr auto;
    padding: var(--nav-h) var(--margin) clamp(20px, 3vw, 36px);
    overflow: hidden;
    isolation: isolate;
}
/* Soyut alan sayfayı doldurur ve alta doğru zemine yumuşakça karışır; kutu ya da keskin kesim yok */
.hero-field {
    position: absolute; inset: 0; z-index: -1;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, 0.35) 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, 0.35) 80%, transparent 100%);
}
.hero-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-main {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
    align-items: center;
    padding: clamp(24px, 4vh, 56px) 0;
}
.hero-logo { grid-column: 2 / span 4; justify-self: center; width: clamp(180px, 23vw, 340px); color: var(--ink); position: relative; }
.field-hint {
    position: absolute; left: 50%; top: calc(100% + 28px); transform: translateX(-50%);
    white-space: nowrap; font-size: var(--step-small); color: var(--muted);
    pointer-events: none; transition: opacity 400ms ease;
}
.hero.is-touched .field-hint { opacity: 0; }
@media (hover: none) { .field-hint { display: none; } }
.hero-copy { grid-column: 8 / span 4; max-width: 27ch; }
.hero-sentence { font-size: var(--step-lead); line-height: 1.35; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Ana sayfa: tek marka anı alttaki isimdir; cümle onun sol hizasında, alan arada nefes alır */
.hero-home .hero-main { align-items: end; }
.hero-home .hero-copy { grid-column: 1 / span 9; max-width: none; padding-left: 0.04em; }
.hero-home .hero-sentence { max-width: 23ch; font-size: clamp(1.75rem, 0.9rem + 2.2vw, 3rem); line-height: 1.16; letter-spacing: -0.03em; font-weight: 500; margin-bottom: clamp(28px, 3vw, 40px); }
.hero-home .field-hint { position: static; transform: none; grid-column: 9 / span 4; justify-self: end; align-self: end; padding-bottom: 14px; }

/* "hodeus studio" yazı logosu: renk yazı renginden gelir, logo dosyası yalnızca şekli verir */
.monument {
    position: relative; justify-self: center;
    width: 90vw; overflow: hidden;
    color: var(--ink); pointer-events: none;
    transform-origin: 50% 100%;
}
.monument .mark {
    display: block; aspect-ratio: 1657.12 / 419.64;
    background: currentColor;
    -webkit-mask: url("images/hodeuslogo/hodeus-studio-yazi.svg") center / contain no-repeat;
    mask: url("images/hodeuslogo/hodeus-studio-yazi.svg") center / contain no-repeat;
}
.ch { display: inline-block; }

/* ---------- Sections ---------- */
main {
    position: relative; z-index: 1;
    background: var(--ground);
    border-radius: 0 0 var(--radius) var(--radius);
    padding-bottom: clamp(24px, 3vw, 40px);
}
.section { padding: var(--section-y) var(--margin); }
.section-head { font-size: var(--step-head); margin-bottom: clamp(48px, 7vw, 96px); }

/* Projeler: uygulama mağazası düzeni, ikonlar kendi doğal hâliyle */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 96px); }
.app { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(20px, 2.4vw, 32px); align-items: start; }
.app-icon-link { display: block; border-radius: 22.5%; transition: transform 420ms var(--ease-out); }
.app-icon {
    width: clamp(88px, 8vw, 116px); height: auto; aspect-ratio: 1; border-radius: 22.5%; object-fit: cover;
    outline: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); outline-offset: -1px;
}
.app-icon-link:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .app-icon-link:hover { transform: translateY(-4px); } }
.app-name { font-size: var(--step-head); margin-bottom: 6px; }
.app-cat { font-size: var(--step-small); color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.app-desc { max-width: 46ch; margin-bottom: 24px; }
.app-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.apps-note {
    margin-top: clamp(56px, 7vw, 96px);
    display: flex; align-items: baseline; gap: 10px 24px; flex-wrap: wrap;
    font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.02em;
}
.apps-note .text-link { font-family: var(--text); font-size: var(--step-body); letter-spacing: 0; }

/* Hakkımızda: başlığın hizasında metin */
.about-text { font-size: clamp(1.25rem, 1rem + 0.85vw, 1.875rem); line-height: 1.42; max-width: 44ch; letter-spacing: -0.01em; }

/* Kurucu: küçük ve net profil, gerçek yazı tipiyle portföy bağlantısı */
.founder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.founder-id { grid-column: 1 / span 5; display: flex; align-items: center; gap: 24px; }
.founder-avatar {
    width: clamp(96px, 9vw, 128px); height: auto; aspect-ratio: 1; flex: none;
    border-radius: 50%; object-fit: cover; object-position: 46% 42%;
    background: var(--surface);
}
.founder-name { font-size: var(--step-head); margin-bottom: 6px; }
.founder-role { color: var(--muted); font-weight: 500; }
.founder-links { grid-column: 7 / span 6; }
.portfolio {
    display: flex; flex-direction: column; gap: 12px;
    padding: 24px 28px; border-radius: var(--radius);
    background: var(--surface); text-decoration: none;
    transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.portfolio:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .portfolio:hover { background: color-mix(in srgb, var(--surface) 85%, var(--ink) 8%); } }
.portfolio-text { color: var(--muted); font-size: var(--step-small); }
.portfolio-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.portfolio-mark {
    font-family: 'Outfit', var(--text); font-weight: 800; letter-spacing: -0.5px; line-height: 1;
    font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); color: var(--ink); white-space: nowrap;
}
.portfolio-mark .dot { color: var(--brand-dot); }
.portfolio-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--step-small); }
.portfolio-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .portfolio:hover .portfolio-go svg { transform: translateX(4px); } }
.founder-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 24px; }
.founder-social a { display: flex; flex-direction: column; text-decoration: none; padding: 4px 0; }
.founder-social .kind { font-size: var(--step-small); color: var(--muted); }
.founder-social .value { font-weight: 600; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .founder-social a:hover .value { color: var(--accent); } }

/* SSS: büyük sorular, yanında yanıtlar */
.faq-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.faq-row + .faq-row { margin-top: clamp(56px, 6vw, 88px); }
.faq-q { grid-column: 1 / span 6; font-size: var(--step-head); }
.faq-head { color: var(--muted); }
.faq-a { grid-column: 8 / span 5; font-size: var(--step-body); line-height: 1.6; max-width: 42ch; padding-top: 0.35em; }

/* Alıntılar */
.quotes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 64px; align-items: end; }
.quote:first-child { grid-column: 1 / span 6; }
.quote--verse { grid-column: 8 / span 5; }
.quote blockquote { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.quote:first-child blockquote { font-size: var(--step-head); line-height: 1.15; }
.quote--verse blockquote { font-family: var(--text); font-size: var(--step-lead); line-height: 1.45; letter-spacing: -0.005em; }
.quote figcaption { margin-top: 22px; font-size: var(--step-small); font-weight: 600; color: var(--accent); }
/* Her alıntı kendi sütununda ortalı durur: üstte soluk çizim/Arapça asıl, altında söz ve kaynak */
.quote { justify-self: start; width: fit-content; text-align: center; }
.quote blockquote { margin-left: auto; margin-right: auto; }
.quote:first-child blockquote { max-width: 22ch; }
.quote--verse blockquote { max-width: 34ch; }
/* Fatih çizimi: tema rengiyle boyanan ince çizgi, alt kenarı alıntıya doğru erir */
.quote-portrait {
    display: block; width: clamp(200px, 21vw, 300px); margin: 0 auto 8px;
    opacity: 0.34; pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
}
.quote-portrait > span {
    display: block; aspect-ratio: 836 / 1088; background: currentColor;
    -webkit-mask: url("images/fatih-cizim.svg") center / contain no-repeat;
    mask: url("images/fatih-cizim.svg") center / contain no-repeat;
}
.js .quote-portrait[data-reveal].is-in { opacity: 0.34; }
/* Ayetin Arapça aslı: çizimle aynı soluklukta, mealin üstünde */
.quote-arabic {
    font-family: 'Amiri Quran', serif; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); line-height: 2.2;
    opacity: 0.34; text-wrap: balance; margin: 0 auto 28px; max-width: 34ch;
}

/* İletişim: e-posta görüntü yazısı olarak, yeşil alan */
.contact {
    position: relative;
    min-height: 88svh;
    display: grid; grid-template-rows: auto 1fr auto;
    padding: clamp(40px, 5vw, 64px) var(--margin) clamp(32px, 4vw, 48px);
    background: var(--green); color: var(--on-green);
    margin: 0 var(--margin);
    border-radius: var(--radius);
    overflow: hidden;
}
.contact .h-mark.contact-mark { position: absolute; right: var(--margin); top: clamp(40px, 5vw, 64px); width: clamp(48px, 4.4vw, 64px); color: var(--on-green); --mark-cut: var(--green); }
.contact-sentence { font-size: var(--step-lead); line-height: 1.35; max-width: 26ch; font-weight: 500; letter-spacing: -0.01em; }
.contact-email {
    align-self: end; display: block; width: fit-content; margin: 40px 0 clamp(40px, 6vw, 80px);
    font-family: var(--display); font-weight: 500; letter-spacing: -0.05em; line-height: 0.95;
    font-size: 6.4vw; text-decoration: none; color: var(--on-green);
    white-space: nowrap;
}
.contact-email > span { display: inline-block; transition: transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .contact-email:hover > span { transform: translateY(-5%); }
    .contact-email:hover > span + span { transition-delay: 40ms; }
}
.contact-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.contact-foot ul { list-style: none; display: flex; gap: 8px 32px; flex-wrap: wrap; }
.contact-foot a { text-decoration: none; display: flex; flex-direction: column; padding: 4px 0; }
.contact-foot .kind { font-size: var(--step-small); }
.contact-foot .value { font-weight: 600; -webkit-user-select: text; user-select: text; }
.contact-foot a .value { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.28em; text-decoration-color: rgba(4, 20, 10, 0.35); transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .contact-foot a:hover .value { text-decoration-color: currentColor; } }
.wa { display: flex; align-items: flex-end; gap: 14px; }
.copy-btn {
    height: 40px; padding: 0 16px; border-radius: 999px; background: var(--on-green); color: var(--green);
    font-size: var(--step-small); font-weight: 600;
    transition: transform var(--t-press) var(--ease-out), opacity var(--t-hover) ease, background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.copy-btn:active { transform: scale(0.95); }
.copy-btn.is-done { background: #FFFFFF; color: var(--on-green); }
@media (hover: hover) and (pointer: fine) { .copy-btn:hover { opacity: 0.88; } }

/* ---------- Altbilgi (ters renk, isim tam genişlik; sayfanın altından açılır) ---------- */
.footer {
    position: sticky; bottom: 0; z-index: 0;
    min-height: min(100svh, 760px);
    display: grid; grid-template-rows: auto 1fr auto auto;
    padding: 48px var(--margin) 24px;
    background: var(--inverse); color: var(--inverse-ink);
    overflow: hidden;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-col { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col li:first-child { font-weight: 600; margin-bottom: 4px; }
.footer-col a, .footer-col button { color: var(--inverse-muted); text-decoration: none; text-align: left; font-size: inherit; padding: 2px 0; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover, .footer-col button:hover { color: var(--inverse-ink); } }
.footer-word {
    font-family: var(--display); font-weight: 500; text-transform: lowercase;
    font-size: 24vw; line-height: 0.78; letter-spacing: -0.065em;
    white-space: nowrap; margin-left: -0.04em;
    align-self: end;
}
.footer-word > span { display: inline-block; overflow: hidden; padding: 0.14em 0.06em 0.04em 0.02em; margin: -0.14em -0.06em -0.04em -0.02em; vertical-align: bottom; }
.footer-legal { margin-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--step-small); color: var(--inverse-muted); }
.footer-legal button { color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 0.25em; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .footer-legal button:hover { color: var(--inverse-ink); } }

/* ---------- Ürün sayfaları ---------- */
.product-hero { min-height: 88svh; grid-template-rows: 1fr; }
.product-icon {
    width: clamp(150px, 15vw, 220px); height: auto; aspect-ratio: 1; border-radius: 22.5%; object-fit: cover;
    outline: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); outline-offset: -1px;
}
.product-hero .hero-logo { width: auto; }
.product-hero .hero-copy { grid-column: 7 / span 5; max-width: 46ch; }
.product-name { font-size: clamp(2.25rem, 1.2rem + 3vw, 4rem); letter-spacing: -0.045em; line-height: 1; margin-bottom: 22px; }
.product-desc { line-height: 1.6; max-width: 44ch; margin-bottom: 32px; }
.hero-note { max-width: 44ch; margin-top: 22px; font-size: var(--step-small); line-height: 1.55; color: var(--muted); }
.other .app { max-width: 760px; }

/* Ekran görüntüleri: Play Store görselleri sayfa kenarına taşan yatay bir şeritte */
html:not(.js) .shots { display: none; }
.shots { padding-bottom: 0; }
.shots-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 4.4vw, 64px); }
.shots-head .section-head { margin-bottom: 0; }
.shots-nav { display: flex; gap: 8px; flex: none; }
.shots-nav .chip svg { stroke-width: 2; }
.shots-nav [aria-disabled="true"] { opacity: 0.32; pointer-events: none; }
.shots.is-static .shots-nav { visibility: hidden; }
.shots-rail {
    position: relative; list-style: none;
    display: flex; gap: clamp(14px, 1.5vw, 24px);
    margin: 0 calc(var(--margin) * -1);
    padding: 10px var(--margin) 24px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin);
    scrollbar-width: none;
}
.shots-rail::-webkit-scrollbar { display: none; }
.shots-rail li { flex: none; width: clamp(200px, 19vw, 288px); scroll-snap-align: start; }
.shot {
    display: block; width: 100%; border-radius: var(--radius); cursor: zoom-in;
    transition: transform 420ms var(--ease-out);
}
.shot img {
    width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); object-fit: cover;
    background: #111412;
    outline: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); outline-offset: -1px;
}
.shot:focus-visible { border-radius: var(--radius); }
.shot:active { transform: scale(0.97); transition-duration: var(--t-press); }
@media (hover: hover) and (pointer: fine) { .shot:hover { transform: translateY(-6px); } }

/* Büyütülmüş görünüm: görsel şeritteki yerinden büyüyerek açılır, kapanınca yerine döner (main.js) */
.lb {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0; background: transparent; color: #EEF3EF;
    overflow: hidden; touch-action: none;
    --accent: #2ECC71;
}
.lb[open] { display: block; }
.lb::backdrop { background: transparent; }
.lb-bg { position: absolute; inset: 0; background: rgba(6, 9, 7, 0.94); }
.lb-stage {
    position: absolute; inset: 0;
    display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
    padding: 72px 16px calc(88px + env(safe-area-inset-bottom));
    cursor: zoom-out;
}
.lb-img {
    height: min(100%, calc((100vw - 32px) * 16 / 9)); width: auto; max-width: none;
    aspect-ratio: 9 / 16; border-radius: 20px; background: #111412;
    transform-origin: 50% 50%;
}
.lb-top, .lb-bar { position: absolute; left: 0; right: 0; display: flex; align-items: center; pointer-events: none; }
.lb-top { top: 0; justify-content: flex-end; padding: 14px; }
.lb-bar { bottom: 0; justify-content: center; gap: 18px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.lb-btn {
    pointer-events: auto;
    width: 48px; height: 48px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(238, 243, 239, 0.1); color: #EEF3EF;
    transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out), opacity var(--t-hover) ease;
}
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:active { transform: scale(0.92); }
.lb-btn[aria-disabled="true"] { opacity: 0.3; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgba(238, 243, 239, 0.18); } }
.lb-count { min-width: 4.5ch; text-align: center; font-size: var(--step-small); font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: #A3B0A8; }

/* ---------- Gizlilik sayfası ---------- */
.doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: calc(var(--nav-h) + clamp(64px, 9vw, 128px)) var(--margin) var(--section-y); }
.doc-head { grid-column: 1 / -1; margin-bottom: clamp(56px, 7vw, 104px); }
.doc-title { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem); letter-spacing: -0.05em; line-height: 0.95; }
.doc-updated { margin-top: 24px; color: var(--muted); }
.doc-toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.doc-toc a { position: relative; display: block; padding: 6px 0 6px 16px; font-size: var(--step-small); color: var(--muted); text-decoration: none; transition: color var(--t-hover) ease; }
.doc-toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(0.4); transition: transform 260ms var(--ease-out), opacity 200ms ease; }
.doc-toc a.is-current { color: var(--ink); font-weight: 600; }
.doc-toc a.is-current::before { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .doc-toc a:hover { color: var(--ink); } }
.doc-body { grid-column: 5 / span 7; max-width: 68ch; line-height: 1.7; }
.doc-body h3 { font-size: 1.375rem; letter-spacing: -0.025em; margin: 56px 0 16px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc-body h3:first-of-type { margin-top: 40px; }
.doc-body p, .doc-body ul { margin-bottom: 16px; }
.doc-body ul { padding-left: 1.2em; }
.doc-body li { margin-bottom: 6px; }
.doc-body li::marker { color: var(--accent); }
.doc-body a { color: var(--accent); font-weight: 600; }
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- Hareket (JS yoksa ya da hareket azaltılmışsa içerik görünür kalır) ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* Açılış */
    .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 520ms); }
    .js .monument .mark { transform: translateY(105%); animation: letter-up 1200ms var(--ease-out) 420ms forwards; }
    .js .hero-field { opacity: 0; animation: fade-in 1600ms ease 100ms forwards; }
    .js .nav { opacity: 0; animation: fade-in 700ms ease 200ms forwards; }

    /* Bölüm girişleri: bir kez, okuma sırasıyla */
    .js [data-reveal] {
        opacity: 0; transform: translateY(26px);
        transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
        transition-delay: calc(var(--i, 0) * 80ms);
    }
    .js [data-reveal].is-in { opacity: 1; transform: none; }

    /* Ekran görüntüsü şeridi kendisi sabit kalır, kartlar sırayla yükselir */
    .js .shots-rail[data-reveal] { opacity: 1; transform: none; }
    .js .shots-rail[data-reveal] > li {
        opacity: 0; transform: translateY(26px);
        transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
        transition-delay: calc(var(--i, 0) * 70ms);
    }
    .js .shots-rail.is-in > li { opacity: 1; transform: none; }

    /* Başlıklar kendi taban çizgilerinin arkasından yükselir */
    .js .section-head[data-reveal] {
        opacity: 1; transform: translateY(100%);
        clip-path: inset(-20% -4% 100% -4%);
        transition: transform 1000ms var(--ease-out), clip-path 1000ms var(--ease-out);
    }
    .js .section-head[data-reveal].is-in { transform: none; clip-path: inset(-20% -4% -20% -4%); }

    /* Altbilgideki isim harf harf yükselir */
    .js .footer-word .ch { transform: translateY(105%); transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
    .js .footer-word.is-in .ch { transform: none; }

    /* Mobil menü: menü düğmesinden daire olarak açılır */
    .mobile-nav {
        opacity: 1;
        clip-path: circle(0px at calc(100% - 38px) 32px);
        transition: clip-path 520ms var(--ease-in-out), visibility 0s linear 520ms;
    }
    .mobile-nav.open { clip-path: circle(150vmax at calc(100% - 38px) 32px); transition: clip-path 640ms var(--ease-in-out), visibility 0s; }
    .mobile-nav-links a, .mobile-nav-toggles { opacity: 0; transform: translateY(16px); transition: opacity 300ms ease, transform 300ms var(--ease-out); }
    .mobile-nav.open .mobile-nav-links a, .mobile-nav.open .mobile-nav-toggles { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
    .mobile-nav.open .mobile-nav-links a:nth-child(1) { transition-delay: 150ms; }
    .mobile-nav.open .mobile-nav-links a:nth-child(2) { transition-delay: 190ms; }
    .mobile-nav.open .mobile-nav-links a:nth-child(3) { transition-delay: 230ms; }
    .mobile-nav.open .mobile-nav-links a:nth-child(4) { transition-delay: 270ms; }
    .mobile-nav.open .mobile-nav-links a:nth-child(5) { transition-delay: 310ms; }
    .mobile-nav.open .mobile-nav-links a:nth-child(6) { transition-delay: 350ms; }
    .mobile-nav.open .mobile-nav-links a:nth-child(7) { transition-delay: 390ms; }
    .mobile-nav.open .mobile-nav-toggles { transition-delay: 430ms; }
}

/* Kaydırmaya bağlı hareketler: yalnızca CSS, ana iş parçacığını yormaz */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .monument { animation: monument-sink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
        .hero-field canvas { animation: field-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
        .hero-logo { animation: logo-lift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
        .footer-word { animation: word-grow linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; transform-origin: 0 100%; }
        .js .lit { view-timeline-name: --lit; view-timeline-axis: block; }
        .js .lit .w {
            animation: lit linear both;
            animation-timeline: --lit;
            animation-range: cover calc(6% + var(--p, 0) * 0.32%) cover calc(16% + var(--p, 0) * 0.32%);
        }
        .read-progress { animation: progress linear both; animation-timeline: scroll(root block); }
    }
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes letter-up { to { transform: none; } }
@keyframes monument-sink { to { transform: scale(0.94); } }
@keyframes field-drift { to { transform: translateY(12%) scale(1.06); } }
@keyframes logo-lift { to { transform: translateY(-14%); } }
@keyframes word-grow { from { transform: scale(0.94); } to { transform: none; } }
@keyframes lit { from { opacity: 0.18; } to { opacity: 1; } }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1100px) {
    .nav-links { gap: 20px; }
    .hero-logo { grid-column: 1 / span 5; }
    .hero-copy { grid-column: 7 / span 6; }
}

@media (max-width: 900px) {
    :root { --nav-h: 64px; --margin: 20px; --section-y: 96px; }

    .nav { padding: 0 calc(var(--margin) - 4px) 0 calc(var(--margin) + 2px); }
    .nav-links, .nav-actions .chip { display: none; }
    .hamburger { display: block; }
    .chip { height: 44px; min-width: 44px; }
    .chip-icon { width: 44px; }

    /* Mobil açılış: her şey ortada ve simetrik */
    .hero {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 28px; min-height: 100svh; text-align: center;
        padding: calc(var(--nav-h) + 24px) var(--margin) 48px;
    }
    .hero-main { display: contents; }
    .hero-logo { order: 1; width: min(46vw, 220px); }
    .monument { order: 2; width: 86vw; }
    .hero-copy { order: 3; max-width: 30ch; }
    .hero-sentence { font-size: 1.1875rem; margin-bottom: 26px; }
    .hero-actions { justify-content: center; }
    .hero-home { justify-content: space-between; gap: 48px; padding-top: calc(var(--nav-h) + 56px); }
    .hero-home .hero-copy { order: 1; padding-left: 0; }
    .hero-home .hero-sentence { max-width: 16ch; margin-left: auto; margin-right: auto; font-size: clamp(1.625rem, 6.4vw, 2.25rem); margin-bottom: 28px; }
    .hero-home .field-hint { display: none; }

    /* Mobilde tüm bölümler ortada: başlıklar, bloklar ve kısa metinler simetrik */
    .section-head { margin-bottom: 48px; text-align: center; }
    .about-text { margin-left: auto; margin-right: auto; text-align: center; }
    .faq-row { text-align: center; }
    .faq-a { margin-left: auto; margin-right: auto; }
    .quote { text-align: center; }
    .quote blockquote { margin-left: auto; margin-right: auto; }
    .contact { text-align: center; justify-items: center; }
    .contact-sentence { margin-left: auto; margin-right: auto; }
    .contact-email { margin-left: auto; margin-right: auto; }
    .contact .h-mark.contact-mark { position: relative; top: auto; right: auto; margin: 0 auto 24px; }
    .contact-foot { align-items: center; }
    .contact-foot ul { justify-content: center; }
    .contact-foot a { align-items: center; }
    .wa { flex-direction: column; align-items: center; gap: 10px; }
    .footer-cols { text-align: left; }

    .apps { grid-template-columns: 1fr; gap: 72px; }
    .app { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .app-icon-link { margin-bottom: 22px; }
    .app-icon { width: 104px; }
    .app-desc { margin-left: auto; margin-right: auto; }
    .app-actions { justify-content: center; }
    .apps-note { justify-content: center; text-align: center; }

    .about-text { font-size: 1.1875rem; }

    .founder { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 36px; }
    .founder-id { flex-direction: column; gap: 18px; }
    .founder-avatar { width: 112px; }
    .founder-links { width: 100%; }
    .portfolio { align-items: center; text-align: center; }
    .portfolio-row { flex-direction: column; justify-content: center; gap: 12px; }
    .founder-social { justify-content: center; }
    .founder-social a { align-items: center; }

    .faq-row { display: block; }
    .faq-q { font-size: 1.375rem; }
    .faq-a { margin-top: 12px; }

    .quotes { display: block; }
    .quote { width: auto; }
    .quote-portrait { width: min(58vw, 230px); margin-bottom: 4px; }
    .quote-arabic { font-size: 1.375rem; margin-bottom: 20px; }
    .quote:first-child blockquote { font-size: 1.5rem; }
    .quote + .quote { margin-top: 64px; }

    .contact { margin: 0 12px; min-height: 86svh; }
    .contact-email { font-size: 11.4vw; white-space: normal; }
    .contact-email > span { display: block; }
    .contact-foot { flex-direction: column; }
    .copy-btn { height: 44px; }

    .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }

    .product-hero { min-height: 100svh; }
    .product-icon { width: 132px; }
    .product-hero .hero-copy { max-width: 36ch; }
    .product-desc, .hero-note { margin-left: auto; margin-right: auto; }

    .shots-head { justify-content: center; }
    .shots-nav { display: none; }
    .shots-rail li { width: min(64vw, 280px); }

    .doc { display: block; }
    .doc-toc { display: none; }
}
