/* yavuzselimtech.tr — singularity home. Fonts are self-hosted (OFL, see fonts/LICENSE.txt). */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; font-weight: 400;
    src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; font-weight: 400;
    src: url("../fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-display: swap; font-weight: 400;
    src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-display: swap; font-weight: 400;
    src: url("../fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ----------
 * The interface takes its colour from the disk's light (gold) and the starlight (warm white).
 * Two families: Instrument Serif for the name and headings, Inter for everything else.
 */
:root {
    color-scheme: dark;
    --space: #030507;
    --ink: #ede9e2;
    --muted: rgba(237, 233, 226, .72);
    --faint: rgba(237, 233, 226, .54);
    --line: rgba(237, 233, 226, .14);
    --line-strong: rgba(237, 233, 226, .3);
    --accent: #ebc388;
    --accent-strong: #f6dcb2;
    --accent-soft: rgba(235, 195, 136, .12);
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --gutter: clamp(16px, 5vw, 72px);
    --shadow-text: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 24px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--space); color: var(--ink); }
body { font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 400; padding: .7rem 1rem; background: var(--accent); color: var(--space); border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: .5rem; }

/* ---------- Canvas ---------- */
#singularity { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; opacity: 0; transition: opacity .45s ease-out; }
.has-webgl #singularity { opacity: 1; }
.no-webgl #singularity { display: none; }
.singularity-poster {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    transition: visibility 0s .45s;
}
.singularity-poster img { width: 100%; height: 100%; object-fit: cover; }
.has-webgl .singularity-poster { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
    #singularity, .singularity-poster { transition: none; }
}

/* ---------- Top bar ---------- */
.site-topbar { position: fixed; inset: 0 0 auto; z-index: 20; padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.site-brand { display: flex; align-items: baseline; text-decoration: none; }
.site-brand__monogram { font: 400 1.7rem/1 var(--serif); letter-spacing: -.01em; }
.brand-dot { color: var(--accent); }
.lang-switcher { position: relative; }
.lang-btn { display: flex; align-items: center; gap: .4rem; min-height: 38px; padding: .35rem .75rem; font: 500 .8rem var(--sans); cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(3, 5, 7, .4); }
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn__chevron { transition: transform .2s; }
.lang-switcher[open] .lang-btn__chevron { transform: rotate(180deg); }
.lang-dropdown { position: absolute; right: 0; top: 100%; min-width: 180px; padding: .35rem; margin: .5rem 0 0; background: rgba(12, 14, 18, .96); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.lang-option { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; text-decoration: none; font-size: .9rem; border-radius: 8px; }
.lang-option--active { background: var(--accent-soft); color: var(--accent); }
.lang-option__code { font-size: .75rem; font-weight: 600; color: var(--faint); }
.lang-option--active .lang-option__code { color: var(--accent); }
.lang-option__check { margin-left: auto; }

/* ---------- Pages ---------- */
.orbit { position: relative; z-index: 2; }
.orbit-page { padding: 120px var(--gutter) 80px; }
.page-inner { width: min(460px, 100%); }
.page-inner--wide { width: min(560px, 100%); }

.orbit-ready { touch-action: pinch-zoom; }
.orbit-ready body { overflow: hidden; overscroll-behavior: none; touch-action: pinch-zoom; height: 100%; -webkit-user-select: none; user-select: none; }
.orbit-ready .orbit { position: fixed; inset: 0; pointer-events: none; }
.orbit-ready .orbit-page {
    position: absolute; inset: 0; display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    padding: 96px var(--gutter) 110px;
}
.orbit-ready .orbit-page.is-live .page-inner { pointer-events: auto; }
.orbit-ready .page-inner { max-height: 100%; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.orbit-ready.orbit-scrollable .orbit-page.is-live .page-inner { overflow-y: auto; overflow-x: hidden; touch-action: pan-y pinch-zoom; }
.orbit-dragging, .orbit-dragging * { cursor: grabbing !important; }

/* Type scale (≈ 1.25 steps): 0.8125 / 1 / 1.25 / 1.6 / clamp headings */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; text-shadow: var(--shadow-text); }
h1 { font-size: clamp(2.6rem, 4.4vw, 4.25rem); line-height: 1.06; text-wrap: balance; }
h1 .h-line { display: block; white-space: nowrap; }
h1 .h-pre { font-size: .42em; color: var(--muted); letter-spacing: 0; vertical-align: .62em; margin-right: .08em; }
h2 { font-size: clamp(2.2rem, 3.6vw, 3.25rem); line-height: 1; text-wrap: balance; }
.role { margin-top: 1.1rem; font-size: 1.15rem; font-weight: 500; letter-spacing: -.005em; color: var(--accent); text-shadow: var(--shadow-text); }
.tagline { margin-top: .5rem; font-size: 1rem; color: var(--muted); text-wrap: balance; text-shadow: var(--shadow-text); }

.hero-portrait { display: block; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin-bottom: 1.6rem; box-shadow: 0 0 0 1px rgba(235, 195, 136, .55), 0 0 0 6px rgba(235, 195, 136, .07), 0 10px 40px rgba(0, 0, 0, .6); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* A real sequence, so it keeps its numbers. */
.steps { margin-top: 2.2rem; display: grid; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 2.2rem 1fr; align-items: baseline; padding: .55rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num { font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); }
.steps .step { font: 400 1.6rem/1.2 var(--serif); text-shadow: var(--shadow-text); }

.lists { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.list-group h3 { margin-bottom: .6rem; font-size: .8125rem; font-weight: 600; color: var(--accent); }
.plain li { padding: .4rem 0; font-size: 1rem; line-height: 1.35; border-top: 1px solid var(--line); text-shadow: var(--shadow-text); }
.plain--quiet li { color: var(--muted); }
.text-link { display: inline-block; margin-top: .9rem; font-size: .875rem; color: var(--accent); text-decoration: underline; text-decoration-color: rgba(235, 195, 136, .4); text-underline-offset: .22em; }

.tools { margin-top: 1.9rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.75rem; }
.tools li { border-top: 1px solid var(--line); }
.tools a { display: flex; align-items: center; gap: .85rem; min-height: 64px; padding: .6rem 0; text-decoration: none; }
.tools__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; }
.tools__icon img { width: 24px; height: 24px; }
.tools__icon .monochrome-logo { filter: invert(1) brightness(1.4); }
.tools__text { display: grid; min-width: 0; }
.tools__text strong { font-weight: 600; font-size: 1rem; transition: color .2s; }
.tools__text small { font-size: .8125rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.contact { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.1rem; }
.pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid var(--line-strong); background: rgba(3, 5, 7, .45); transition: background .2s, border-color .2s, color .2s; }
.pill--primary { background: var(--accent); color: #1a1208; border-color: var(--accent); }
.socials { display: flex; gap: .5rem; margin-top: 1.4rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s; }
.socials svg, .socials img { width: 18px; height: 18px; }
.fine { margin-top: 2.2rem; font-size: .8125rem; color: var(--faint); }

@media (hover: hover) {
    .tools a:hover strong { color: var(--accent); }
    .text-link:hover { text-decoration-color: var(--accent); }
    .pill:hover { border-color: var(--accent); }
    .pill--primary:hover { background: var(--accent-strong); }
    .socials a:hover { color: var(--ink); border-color: var(--line-strong); }
    .lang-btn:hover { color: var(--ink); border-color: var(--line-strong); }
    .lang-option:hover { background: rgba(235, 195, 136, .08); }
    .orbit-nav button:hover .orbit-nav__label { opacity: 1; transform: none; }
}

/* ---------- Page navigation (right rail) ---------- */
.orbit-nav { display: none; }
.orbit-ready .orbit-nav { position: fixed; z-index: 10; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: .25rem; }
.orbit-nav button { display: flex; align-items: center; flex-direction: row-reverse; gap: .8rem; padding: .45rem 0; background: none; border: 0; color: var(--ink); cursor: pointer; font: inherit; }
.orbit-nav__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background .3s, transform .3s, box-shadow .3s; }
.orbit-nav__label { text-shadow: 0 0 3px #000, 0 1px 10px #000; font-size: .8125rem; font-weight: 500; color: var(--muted); opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.orbit-nav button.is-active .orbit-nav__dot { background: var(--accent); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(235, 195, 136, .14); }
.orbit-nav button.is-active .orbit-nav__label { opacity: 1; transform: none; color: var(--accent); }
.orbit-nav button:focus-visible .orbit-nav__label { opacity: 1; transform: none; }

/* ---------- Rotate hint ---------- */
.orbit-hint { display: none; }
.orbit-ready .orbit-hint { position: fixed; z-index: 5; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 500; color: var(--muted); text-shadow: var(--shadow-text); pointer-events: none; }
.orbit-hint svg { animation: hint-spin 3.2s cubic-bezier(.6, 0, .3, 1) infinite; }
.orbit-touched .orbit-hint { display: none; }
@keyframes hint-spin { 0%, 25% { transform: rotate(0); } 75%, 100% { transform: rotate(360deg); } }

/* ---------- Portrait / small screens: planet on top, page below ---------- */
@media (max-aspect-ratio: 9/10) {
    .orbit-ready .orbit-page { align-items: flex-end; justify-content: center; text-align: center; padding: 80px 20px max(84px, calc(env(safe-area-inset-bottom) + 70px)); }
    .orbit-ready .orbit::before { content: ""; position: fixed; inset: 40% 0 0; background: linear-gradient(to bottom, transparent, rgba(3, 5, 7, .74) 32%, rgba(3, 5, 7, .92)); pointer-events: none; }
    .page-inner, .page-inner--wide { margin-inline: auto; }
    .contact, .socials { justify-content: center; }
    .hero-portrait { margin-inline: auto; width: 72px; height: 72px; margin-bottom: 1.1rem; }
    h1 { font-size: clamp(2.3rem, 10vw, 2.9rem); }
    h2 { font-size: clamp(2rem, 8.5vw, 2.5rem); }
    .role { margin-top: 1rem; font-size: 1.1rem; }
    .steps { margin-top: 1.5rem; text-align: left; width: min(300px, 100%); margin-inline: auto; }
    .steps .step { font-size: 1.35rem; }
    .lists { gap: 1.25rem; margin-top: 1.4rem; text-align: left; }
    .plain li { font-size: .9rem; padding: .32rem 0; }
    .tools { margin-top: 1.3rem; column-gap: 1rem; text-align: left; }
    .tools a { min-height: 54px; gap: .6rem; padding: .45rem 0; }
    .tools__icon { width: 24px; height: 24px; }
    .tools__icon img { width: 22px; height: 22px; }
    .tools__text strong { font-size: .95rem; }
    .tools__text small { font-size: .75rem; }
    .orbit-ready .orbit-nav { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); grid-auto-flow: column; gap: .1rem; }
    .orbit-nav button { padding: .6rem .5rem; }
    .orbit-nav__label { display: none; }
    .orbit-ready .orbit-hint { bottom: auto; top: calc(max(14px, env(safe-area-inset-top)) + 64px); }
}
@media (max-width: 360px) {
    .tools__text small { display: none; }
    .lists { grid-template-columns: 1fr; }
}
@media (min-aspect-ratio: 9/10) and (max-height: 620px) {
    .orbit-ready .orbit-page { padding-top: 76px; padding-bottom: 40px; }
    .hero-portrait { display: none; }
    .steps li { padding-block: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-hint svg { animation: none; }
    .tools__text strong, .pill, .socials a, .orbit-nav__dot, .orbit-nav__label { transition: none; }
}

/* No JS: pages stack and scroll normally. */
html:not(.js) .orbit-page { min-height: 70vh; display: flex; align-items: center; border-bottom: 1px solid var(--line); }

/* ---------- Typewriter reveal (timeline in orbit.js) ---------- */
.orbit-ready .tw-word { white-space: nowrap; }
.orbit-ready .orbit-page .ch { position: relative; opacity: 0; }
.orbit-ready .orbit-page .ch.on { opacity: 1; }
.orbit-ready .orbit-page .ch.cur::after { content: ""; position: absolute; right: -.08em; top: .14em; bottom: .1em; width: max(2px, .06em); border-radius: 1px; background: var(--accent); box-shadow: 0 0 8px rgba(235, 195, 136, .55); }
.orbit-ready .orbit-page .ch.blink::after { animation: caret-blink 1s steps(1, end) infinite; }
@keyframes caret-blink { 0% { opacity: 1; } 50% { opacity: 0; } }
.orbit-ready .orbit-page .rv { opacity: 0; transform: translateY(10px); }
.orbit-ready .orbit-page .rv.on { opacity: 1; transform: none; transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1), background .2s, border-color .2s, color .2s; }
@media (prefers-reduced-motion: reduce) {
    .orbit-ready .orbit-page .ch { opacity: 1; }
    .orbit-ready .orbit-page .ch::after { display: none !important; }
    .orbit-ready .orbit-page .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Quick tools: a quiet row of existing app identities ---------- */
.js { --dock-h: 64px; --dock-lift: .75rem; --dock-b: calc(max(12px, env(safe-area-inset-bottom)) + var(--dock-lift)); }
.quick-dock { display: none; }
.js .quick-dock { display: block; position: fixed; z-index: 10; left: 50%; bottom: var(--dock-b); transform: translateX(-50%); max-width: calc(100% - max(6px, env(safe-area-inset-left)) - max(6px, env(safe-area-inset-right))); transition: opacity .8s ease, visibility 0s; }
.js .quick-dock.is-off { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .8s ease, visibility 0s .8s; }
.js .quick-dock.is-instant { transition: none; }
.quick-dock__list { display: flex; justify-content: center; gap: 4px; }
.quick-dock__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: clamp(70px, 11vw, 84px); height: 64px; border-radius: 12px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.quick-dock__name { font-size: .6875rem; line-height: 1.3; font-weight: 500; color: var(--muted); white-space: nowrap; text-shadow: var(--shadow-text); }
.quick-dock__chip { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(3, 5, 7, .62); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: background .2s, border-color .2s; }
.quick-dock__chip img { width: 20px; height: 20px; }
.quick-dock .monochrome-logo { filter: invert(1) brightness(1.4); }
.quick-dock__btn:focus-visible .quick-dock__chip { border-color: var(--accent); }
@media (hover: hover) {
    .quick-dock__btn:hover .quick-dock__chip { background: rgba(3, 5, 7, .8); border-color: var(--line-strong); }
}
/* Keep every name readable on phones: four tools above three, without horizontal scrolling. */
@media (max-width: 540px) {
    .js { --dock-h: 132px; }
    .quick-dock__list { width: 300px; max-width: 100%; flex-wrap: wrap; }
    .quick-dock__btn { width: 72px; }
}
.orbit-ready .orbit-hint { bottom: calc(var(--dock-b) + var(--dock-h) + 10px); }
.orbit-ready .orbit-page { padding-bottom: max(110px, calc(var(--dock-b) + var(--dock-h) + 46px)); }
@media (max-aspect-ratio: 9/10) {
    .js { --dock-b: calc(max(18px, env(safe-area-inset-bottom)) + 34px + var(--dock-lift)); }
    .orbit-ready .orbit-hint { bottom: auto; }
    .orbit-ready .orbit-page { padding-bottom: calc(var(--dock-b) + var(--dock-h) + 14px); }
}
@media (min-aspect-ratio: 9/10) and (max-height: 620px) {
    .orbit-ready .orbit-page { padding-bottom: calc(var(--dock-b) + var(--dock-h) + 40px); }
}
@media (prefers-reduced-motion: reduce) {
    .quick-dock__chip, .js .quick-dock, .js .quick-dock.is-off { transition: none; }
}
