/* ===== Gündoğdu Lab — tokens ===== */
:root {
  --navy: #12294a;
  --navy-deep: #0b1c35;
  --amber: #e79b12;
  --amber-soft: #fbeccf;
  --ice: #bcd6ee;
  --paper: #f5f7fa;
  --white: #ffffff;
  --ink: #1b2a3f;
  --muted: #56667c;
  --line: #d8e0ea;
  --radius: 10px;
  --wrap: 1160px;
  --head: 76px;
  --f-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-body: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--f-display); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; font-weight: 600; }
.h-small { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 6px; }
.skip:focus { top: 1rem; }
.mt { margin-top: 3rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; color: var(--navy); letter-spacing: .02em; }
.brand-name b { color: var(--amber); }
.brand-tag { font-size: .8rem; color: var(--muted); font-style: italic; margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.site-nav a {
  display: block; padding: .55rem .8rem; text-decoration: none; color: var(--navy);
  font-family: var(--f-display); font-weight: 600; font-size: .93rem; border-radius: 6px;
}
.site-nav a:hover { background: var(--paper); }
.site-nav a[aria-current="page"] { color: var(--amber); }
.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: .45rem; position: absolute; left: 0; top: 100%;
  min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 30px -18px rgba(18,41,74,.45);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-weight: 500; }

.lang { display: flex; border: 1.5px solid var(--navy); border-radius: 7px; overflow: hidden; }
.lang button {
  font: 600 .8rem var(--f-display); letter-spacing: .04em; border: 0; padding: .42rem .7rem;
  background: transparent; color: var(--navy); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; transition: .2s; margin: auto; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* ===== Views ===== */
.view { display: none; }
.view.is-active { display: block; }
main:focus { outline: none; }

/* ===== Buttons & links ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.35rem;
  font: 600 .95rem var(--f-display); border-radius: 8px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-amber { background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover { background: #f4ad2c; }
.text-link {
  font: 600 .95rem var(--f-display); color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--amber); padding-bottom: 2px;
}
.text-link:hover { color: var(--amber); }
.tag { color: var(--amber); font-weight: 700; }

/* ===== Hero ===== */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--amber); margin-top: 1.4rem; border-radius: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-figure { margin: 0; }
.hero-figure figcaption { font-size: .85rem; color: var(--muted); text-align: right; font-style: italic; margin-top: .4rem; }
#molecule { width: 100%; height: auto; overflow: visible; }
#molecule .ring { fill: none; stroke: var(--navy); stroke-width: 3.2; stroke-linejoin: round; }
#molecule .inner { fill: none; stroke: var(--ice); stroke-width: 2.4; }
#molecule .bond { stroke: var(--navy); stroke-width: 3.2; stroke-linecap: round; }
#molecule .bond2 { stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; }
#molecule .atom { fill: var(--white); stroke: var(--navy); stroke-width: 2.6; }
#molecule .atom.acc { fill: var(--amber); stroke: var(--amber); }
#molecule .het { fill: var(--paper); }
#molecule text { font: 700 22px var(--f-display); fill: var(--navy); text-anchor: middle; dominant-baseline: central; }
#molecule .ghost { fill: none; stroke: var(--ice); stroke-width: 1.4; opacity: .7; }
#molecule .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s cubic-bezier(.6,.1,.3,1) forwards; animation-delay: var(--d, 0s); }
#molecule .pop { opacity: 0; animation: pop .45s ease forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* ===== Bands ===== */
.band { padding: clamp(3rem, 6vw, 5rem) 0; }
.band-white { background: var(--white); }
.band-navy { background: var(--navy); color: #d9e3f0; }
.band-navy h2 { color: #fff; }
.sec-head { margin-bottom: 2.4rem; }
.sec-head p { color: var(--muted); }
.sec-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.facts { margin: 0; border-left: 3px solid var(--amber); padding-left: 1.6rem; display: grid; gap: 1.3rem; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: .15rem 0 0; font: 600 1.02rem/1.4 var(--f-display); color: var(--navy); }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.area { border-top: 2px solid var(--navy); padding-top: 1.4rem; }
.area svg { width: 46px; height: 46px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.area svg .acc { stroke: var(--amber); }
.area p { color: var(--muted); font-size: .98rem; }

.join { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.join p { margin: 0; }

/* ===== Publications ===== */
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); align-items: start; }
.pub:last-child { border-bottom: 1px solid var(--line); }
.pub-year { font: 700 1.3rem var(--f-display); color: var(--amber); }
.pub h3 { font-size: 1.02rem; line-height: 1.45; margin-bottom: .45rem; }
.pub-auth { margin: 0 0 .2rem; font-size: .95rem; color: var(--ink); }
.pub-auth strong { color: var(--navy); }
.pub-src { margin: 0; font-size: .92rem; color: var(--muted); }
.pub-src i { color: var(--ink); }
.pub .text-link { white-space: nowrap; font-size: .88rem; align-self: center; }
.pub-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.search input {
  width: min(420px, 80vw); padding: .75rem 1rem; font: inherit; border: 1.5px solid var(--line);
  border-radius: 8px; background: var(--paper);
}
.search input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--amber-soft); }
.years { display: flex; gap: .4rem; flex-wrap: wrap; }
.years button {
  font: 600 .85rem var(--f-display); padding: .5rem .85rem; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy); border-radius: 999px; cursor: pointer;
}
.years button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pub-count { margin: 0 0 0 auto; color: var(--muted); font-size: .9rem; }
.empty { color: var(--muted); padding: 2rem 0; border-top: 1px solid var(--line); }

/* ===== Page head ===== */
.page-head {
  padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-head h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--amber); margin-top: 1rem; border-radius: 2px; }

/* ===== About ===== */
.story { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.story-text p { font-size: 1.12rem; }
blockquote {
  margin: 2rem 0 0; padding: 0 0 0 1.4rem; border-left: 4px solid var(--amber);
  font: 600 1.25rem/1.45 var(--f-display); color: var(--navy); max-width: 30ch;
}
.story-links { display: grid; gap: .8rem; align-content: start; }
.story-links a {
  display: grid; gap: .15rem; padding: 1.1rem 1.3rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s;
}
.story-links a:hover { border-color: var(--navy); }
.story-links strong { font-family: var(--f-display); color: var(--navy); }
.story-links span { color: var(--muted); font-size: .95rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: #e9eef4; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-small { aspect-ratio: 4 / 3; margin-top: 1.5rem; }

/* ===== Team ===== */
.hex { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.avatar {
  width: 128px; aspect-ratio: .88; background: var(--navy); color: #fff; display: grid; place-items: center;
  font: 700 1.7rem var(--f-display); letter-spacing: .02em; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.leader { display: grid; grid-template-columns: auto 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.leader .avatar { width: 190px; font-size: 2.6rem; }
.leader-role { color: var(--amber); font: 600 .95rem var(--f-display); margin: -.3rem 0 1rem; }
.leader-bio p { color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1rem; }
.edu h3 { margin-bottom: 1rem; }
.edu ol { list-style: none; margin: 0; padding: 0 0 0 1.2rem; border-left: 2px solid var(--line); }
.edu li { position: relative; padding-bottom: 1.2rem; }
.edu li::before { content: ""; position: absolute; left: calc(-1.2rem - 6px); top: .45rem; width: 10px; height: 10px; background: var(--amber); border-radius: 50%; }
.edu .yrs { font: 600 .85rem var(--f-display); color: var(--muted); }
.edu .deg { font: 700 1rem var(--f-display); color: var(--navy); display: block; }
.edu .plc { font-size: .92rem; color: var(--muted); }

.people { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2rem 1.5rem; }
.person { text-align: center; }
.person .avatar { margin: 0 auto .9rem; }
.avatar:has(img) { background: var(--paper); }
.person:nth-child(3n+2) .avatar { background: #1f3d66; }
.person:nth-child(3n) .avatar { background: #2c5282; }
.person h3 { margin: 0; font-size: 1rem; }
.person p { margin: .15rem auto 0; color: var(--muted); font-size: .9rem; }


/* ===== Collaboration ===== */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.4rem; }
.principles > div { padding-left: 1.2rem; border-left: 3px solid var(--amber); }
.principles p { color: var(--muted); margin: 0; }
.collab-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 1.6rem; align-items: start; }
.collab-groups h3 { font-size: .95rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--navy); padding-bottom: .6rem; }
.collab-groups ul { list-style: none; margin: 0; padding: 0; }
.collab-groups li { border-bottom: 1px solid var(--line); }
.collab-in { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; }
.c-text { display: grid; }
.avatar.c-photo { width: 56px; font-size: .95rem; flex: none; }
.c-name { font: 600 1rem var(--f-display); color: var(--navy); display: block; }
.c-title { font-weight: 500; color: var(--muted); font-size: .88rem; }
.c-uni { font-size: .92rem; color: var(--muted); }
.collab-groups a { text-decoration: none; }
.collab-groups a:hover .c-name { color: var(--amber); }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius); background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpolygon points='15,1 45,1 59,26 45,51 15,51 1,26' fill='none' stroke='%23d8e0ea' stroke-width='1.3'/%3E%3C/svg%3E");
  display: grid; place-items: center; color: var(--muted); font-size: .9rem;
}
.gallery-note { grid-column: 1 / -1; color: var(--muted); margin: .5rem 0 0; }
.insta {
  margin-top: 2.5rem; padding: 1.6rem 1.8rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.insta p { margin: 0; color: var(--muted); }

/* ===== News ===== */
.news { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.news-item time { font: 600 .92rem var(--f-display); color: var(--amber); }
.news-item p { color: var(--muted); }
.news-empty { padding: 3rem 2rem; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.news-empty p { margin-inline: auto; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; color: var(--navy); }
.req { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form input:not([type="checkbox"]), .form textarea {
  font: 400 1rem var(--f-body); padding: .75rem .9rem; border: 1.5px solid #c3cedc; border-radius: 8px;
  background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--amber-soft); }
.form textarea { resize: vertical; min-height: 140px; }
.form .check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; font-weight: 400; color: var(--muted); font-size: .9rem; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--navy); }
.form-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.ok { color: #1d7a46; } .form-status.err { color: #b3261e; }
.contact-info dl { margin: 0; display: grid; gap: 1.2rem; border-left: 3px solid var(--amber); padding-left: 1.4rem; }
.contact-info dt { font-size: .85rem; color: var(--muted); }
.contact-info dd { margin: .1rem 0 0; font: 600 1rem/1.45 var(--f-display); color: var(--navy); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: #b7c5d8; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr auto; gap: 2rem; align-items: start; }
.f-brand { font: 700 1.25rem var(--f-display); color: #fff; margin: 0 0 .3rem; }
.f-brand b { color: var(--amber); }
.f-tag { font-style: italic; margin: 0; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { color: #fff; }
.social { display: flex; gap: .6rem; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid #34507a; border-radius: 8px; }
.social a:hover { border-color: var(--amber); }
.social svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.social .dot { fill: #fff; stroke: none; }
.f-bottom { border-top: 1px solid #22385a; margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }
[data-social][hidden] { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .leader { grid-template-columns: auto 1fr; }
  .leader .edu { grid-column: 1 / -1; }
  .collab-groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: calc(var(--head) + env(safe-area-inset-top, 0px)) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1.25rem 1.5rem;
    max-height: calc(100vh - var(--head)); overflow-y: auto;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
  .lang { align-self: flex-start; }
  .hero-grid, .intro-grid, .story, .contact-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; margin-inline: auto; }
  .principles, .collab-groups { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .areas { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: .4rem; }
  .pub .text-link { justify-self: start; margin-top: .4rem; }
  .row2 { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; }
  .leader .avatar { width: 150px; }
  .news-item { grid-template-columns: 1fr; gap: .3rem; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .person .avatar { width: 108px; }
  .pub-count { margin-left: 0; }
  .brand-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #molecule .draw { stroke-dashoffset: 0; }
  #molecule .pop { opacity: 1; }
}
@media print {
  .site-header, .site-footer, .form, .map { display: none; }
  .view { display: block !important; }
}

/* ===== Profile icons (LinkedIn / AVESİS / e-mail) ===== */
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1.5px solid var(--line); color: var(--navy); background: #fff; transition: border-color .15s, color .15s, background .15s;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { border-color: var(--navy); }
.icon-btn.icon-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.links { gap: .6rem; }
.person-link { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); padding: .4rem 0; }
.person-link:hover h3 { color: #0a66c2; }
.ph-wrap { position: relative; display: block; width: max-content; margin: 0 auto .9rem; }
.ph-wrap .avatar { margin: 0; }
.li-badge {
  position: absolute; right: 4px; bottom: 10px; width: 30px; height: 30px; border-radius: 7px;
  background: #0a66c2; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--paper);
}
.li-badge svg { width: 17px; height: 17px; }
.person-link:hover .li-badge { transform: scale(1.08); }
.collab-in { position: relative; }
.c-ext { margin-left: auto; color: var(--muted); display: grid; }
.c-ext svg { width: 20px; height: 20px; }
a.collab-in:hover .c-ext { color: var(--amber); }

/* ===== Logo ===== */
.brand-logo { height: 84px; width: auto; display: block; margin-left: -8px; }
:root { --head: 104px; }
@media (max-width: 600px) { :root { --head: 82px; } .brand-logo { height: 66px; } }

/* ===== Student groups ===== */
.student-group { margin-top: 2.2rem; }
.student-group + .student-group { padding-top: 2.2rem; border-top: 1px solid var(--line); }
.group-title { font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.group-count { font: 600 .8rem var(--f-display); color: var(--navy); background: var(--amber-soft); border-radius: 999px; padding: .15rem .6rem; }


/* ===== Gallery: first photo featured ===== */
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure:first-child img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .gallery figure:first-child { grid-column: 1 / -1; grid-row: auto; } }

/* ===== Hero team photo ===== */
@media (min-width: 861px) { .hero-grid { grid-template-columns: 1fr 1.08fr; } }
.hero-photo { position: relative; margin: 0 0 0 1.5rem; }
.hero-photo::before {
  content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 2px solid var(--amber); border-radius: 18px; z-index: 0;
}
.hero-photo::after {
  content: ""; position: absolute; width: 92px; height: 106px; left: -2.2rem; top: -2rem; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 106'%3E%3Cpolygon points='46,2 90,27.5 90,78.5 46,104 2,78.5 2,27.5' fill='%2312294a'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-photo img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 18px; box-shadow: 0 24px 50px -28px rgba(18, 41, 74, .55);
  animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both .1s;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-figure figcaption { margin-top: 2.2rem; }
@media (max-width: 860px) {
  .hero-photo { margin: 1rem 1.2rem 0 1rem; }
  .hero-photo::after { width: 60px; height: 70px; left: -1rem; top: -1.2rem; }
  .hero-photo::before { inset: 1rem -1rem -1rem 1rem; }
  .hero-figure { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo img { animation: none; } }

/* ===== News cards ===== */
.news { display: grid; gap: 2.2rem; }
.news-filter { margin-bottom: .2rem; }
.news-card {
  display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(1.5rem, 3vw, 2.8rem); align-items: start;
  padding-bottom: 2.2rem; border-bottom: 1px solid var(--line);
}
.news-card:last-child { border-bottom: 0; }
.news-card.no-img { grid-template-columns: 1fr; }
.news-img { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -26px rgba(18,41,74,.5); }
.news-img img { width: 100%; height: auto; display: block; transition: transform .35s ease; }
.news-img:hover img { transform: scale(1.02); }
.news-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.news-cat { font: 600 .78rem var(--f-display); padding: .28rem .7rem; border-radius: 999px; background: var(--amber-soft); color: #7a4a00; }
.news-cat.cat-project { background: #dde9f6; color: var(--navy); }
.news-cat.cat-publication { background: #e3eee6; color: #23553a; }
.news-meta time { font-size: .9rem; color: var(--muted); }
.news-body h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: .8rem; }
.news-body p { color: var(--ink); }
.news-items { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .8rem; }
.news-items li { display: grid; gap: .2rem; padding: .9rem 1.1rem; background: var(--paper); border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; }
.ni-who { font: 700 .95rem var(--f-display); color: var(--navy); }
.ni-who em { font: italic 400 .85rem var(--f-body); color: var(--muted); margin-left: .3rem; }
.ni-title { font-size: .95rem; color: var(--ink); }
@media (max-width: 760px) {
  .news-card { grid-template-columns: 1fr; }
  .news-img { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .news-img img { transition: none; } }

/* ===== Collaboration page ===== */
.collab-hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(340px, 28vw, 480px); padding: 3rem 0;
  background: linear-gradient(180deg, #f9fafe 0%, #eef5fe 55%, #f3f8fe 100%);
}
.collab-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; aspect-ratio: 1600 / 533;
  background: url("../img/collab-banner.webp") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.collab-hero .lead { max-width: 44ch; }
@media (min-width: 761px) and (max-width: 1240px) {
  .collab-hero::before { -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, #000 52%); mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, #000 52%); }
}
.collab-hero > .wrap { width: min(var(--wrap), 100% - 2.5rem); }
.collab-hero-inner { position: relative; }
.collab-hero .lead { max-width: 48ch; font-size: 1.12rem; margin: 0; }
.eyebrow { font: 600 .8rem var(--f-display); letter-spacing: .22em; text-transform: uppercase; color: var(--navy); margin: 0 0 .9rem; }
.eyebrow::after { content: ""; display: block; width: 56px; height: 3px; background: var(--amber); border-radius: 2px; margin-top: .9rem; }
.collab-hero h1 { margin-bottom: .9rem; font-size: clamp(2rem, 4vw, 3.1rem); }
.collab-hero h1::after { display: none; }
.dot { color: var(--amber); }
.how-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.6rem; }
.how-card { border-radius: 16px; padding: 1.4rem 1.5rem 1.7rem; }
.how-card.tone-amber { background: #fdf6ec; --tone: #e79b12; }
.how-card.tone-blue { background: #eef4fb; --tone: #3577c4; }
.how-card.tone-green { background: #eef7f2; --tone: #2f9e6a; }
.how-num { display: flex; align-items: center; gap: .6rem; font: 500 .9rem var(--f-display); color: var(--tone); margin-bottom: 1rem; }
.how-num::after { content: ""; width: 28px; height: 1.5px; background: var(--tone); }
.how-row { display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; align-items: start; }
.how-icon { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -12px rgba(18,41,74,.35); }
.how-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--tone); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.how-card h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.how-card p { color: var(--muted); font-size: .97rem; margin: 0; }
.collab-cta {
  margin-top: 3.5rem; border-radius: 18px; padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.6rem, 4vw, 3rem);
  display: flex; align-items: center; gap: 2rem 3rem; flex-wrap: wrap;
  background: #eef3f9; border: 1px solid #dfe8f3;
}
.collab-cta h2 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.collab-cta p { margin: 0; color: var(--muted); }
.collab-cta .btn-amber { border-radius: 999px; padding: .95rem 1.7rem; box-shadow: 0 10px 24px -12px rgba(231,155,18,.8); }
@media (max-width: 960px) { .how-cards { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .collab-hero { display: block; min-height: 0; padding-top: 13.5rem; background: #f3f8fe; }
  .collab-hero::before { left: 0; right: auto; bottom: auto; height: 230px; aspect-ratio: auto; width: 100%; background-position: 72% center;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
}

#research .sec-head p { white-space: pre-line; max-width: 72ch; }

/* ===== Research tabs ===== */
.rtabs { margin-top: .4rem; }
.rt-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.rt-tabs button {
  font: 600 .95rem var(--f-display); color: #4a5568; background: #fff; border: 1.5px solid #e2e7ee;
  padding: .75rem 1.3rem; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.rt-tabs button:hover { border-color: var(--navy); color: var(--navy); }
.rt-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.rt-panel { --tone: #e79b12; --tone-ink: #e07f0e; --tone-bg: linear-gradient(135deg, #fff6ea, #fbe3c6); animation: rtIn .35s ease; }
.rt-panel.tone-blue { --tone: #7aa8d6; --tone-ink: #4a7fb5; --tone-bg: linear-gradient(135deg, #f1f7fe, #dceaf8); }
.rt-panel.tone-green { --tone: #5aae7c; --tone-ink: #3d8f63; --tone-bg: linear-gradient(135deg, #f1faf4, #dcefe3); }
@keyframes rtIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rt-main { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.rt-bar { display: block; width: 70px; height: 4px; border-radius: 2px; background: var(--tone); margin-bottom: 1.3rem; }
.rt-eyebrow { font: 600 .82rem var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; }
.rt-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; margin: 0 0 1.2rem; color: var(--navy); letter-spacing: -.01em; }
.rt-accent { display: block; color: var(--tone-ink); }
.rt-desc { font-size: 1.1rem; line-height: 1.75; color: var(--muted); margin: 0; max-width: 58ch; }
.rt-art { background: var(--tone-bg); border-radius: 24px; aspect-ratio: 16 / 11; display: grid; place-items: center; }
.rt-art svg { width: 68%; height: auto; }
.rt-focus { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid #e2e7ee; }
.rt-focus ul { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 2rem; }
.rt-focus strong { display: block; font: 700 1.05rem var(--f-display); color: var(--navy); margin-bottom: .35rem; }
.rt-focus span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) {
  .rt-main { grid-template-columns: 1fr; }
  .rt-art { max-width: 420px; aspect-ratio: 16 / 10; }
  .rt-focus ul { grid-template-columns: 1fr; }
  .rt-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1.25rem 2rem; padding: 0 1.25rem .3rem; scrollbar-width: none; }
  .rt-tabs button { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .rt-panel { animation: none; } }

.rt-art.has-img { overflow: hidden; box-shadow: 0 20px 44px -28px rgba(18,41,74,.5); }
.rt-art.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Footer brand: only "Gündoğdu Lab" larger */
.f-brand { font-size: 1.85rem; line-height: 1.2; margin-bottom: .45rem; }
.f-brand .tag { font-size: 1.25rem; vertical-align: .12em; margin-left: .2rem; }
.f-brand { text-transform: uppercase; letter-spacing: .04em; }
.f-brand .tag { text-transform: none; letter-spacing: 0; }

/* Collaboration hero: label same size as heading */
.collab-hero .eyebrow { font: 700 clamp(2rem, 4vw, 3.1rem)/1.15 var(--f-display); letter-spacing: -.01em; text-transform: none; color: var(--navy); margin-bottom: .2rem; }
.collab-hero .eyebrow::after { margin-top: 1rem; }
.f-brand .tag { display: block; margin: .25rem 0 0; font-size: 1.15rem; vertical-align: baseline; }
