/* ======================================================================
   kaanyigit.com.tr — tek sayfa portfolyo düzeni
   Beyaz / açık gri dönüşümlü bölümler, mavi vurgu, koyu giriş ve alt bilgi.
   ====================================================================== */
:root {
  --head: "Raleway", "Segoe UI", sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --blue: #2196f3;
  --blue-d: #1976d2;
  --dark: #111111;
  --dark-2: #1c1c1c;
  --text: #333333;
  --text-2: #666666;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --gray: #f4f4f4;
  --white: #ffffff;
  --w: 1140px;
  --gutter: 20px;
  --r: 6px;
  --shadow: 0 10px 30px -14px rgba(0, 0, 0, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; margin: 0; line-height: 1.2; color: var(--dark); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
ul, ol { margin: 0; padding-left: 1.2em; }
button { font: inherit; }
.ico { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex-shrink: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--w)); margin-inline: auto; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 10px; background: var(--dark); color: #fff; padding: 8px 12px; border-radius: var(--r); }
.skip:focus { left: 10px; z-index: 100; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- üst menü ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 14px rgba(0,0,0,.08); transition: background .25s, box-shadow .25s; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.top.over-hero:not(.scrolled) { background: transparent; box-shadow: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--dark); font-family: var(--head); font-weight: 700; }
.logo-mark { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: .95rem; letter-spacing: .02em; }
.top.over-hero:not(.scrolled) .logo { color: #fff; }
.menu { display: flex; gap: 2px; }
.menu a { font-family: var(--head); font-weight: 600; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); padding: 8px 12px; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a.is-active { color: var(--blue); border-color: var(--blue); }
.top.over-hero:not(.scrolled) .menu a { color: rgba(255,255,255,.88); }
.top.over-hero:not(.scrolled) .menu a:hover, .top.over-hero:not(.scrolled) .menu a.is-active { color: #fff; border-color: #fff; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; color: var(--dark); cursor: pointer; place-items: center; }
.burger .ico { width: 26px; height: 26px; }
.burger .i-x { display: none; }
.burger[aria-expanded="true"] .i-menu { display: none; } .burger[aria-expanded="true"] .i-x { display: block; }
.top.over-hero:not(.scrolled) .burger { color: #fff; }

/* ---------- butonlar ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--blue); cursor: pointer; transition: .18s; }
.btn-fill { background: var(--blue); color: #fff; }
.btn-fill:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn-line { background: transparent; color: var(--blue); }
.btn-line:hover { background: var(--blue); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- bölüm başlığı ---------- */
.section { padding: clamp(64px, 8vw, 100px) 0; }
.section.gray { background: var(--gray); }
.sec-title { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-title .bar { display: block; width: 44px; height: 3px; background: var(--blue); margin: 14px auto 0; border-radius: 2px; }
.sec-title p { color: var(--text-2); max-width: 640px; margin: 18px auto 0; font-size: 1.02rem; }
.sub-h { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sub-h.center { justify-content: center; }

/* ---------- giriş ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: var(--dark) url("../img/hero-bg.jpg") center / cover no-repeat; color: #fff; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 50% 45%, rgba(10,14,22,.25), rgba(10,14,22,.78) 80%); }
@media (max-width: 700px) { .hero { background-image: url("../img/hero-bg-sm.jpg"); } }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero-inner { position: relative; padding: 100px 20px 80px; }
.hero-name { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; letter-spacing: -0.01em; color: #fff; margin-bottom: 10px; }
.hero-role { font-family: var(--head); font-size: clamp(1rem, 1.8vw, 1.3rem); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.82); margin: 0 0 28px; min-height: 1.6em; }
.caret { animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { to { opacity: 0; } }
.socials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); color: #fff; transition: .18s; }
.socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.socials .ico { width: 18px; height: 18px; }
.hero-down { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); animation: bob 1.6s ease-in-out infinite; }
.hero-down .ico { width: 28px; height: 28px; }
.hero-down:hover { color: #fff; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- hakkımda ---------- */
.about { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: start; }
.about-photo { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; filter: grayscale(1); transition: filter .4s; }
.about-photo:hover img { filter: none; }
.hand { font-family: var(--hand); font-size: 1.9rem; color: var(--dark); line-height: 1.2; margin-bottom: 14px; }
.about-text p { color: var(--text-2); }
.about-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--text-2); margin-top: 6px; }
.about-facts b { color: var(--dark); font-weight: 700; }

.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: clamp(48px, 6vw, 72px); }
.skill-col h3 { font-size: 1.2rem; margin-bottom: 18px; }
.skill { margin-bottom: 16px; }
.skill-head { display: flex; justify-content: space-between; font-family: var(--head); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.skill-head .pct { color: var(--muted); font-weight: 600; }
.bar-track { height: 4px; background: #e9e9e9; border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--blue); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }

.edu { margin-top: clamp(40px, 5vw, 56px); }
.edu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.edu-grid > div { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); }
.edu-grid b { color: var(--dark); font-family: var(--head); font-size: .95rem; }
.edu-grid span { color: var(--text-2); font-size: .92rem; }
.edu-grid small { color: var(--muted); font-size: .8rem; }

/* ---------- kartlar ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: 10px; padding: 32px 26px; text-align: center; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card-ico { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(33,150,243,.1); color: var(--blue); }
.card-ico .ico { width: 28px; height: 28px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: .93rem; margin: 0; }

/* ---------- zaman çizelgesi ---------- */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--blue); transform: translateX(-50%); opacity: .6; }
.tl { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 0 24px; padding: 0 0 44px; align-items: start; }
.tl-left { text-align: right; padding-top: 6px; }
.tl-left h3 { font-size: 1.25rem; }
.tl-site { display: block; font-size: .82rem; color: var(--muted); }
.tl-site:hover { color: var(--blue); }
.tl-period { display: block; font-family: var(--head); font-weight: 700; color: var(--blue); font-size: .9rem; margin-top: 8px; }
.tl-loc { display: block; font-size: .85rem; color: var(--muted); }
.tl-dot { position: relative; width: 40px; height: 40px; }
.tl-dot::before { content: ""; position: absolute; left: 50%; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); transform: translateX(-50%); box-shadow: 0 0 0 4px var(--white); }
.tl-right { padding-top: 6px; }
.tl-right h3 { font-size: 1.25rem; }
.tl-type { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.tl-summary { color: var(--text-2); font-size: .95rem; }
.tl-more { margin: 4px 0 10px; }
.tl-more summary { cursor: pointer; font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.tl-more summary::-webkit-details-marker { display: none; }
.tl-more summary::before { content: "+"; font-size: 1rem; line-height: 1; }
.tl-more[open] summary::before { content: "–"; }
.tl-label { font-family: var(--head); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.tl-more ul { color: var(--text-2); font-size: .93rem; display: grid; gap: 5px; }
.hl { list-style: none; padding: 0; }
.hl li { position: relative; padding-left: 16px; color: var(--text); }
.hl li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hl a { white-space: nowrap; font-size: .86rem; font-weight: 700; margin-left: 4px; }
.hl a .ico { width: .9em; height: .9em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { font-family: var(--head); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--gray); color: var(--text-2); }
.gray .tags span { background: var(--white); }

.cta { max-width: 760px; margin: clamp(24px, 4vw, 40px) auto 0; text-align: center; padding: 36px 32px; border: 2px solid var(--blue); border-radius: 12px; }
.cta h3 { font-size: 1.3rem; margin-bottom: 10px; }
.cta p { color: var(--text-2); margin-bottom: 18px; }

/* ---------- portfolyo ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 32px; }
.filters button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); cursor: pointer; }
.filters button:hover, .filters button.is-active { background: var(--blue); color: #fff; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .2s, box-shadow .2s; min-width: 0; }
.pcard:hover { transform: translateY(-5px); color: var(--text); box-shadow: 0 18px 40px -18px rgba(0,0,0,.28); }
.pcard.is-hidden { display: none; }
.pcard-media { position: relative; aspect-ratio: 16 / 10; background: var(--gray); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-media.placeholder { display: grid; place-content: center; gap: 8px; text-align: center; background: linear-gradient(135deg, #1c2431, #0f1115); color: #fff; }
.ph-mark { font-family: var(--head); font-size: 3rem; font-weight: 800; letter-spacing: .02em; color: rgba(255,255,255,.9); }
.ph-stack { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.pcard-hover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(33,150,243,.85); color: #fff; opacity: 0; transition: opacity .2s; font-family: var(--head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.pcard-hover span { display: inline-flex; align-items: center; gap: 6px; }
.pcard:hover .pcard-hover { opacity: 1; }
.pcard-body { padding: 20px 22px 24px; display: grid; gap: 6px; }
.pcard-kind { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pcard h3 { font-size: 1.1rem; }
.pcard p { color: var(--text-2); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- referanslar ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.logos figure { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px 16px; display: grid; place-items: center; gap: 10px; min-height: 120px; transition: .2s; }
.logos figure:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.logos img { max-height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .2s; }
.logos figure:hover img { filter: none; opacity: 1; }
.logos figcaption { font-size: .74rem; color: var(--muted); text-align: center; }

/* ---------- görüşler ---------- */
.quotes { display: grid; gap: 20px; }
.quote { margin: 0; text-align: center; padding: 28px; }
.quote .ico { width: 30px; height: 30px; color: var(--blue); margin-bottom: 10px; }
.quote p { font-style: italic; color: var(--text-2); font-size: 1.05rem; }
.quote footer b { display: block; color: var(--dark); font-family: var(--head); }
.quote footer span { color: var(--muted); font-size: .88rem; }

/* ---------- iletişim ---------- */
.contact-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto 44px; }
.ccol { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--text); padding: 22px 16px; border-radius: 10px; transition: .2s; }
a.ccol:hover { background: var(--gray); color: var(--text); }
.ccol-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(33,150,243,.1); color: var(--blue); margin-bottom: 6px; }
.ccol-ico .ico { width: 24px; height: 24px; }
.ccol b { font-family: var(--head); color: var(--dark); }
.ccol > span:last-child { color: var(--text-2); font-size: .95rem; }
.form { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea { width: 100%; padding: 13px 16px; border: 1px solid #d9d9d9; border-radius: var(--r); background: var(--white); font: inherit; font-size: .97rem; color: var(--text); }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,150,243,.15); }
.form textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.status { margin: 0; font-size: .92rem; }
.status.ok { color: #1a7f37; } .status.err { color: #b42318; }

/* ---------- alt bilgi ---------- */
.foot { background: var(--dark); color: rgba(255,255,255,.6); padding: 44px 0; text-align: center; }
.foot .socials { margin-bottom: 18px; }
.foot p { margin: 0; font-size: .88rem; }
.totop { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--blue-d); color: #fff; }
.totop .ico { width: 20px; height: 20px; }

/* ---------- iç sayfalar ---------- */
.page-head { background: var(--dark) radial-gradient(900px 400px at 50% 0%, #1e2633, #0f1115 70%); color: #fff; padding: 130px 0 56px; }
.page-head .crumbs { font-size: .82rem; color: rgba(255,255,255,.55); display: flex; gap: 8px; margin-bottom: 18px; }
.page-head .crumbs a { color: rgba(255,255,255,.75); }
.page-head .crumbs a:hover { color: #fff; }
.page-head .kind { display: block; font-family: var(--head); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.page-head p { color: rgba(255,255,255,.78); max-width: 760px; font-size: 1.08rem; margin: 0; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.meta-label { display: block; font-family: var(--head); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meta div { font-size: .95rem; }
.cover { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 44px; }
.cover figcaption { padding: 10px 16px; font-size: .82rem; color: var(--muted); background: var(--gray); }
.project-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.toc { position: sticky; top: 90px; align-self: start; font-size: .9rem; }
.toc-label { display: block; font-family: var(--head); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--text-2); border-left: 2px solid var(--line); }
.toc a:hover, .toc a.is-active { color: var(--blue); border-color: var(--blue); }
.prose { max-width: 760px; color: var(--text-2); font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; color: var(--dark); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; color: var(--dark); }
.prose strong { color: var(--dark); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose li { margin: .35em 0; }
.prose code { font-family: Consolas, "JetBrains Mono", monospace; font-size: .86em; padding: 1px 6px; border-radius: 4px; background: var(--gray); color: var(--dark); }
.prose pre { margin: 1.4em 0; padding: 16px 18px; border-radius: var(--r); overflow-x: auto; font-size: .85rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--blue); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .92rem; }
.prose th, .prose td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--dark); font-family: var(--head); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.prose img { border-radius: var(--r); box-shadow: var(--shadow); margin: 1.2em 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.2em 0; }
.gallery figure { min-width: 0; }
.gallery img { width: 100%; margin: 0; }
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.project-nav a { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); }
.project-nav a:hover { border-color: var(--blue); color: var(--blue); }
.project-nav a.r { text-align: right; }
.project-nav small { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project-nav b { font-family: var(--head); }

/* ---------- görünme animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-down, .caret { animation: none; } html { scroll-behavior: auto; } }

/* ---------- duyarlı ---------- */
@media (max-width: 1000px) {
  .cards4, .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-body { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .menu { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--white); padding: 8px 0 12px; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 24px; color: var(--text) !important; border-bottom: 0; }
  .menu a.is-active { color: var(--blue) !important; }
  .burger { display: grid; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 300px; }
  .timeline::before { left: 19px; }
  .tl { grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; }
  .tl-left { grid-column: 2; text-align: left; padding-top: 0; }
  .tl-dot { grid-column: 1; grid-row: 1 / span 2; }
  .tl-right { grid-column: 2; }
  .tl-left h3 { font-size: 1.05rem; }
  .tl-period, .tl-loc, .tl-site { display: inline; margin: 0 8px 0 0; }
  .contact-cols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 600px) {
  .cards4, .edu-grid, .pgrid, .form .row, .project-nav, .gallery { grid-template-columns: minmax(0, 1fr); }
  .meta { grid-template-columns: minmax(0, 1fr); }
  .btns .btn { width: 100%; justify-content: center; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 90px 16px 70px; }
  .page-head { padding-top: 100px; }
}
