/* ============================================================
   Parla Tellioglu — Home (dark, single viewport, no scroll)
   Self-contained: does not affect the light sub-pages.
   ============================================================ */

:root {
  --bg:      #0E0E12;
  --bg-2:    #121217;
  --ink:     #F3F3F6;
  --ink-2:   #9C9CA6;
  --ink-3:   #5E5E68;
  --line:    rgba(255,255,255,.08);
  --line-2:  rgba(255,255,255,.16);
  --accent:  #8E7ED8;
  --accent-2:#A99CE6;
  --accent-dim: rgba(142,126,216,.14);
  --serif: 'Instrument Serif', Georgia, serif;
  --mono:  'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body.home {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow: hidden;
}
body.home::selection, body.home ::selection { background: rgba(142,126,216,.28); color: #fff; }
a { color: inherit; text-decoration: none; }

h1 { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }

/* faint architectural lighting, very restrained */
body.home::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 18% 0%, rgba(142,126,216,.06), transparent 52%);
}
/* hairline drafting grid */
body.home::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: clamp(96px, 11vw, 160px) 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

/* ---- page veil ---- */
.veil { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center;
  transition: opacity .4s var(--ease), visibility .4s var(--ease); }
.veil .mark { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .14em; color: var(--ink-3); }
.veil .mark span { color: var(--accent); }
body.loaded .veil { opacity: 0; visibility: hidden; }
body.leaving .veil { opacity: 1; visibility: visible; transition: opacity .28s var(--ease); }

/* ============================================================
   FULL-SCREEN SHELL
   ============================================================ */
.screen {
  position: relative; z-index: 1;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: clamp(22px, 3vh, 34px) clamp(28px, 5vw, 72px);
  max-width: 1500px; margin: 0 auto;
}

/* ---- top bar ---- */
.hnav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: clamp(18px, 2.4vh, 26px); border-bottom: 1px solid var(--line); }
/* drafting ticks at the rule ends */
.hnav::before, .hnav::after, .hfoot::before, .hfoot::after {
  content: "+"; position: absolute; font: 400 13px/1 var(--mono); color: var(--ink-3); opacity: .55; pointer-events: none; }
.hnav::before { left: -5px; bottom: -7px; }
.hnav::after  { right: -5px; bottom: -7px; }
.hfoot::before { left: -5px; top: -7px; }
.hfoot::after  { right: -5px; top: -7px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: -0.02em; color: var(--accent-2); }
.hnav-meta { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--ink-2); }
.hnav-meta .status { display: inline-flex; align-items: center; gap: 8px; }
.hnav-meta .status .dot { width: 7px; height: 7px; border-radius: 50%; background: #5FB98C; box-shadow: 0 0 0 3px rgba(95,185,140,.16); }
@media (max-width: 620px) { .hnav-meta .loc { display: none; } }
@media (max-width: 520px) { .brand .bname { display: none; } }

/* ---- main: asymmetric three-column (text / photo / index) ---- */
.hmain { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) auto clamp(280px, 26vw, 380px);
  gap: clamp(28px, 3.6vw, 64px); align-items: center; min-height: 0; }

.kick { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); }
.kick::before { content: "// "; color: var(--ink-3); letter-spacing: 0; }
.hname { margin-top: clamp(16px, 2.4vh, 24px); font-size: clamp(40px, 5.6vw, 78px); }
.hname .alt { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.04em; letter-spacing: 0; color: var(--accent-2); }
.hrole { margin-top: clamp(16px, 2.2vh, 26px); max-width: 380px; font-size: clamp(14.5px, 1.1vw, 16.5px);
  line-height: 1.55; color: var(--ink-2); }
.hrole em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; color: var(--ink); }

/* ---- center photo ---- */
.hphoto { position: relative; align-self: center; justify-self: center; }
/* quiet halo + drafting ring behind the portrait */
.hphoto::before {
  content: ""; position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
  width: 92%; aspect-ratio: 1/1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(142,126,216,.11), transparent 68%);
}
.hphoto::after {
  content: ""; position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
  width: 86%; aspect-ratio: 1/1; border-radius: 50%; pointer-events: none;
  border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
}
.hphoto .frame { position: relative; z-index: 1; height: min(48vh, 380px); aspect-ratio: 1/1; overflow: visible;
  border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.hphoto .frame image-slot { width: 100%; height: 100%; display: block; }
.hphoto .frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 6%;
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 99%); }
.hcta { margin-top: clamp(24px, 3.2vh, 40px); display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 14px; padding: 12px 22px;
  border-radius: 8px; border: 1px solid transparent; transition: all .25s var(--ease); }
.btn svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn.primary { background: var(--accent); color: #14121C; }
.btn.primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn.primary:hover svg { transform: translateX(3px); }
.btn.ghost { border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---- navigation index (right) ---- */
.hindex { border-left: 1px solid var(--line); padding-left: clamp(28px, 3vw, 56px); }
.ix { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 16px;
  padding: clamp(13px, 1.7vh, 19px) 0; border-top: 1px solid var(--line);
  transition: padding-left .3s var(--ease); }
.ix:first-child { border-top: 0; }
.ix .n { font-family: var(--mono); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.ix .l { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -0.02em; transition: color .3s var(--ease); }
.ix .d { display: none; }
.ix .ar { color: var(--ink-3); font-size: 18px; line-height: 1; transition: transform .3s var(--ease), color .3s var(--ease); justify-self: end; }
.ix:hover { padding-left: 10px; }
.ix:hover .n { color: var(--accent-2); }
.ix:hover .l { color: var(--ink); }
.ix:hover .ar { transform: translateX(4px); color: var(--accent-2); }

/* ---- bottom bar ---- */
.hfoot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: clamp(16px, 2.2vh, 24px); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--ink-3); }
.hfoot .foot-meta { display: inline-flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.hfoot .foot-meta .sep { opacity: .45; }
.hfoot .socials { display: flex; align-items: center; gap: 18px; font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; letter-spacing: 0; }
.hfoot .socials a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); transition: color .25s var(--ease); }
.hfoot .socials a:hover { color: var(--accent-2); }
.hfoot .socials svg { width: 16px; height: 16px; }

/* ============================================================
   ENTRANCE (tied to load, no scroll observers)
   ============================================================ */
.rise { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
body.loaded .rise { opacity: 1; transform: none; }
body.loaded .e1 { transition-delay: .04s; }
body.loaded .e2 { transition-delay: .10s; }
body.loaded .e3 { transition-delay: .16s; }
body.loaded .e4 { transition-delay: .22s; }
body.loaded .e5 { transition-delay: .28s; }
body.loaded .e6 { transition-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .veil { display: none; }
}

/* ============================================================
   RESPONSIVE — relax the lock on small / short screens
   ============================================================ */
@media (max-width: 860px) {
  body.home { overflow: auto; }
  .screen { height: auto; min-height: 100vh; min-height: 100dvh; }
  .hmain { grid-template-columns: 1fr; gap: clamp(28px, 5vh, 44px); padding: clamp(36px,6vh,64px) 0; }
  .hmain-left { order: 1; }
  .hphoto { order: 2; }
  .hindex { order: 3; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  .hphoto .frame { height: auto; width: min(280px, 64vw); }
  .hfoot { flex-wrap: wrap; }
}
@media (max-height: 600px) and (min-width: 861px) {
  body.home { overflow: auto; }
  .screen { height: auto; min-height: 100vh; }
}
