/* ============================================================
   Parla Tellioglu — Interior pages
   Single-viewport "slide" system, consistent with home.css
   Dark · minimal · muted purple · engineered, not decorated
   Type: Inter Tight (display) · Inter (text)
   ============================================================ */

:root {
  --bg:      #0E0E12;
  --bg-2:    #121217;
  --surface: #16161B;
  --surface-2: #1C1C22;

  --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);
  --accent-dim-2: rgba(142,126,216,.26);

  --serif: 'Instrument Serif', Georgia, serif;
  --mono:  'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
}

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

body.page {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.page.fit { overflow: hidden; }              /* strict single viewport */
body.page.flow { overflow-x: hidden; overflow-y: auto; }  /* minimal scroll pages */

body.page::selection, body.page ::selection { background: var(--accent-dim-2); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

/* faint architectural lighting, very restrained */
body.page::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 16% 0%, rgba(142,126,216,.055), transparent 52%);
}
/* hairline drafting grid */
body.page::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.022) 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%);
}

/* small shared primitives */
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: "// "; color: var(--ink-3); letter-spacing: 0; }
.muted { color: var(--ink-3); }
/* serif italic accent inside display headings */
h1 .alt { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.05em; letter-spacing: 0; color: var(--accent-2); }

/* ============================================================
   PAGE VEIL  (load + transition)
   ============================================================ */
.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); }

/* ============================================================
   SHELL — full-height column: topbar / slide / botbar
   ============================================================ */
.screen {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: clamp(20px, 2.8vh, 32px) clamp(26px, 5vw, 72px);
  max-width: 1500px; margin: 0 auto;
}
body.page.fit .screen { height: 100vh; height: 100dvh; }

/* ---- top bar (brand · nav) ---- */
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: clamp(14px, 2vh, 22px); border-bottom: 1px solid var(--line); }
/* drafting ticks at the rule ends */
.topbar::before, .topbar::after, .botbar::before, .botbar::after {
  content: "+"; position: absolute; font: 400 13px/1 var(--mono); color: var(--ink-3); opacity: .55; pointer-events: none; }
.topbar::before { left: -5px; bottom: -7px; }
.topbar::after  { right: -5px; bottom: -7px; }
.botbar::before { left: -5px; top: -7px; }
.botbar::after  { right: -5px; top: -7px; }
body.page.flow .topbar::before { left: calc(clamp(26px,5vw,72px) - 5px); }
body.page.flow .topbar::after  { right: calc(clamp(26px,5vw,72px) - 5px); }
body.page.flow .topbar { position: sticky; top: 0; z-index: 50;
  background: rgba(14,14,18,.7); backdrop-filter: blur(10px);
  margin: 0 calc(-1 * clamp(26px,5vw,72px)); padding: clamp(14px,2vh,18px) clamp(26px,5vw,72px); }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.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); }

.tnav { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 22px); }
.tnav a { position: relative; font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 4px 2px;
  transition: color .25s var(--ease); }
.tnav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--accent); transition: right .3s var(--ease); }
.tnav a:hover { color: var(--ink); }
.tnav a.active { color: var(--accent-2); }
.tnav a.active::after { right: 0; }

.tnav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 60; }
.tnav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* ---- the slide (main composed area) ---- */
.slide { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0;
  padding: clamp(20px, 3vh, 40px) 0; }
body.page.flow .slide { justify-content: flex-start; }

/* slide heading row */
.slide-head { margin-bottom: clamp(18px, 3vh, 34px); }
.slide-head .eyebrow { margin-bottom: 12px; }
.slide-head h1 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -0.03em; }
.slide-head p { margin-top: 14px; max-width: 540px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

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

/* ============================================================
   BUTTONS / LINKS / TAGS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 500; font-size: 14px; padding: 11px 20px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; transition: all .25s var(--ease); white-space: nowrap; }
.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); }

.tlink { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--accent-2); transition: gap .25s var(--ease); }
.tlink svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.tlink:hover { gap: 10px; }
.tlink:hover svg { transform: translateX(2px) translateY(-2px); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .01em; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; }
.tag.accent { color: var(--accent-2); background: var(--accent-dim); border-color: var(--accent-dim-2); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 310px);
  gap: clamp(30px, 4vh, 44px) clamp(44px, 5vw, 76px); align-items: start; }
.about .col-h { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }

.about-body { min-width: 0; }
.about-body .lead-line { font-family: 'Inter Tight', sans-serif; font-size: clamp(18px, 2vw, 25px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.32; }
.about-body p.bio { margin-top: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.68; }
.about-body p.bio + p.bio { margin-top: 10px; }

.about-aside { display: flex; flex-direction: column; gap: clamp(22px, 3vh, 30px); }
.about-facts { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.about-facts .row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 12.5px; }
.about-facts .row:first-child { border-top: 0; }
.about-facts .row .k { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.about-facts .row .v { color: var(--ink); font-weight: 600; text-align: right; }

.about-toolkit { grid-column: 1 / -1; margin-top: clamp(6px, 2vh, 16px); padding-top: clamp(18px, 2.4vh, 26px); border-top: 1px solid var(--line); }
.about-toolkit .col-h { margin-bottom: 16px; }
.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 40px; }
.skill-groups .sg .t { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.langs { display: flex; flex-direction: column; gap: 11px; }
.lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang .n { font-size: 13px; font-weight: 500; }
.lang .meter { display: flex; align-items: center; gap: 5px; }
.lang .meter .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.lang .meter .dot.on { background: var(--accent); }
.lang .lvl { margin-left: 10px; font-size: 11.5px; color: var(--ink-3); min-width: 46px; text-align: right; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 72px); align-items: stretch; }
.exp-col .col-h { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); margin-bottom: clamp(14px, 2vh, 22px); }

.roles { display: flex; flex-direction: column; }
.role { padding: clamp(13px, 1.9vh, 20px) 0; border-top: 1px solid var(--line); }
.role:first-child { border-top: 0; padding-top: 0; }
.role .r-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.role .r-role { font-size: 16px; font-family: 'Inter Tight', sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.role .r-org { color: var(--accent-2); font-size: 13px; font-weight: 500; margin-top: 2px; }
.role .r-date { flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 100px; }
.role .r-desc { margin-top: 9px; font-size: 13px; color: var(--ink-2); line-height: 1.6; max-width: 540px; }
.role .tags { margin-top: 11px; }

.edu { display: flex; flex-direction: column; gap: 12px; }
.edu-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px 18px; transition: border-color .25s var(--ease); }
.edu-card:hover { border-color: var(--line-2); }
.edu-card .e-date { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--accent-2); }
.edu-card h4 { font-size: 15px; margin-top: 7px; }
.edu-card .e-sub { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.edu-card .tags { margin-top: 11px; }

.earlier { margin-top: clamp(16px, 2.2vh, 24px); padding-top: clamp(14px, 2vh, 20px); border-top: 1px solid var(--line); }
.earlier .col-h { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.earlier .e-row { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.earlier .e-row:first-child { border-top: 0; }
.earlier .e-yr { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-3); }
.earlier .e-name { font-size: 13px; font-weight: 600; font-family: 'Inter Tight', sans-serif; }
.earlier .e-desc { margin-top: 3px; font-size: 12px; color: var(--ink-2); line-height: 1.5; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { display: grid; grid-template-columns: minmax(0, 620px); justify-content: center; gap: clamp(32px, 6vw, 84px); align-items: center; }
.contact-lead h1 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.03em; }
.contact-lead p { margin-top: 18px; max-width: 440px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.channels { margin-top: clamp(24px, 3.4vh, 38px); display: flex; flex-direction: column; gap: 10px; }
.channel { display: flex; align-items: center; gap: 15px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.channel:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--surface-2); }
.channel .ico { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent-dim); color: var(--accent-2); display: grid; place-items: center; flex: none; }
.channel .ico svg { width: 19px; height: 19px; }
.channel .meta { display: flex; flex-direction: column; min-width: 0; }
.channel .meta .l { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.channel .meta .v { overflow: hidden; text-overflow: ellipsis; }
.channel .meta .v { font-weight: 500; font-size: 14.5px; margin-top: 2px; }
.channel .arr { margin-left: auto; color: var(--ink-3); transition: transform .25s var(--ease), color .25s var(--ease); }
.channel .arr svg { width: 17px; height: 17px; }
.channel:hover .arr { transform: translate(3px,-3px); color: var(--accent); }

/* ============================================================
   PROJECTS  (flow page: cards slide, then case studies)
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(18px, 2vw, 24px); transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.pcard:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); }
.pcard .pc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pcard .pc-cat { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.pcard .pc-award { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.pcard .pc-award svg { width: 13px; height: 13px; color: var(--accent); }
.pcard h3 { font-size: 19px; }
.pcard p { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.6; flex: 1; }
.pcard .tags { margin-top: 14px; }
.pcard .pc-foot { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard .pc-foot .result { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

/* case studies */
.cases { margin-top: clamp(40px, 7vh, 88px); }
.case { padding: clamp(34px, 5vh, 64px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.case-top .c-no { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.case-top h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 8px; }
.case-top .c-cat { margin-top: 9px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.case-grid { margin-top: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: 1.6fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.case-body .block + .block { margin-top: 22px; }
.case-body .block h4 { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.case-body .block p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.case-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: sticky; top: 96px; }
.case-aside .row { padding: 12px 0; border-top: 1px solid var(--line); }
.case-aside .row:first-child { padding-top: 0; border-top: 0; }
.case-aside .row .k { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.case-aside .row .v { font-size: 13.5px; color: var(--ink); }
.case-aside .btn { width: 100%; margin-top: 20px; }

/* ============================================================
   CV  (flow page)
   ============================================================ */
.cv { display: grid; grid-template-columns: clamp(260px, 28vw, 320px) minmax(0,1fr); gap: clamp(30px, 5vw, 60px); align-items: start; }
.cv-side { position: sticky; top: 96px; }
.cv-preview { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-2); aspect-ratio: 1 / 1.3; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.cv-preview object, .cv-preview iframe { width: 100%; height: 100%; border: 0; }
.cv-side .btn { width: 100%; margin-top: 12px; }
.cv-side .toc { margin-top: 20px; border-top: 1px solid var(--line); }
.cv-side .toc a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); transition: color .25s var(--ease), padding-left .25s var(--ease); }
.cv-side .toc a:hover { color: var(--accent-2); padding-left: 6px; }

.cv-block { padding: clamp(22px, 3vh, 32px) 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.cv-block:first-child { padding-top: 0; border-top: 0; }
.cv-block > .cv-h { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
.cv-block > .cv-h.lead-p { color: var(--ink-3); }
.cv-lead { max-width: 640px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.cv-entry { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 13px 0; }
.cv-entry + .cv-entry { border-top: 1px solid var(--line); }
.cv-entry .when { font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 4px; }
.cv-entry h4 { font-size: 16px; }
.cv-entry .at { color: var(--accent-2); font-size: 12.5px; font-weight: 500; margin-top: 3px; }
.cv-entry p { margin-top: 7px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* ============================================================
   ENTRANCE + REVEAL
   ============================================================ */
.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; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .skill-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* relax single-viewport lock; let everything flow */
  body.page.fit, body.page.flow { overflow-y: auto; }
  body.page.fit .screen { height: auto; }
  .slide { justify-content: flex-start; }

  .about { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .about-body { min-width: 0; }
  .about-aside { max-width: 420px; }
  .exp { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .exp-col { min-width: 0; }
  .contact { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .proj-grid { grid-template-columns: minmax(0,1fr); }
  .case-grid { grid-template-columns: minmax(0,1fr); }
  .case-aside { position: static; }
  .cv { grid-template-columns: minmax(0,1fr); }
  .cv-side { position: static; }
  .cv-preview { max-width: 360px; }
  .skill-groups { grid-template-columns: repeat(2, 1fr); }

  /* mobile nav dropdown */
  .tnav-burger { display: flex; }
  .tnav { position: fixed; inset: auto 0 auto 0; top: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.5);
    padding: 72px clamp(26px,5vw,72px) 22px; transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .3s var(--ease); z-index: 55; }
  .tnav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .tnav a { padding: 13px 2px; font-size: 16px; }
  .tnav a::after { display: none; }
  .tnav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .tnav-burger.open span:nth-child(2) { opacity: 0; }
  .tnav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .skill-groups { grid-template-columns: 1fr; }
  .brand .bname { display: none; }
  .botbar { flex-direction: column; gap: 12px; align-items: flex-start; }
  .cv-entry { grid-template-columns: 1fr; gap: 5px; }
}

/* short screens: let fit pages breathe */
@media (max-height: 640px) and (min-width: 861px) {
  body.page.fit { overflow-y: auto; }
  body.page.fit .screen { height: auto; }
}

/* ---- copy-to-clipboard toast (email links) ---- */
.copy-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px);
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink);
  font-family: var(--mono); font-size: 12.5px; padding: 10px 16px; border-radius: var(--r);
  box-shadow: 0 12px 34px rgba(0,0,0,.45); opacity: 0; pointer-events: none; z-index: 200;
  transition: opacity .25s var(--ease), transform .25s var(--ease); }
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }
.copy-toast .tick { color: var(--accent-2); }
