/* ============================================================
   Openborders — redesign inspired by editorial podcast layouts
   Fonts: Geist (body/sans), Oswald (condensed caps), Fraunces (display serif)
   ============================================================ */

:root {
  --header-h: 76px;
  --bg: #f7f3eb;
  --bg-soft: #efece3;
  --ink: #1c1b1a;
  --muted: #6b675f;
  --line: #e3ddd0;
  --pill-bg: #ffffff;
  --navy: #2b3990;
  --red: #c8342b;
  --tile-radius: 10px;
  --font-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Oswald", "Arial Narrow", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h); /* room for the fixed header */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.cond {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

/* ---------- Header ----------
   Always the topmost layer, on every page, fully transparent. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  background: transparent;
}

/* ---------- Fixed hero stage (homepage) ----------
   Tile grid + explore pill form a fixed backdrop under the header;
   .scroll-content slides over the stage (but under the header),
   while JS fades the stage out as the user scrolls. */
.hero-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding-top: var(--header-h);
  overflow: hidden;
  transition: opacity .15s linear;
}

.scroll-content {
  position: relative;
  z-index: 2;
  /* body already reserves --header-h, so this lands exactly at 100vh */
  margin-top: calc(100vh - var(--header-h));
  background: var(--bg);
}

.brand img { height: 46px; width: auto; }

.ask-pill {
  flex: 1;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  background: var(--pill-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 17px;
  transition: box-shadow .2s, border-color .2s;
}
.ask-pill:hover { border-color: var(--navy); box-shadow: 0 4px 18px rgba(43, 57, 144, .12); }
.ask-pill .spark { color: var(--navy); font-size: 18px; }

.header-pills { display: flex; gap: 10px; }

.pill {
  border: 1px solid var(--line);
  background: var(--pill-bg);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-cond);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: background .2s, color .2s;
}
.pill:hover { background: var(--ink); color: var(--bg); }
.pill.lang b { color: var(--navy); }
.pill.lang:hover b { color: inherit; }

/* ---------- Hero tile grid ---------- */
.hero { padding: 10px 28px 0; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 1880px;
  margin: 0 auto;
}

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  background: none;
  border-radius: var(--tile-radius);
}
.tile:hover, .tile:focus-visible { z-index: 6; }

.tile-photo,
.tile-face {
  position: absolute;
  inset: 0;
  border-radius: var(--tile-radius);
  overflow: hidden;
}
.tile-photo { z-index: 1; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.tile-face  { z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .38s cubic-bezier(.2,.7,.2,1); }
.tile-photo img,
.tile-face img { width: 100%; height: 100%; object-fit: cover; }

.tile-photo {
  transform: translateX(0);
  transition: transform .38s cubic-bezier(.2,.7,.2,1);
}

/* vinyl-style reveal: logo sleeve slides left, student photo slides out right */
.tile:hover .tile-face,
.tile:focus-visible .tile-face { transform: translateX(-26%); }
.tile:hover .tile-photo,
.tile:focus-visible .tile-photo { transform: translateX(46%); }

.tile-chip {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(247, 243, 235, .9);
  color: var(--ink);
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.tile:hover .tile-chip { opacity: 1; }

.hero-footer {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 7;
  pointer-events: none;
}
.hero-footer .explore-pill { pointer-events: auto; }
.explore-pill {
  border: 1px solid var(--line);
  background: var(--pill-bg);
  border-radius: 999px;
  padding: 18px 34px;
  font-family: var(--font-cond);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 8px 26px rgba(0,0,0,.14);
}
.explore-pill:hover { background: var(--ink); color: var(--bg); }

/* ---------- Story statement section (inset "window" card) ---------- */
.story {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  /* inset from the page edges like the rest of the content */
  margin: 40px 28px 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 120px 56px 64px;
  color: #f8f4ec;
  background: url("../img/story-bg.jpg") center 30% / cover no-repeat;
}
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 20, 34, .25) 30%, rgba(18, 20, 34, .72));
}
.story > * { position: relative; }
.story .kicker { font-family: var(--font-cond); letter-spacing: .18em; font-size: 14px; opacity: .85; }
.story h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.05;
  margin: 18px 0 22px;
  max-width: 900px;
}
.story p { max-width: 640px; margin: 0 0 34px; font-size: 19px; opacity: .92; }
.story .pill { background: transparent; color: #f8f4ec; border-color: rgba(248,244,236,.5); padding: 15px 30px; }
.story .pill:hover { background: #f8f4ec; color: var(--ink); }

/* ---------- University logo marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
  /* fade the strip out at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 76px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 170px;
  height: 72px;
}
.marquee-track img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* monochrome: desaturate, then flatten to near-black ink */
  filter: grayscale(1) brightness(.35) contrast(1.35);
  opacity: .55;
  transition: filter .3s, opacity .3s;
}
.marquee-item:hover img { filter: none; opacity: 1; }
@keyframes marquee-scroll {
  to { transform: translateX(calc(-50% - 38px)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Featured placement (Discover-Episodes-style) ---------- */
.featured-placement {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.featured-placement .f-photo {
  border: 0;
  padding: 0;
  background: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
}
.featured-placement .f-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s;
}
.featured-placement .f-photo:hover img { transform: scale(1.03); }
.featured-placement .f-uni {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 12px;
}
.featured-placement h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 48px);
  margin: 0 0 16px;
}
.featured-placement .f-excerpt { color: var(--muted); font-size: 18px; margin: 0 0 26px; }

/* ---------- Generic sections ---------- */
.section { padding: 80px 28px; max-width: 1400px; margin: 0 auto; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.section-head h3 {
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
}
.section-head a { color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line); }

.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.placement-card {
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  border-radius: var(--tile-radius);
}
.placement-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--tile-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: transform .3s;
}
.placement-card:hover img { transform: translateY(-6px); }
.placement-card h4 { margin: 14px 0 2px; font-size: 18px; }
.placement-card span { color: var(--muted); font-size: 15px; }

.program-row { display: flex; flex-wrap: wrap; gap: 12px; }
.program-row .pill { padding: 14px 26px; font-size: 14px; }

/* ---------- About (Hakkımızda) page ----------
   Fixed hero image; .scroll-content slides up over it. */
.about-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 12vh;
  /* near-square photo with a centred subject */
  background: url("../img/about-hero.jpg") center 30% / cover no-repeat;
}
.about-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 20, 34, .30) 35%, rgba(18, 20, 34, .78));
}
.about-stage-inner { position: relative; max-width: 900px; color: #f8f4ec; }
.about-stage-inner h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 86px);
  line-height: 1.03;
  margin: 0 0 16px;
}
.about-stage-inner .lead {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: clamp(15px, 1.8vw, 20px);
  margin: 0;
  opacity: .92;
}

.about-intro {
  max-width: 860px;
  margin: 0 auto;
  padding: 74px 28px 20px;
}
.about-intro p { font-size: 18px; margin: 0 0 18px; }
.about-intro p:first-child { font-size: 21px; }

.section-intro {
  max-width: 720px;
  margin: -14px 0 30px;
  color: var(--muted);
  font-size: 18px;
}

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.partner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  text-align: center;
}
.partner-logo {
  height: 74px;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 10px, #f3efe6 10px, #f3efe6 20px);
  margin-bottom: 14px;
}
.partner-card h4 {
  margin: 0;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  color: var(--muted);
}

/* Parent quotes (no photos) */
.quotes-section { padding-top: 20px; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 30px;
  position: relative;
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 22px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--line);
}
.quote-card p {
  position: relative;
  margin: 14px 0 18px;
  font-size: 17px;
  line-height: 1.6;
}
.quote-card cite {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}
.quotes-note { margin-top: 26px; color: var(--muted); font-size: 15px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto 10px;
  padding: 32px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--navy);
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}
.service-card h4 {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 16px;
  margin: 0 0 10px;
}
.service-card p { margin: 0; color: var(--muted); font-size: 16px; }

.about-block {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 28px;
}
.about-block h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 16px;
}
.about-block p { font-size: 18px; margin: 0 0 16px; }
.about-block + .signup { margin-top: 60px; }

/* ---------- Sign-in page ---------- */
.auth-card {
  max-width: 460px;
  margin: 8vh auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 44px 40px;
  text-align: center;
}
.auth-card h1 { font-family: var(--font-display); font-weight: 500; font-size: 34px; margin: 0 0 8px; }
.auth-card p { color: var(--muted); margin: 0 0 24px; }
.auth-card input { width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg); margin-bottom: 14px; }
.auth-card .pill { width: 100%; background: var(--navy); color: #fff; border-color: var(--navy); padding: 15px; }
.auth-card .pill:hover { background: var(--ink); border-color: var(--ink); }
.auth-card .switch { margin-top: 20px; font-size: 14px; }
.auth-card .switch a { color: var(--navy); border-bottom: 1px solid var(--line); }
.auth-msg { margin-top: 16px; font-size: 15px; }
.auth-msg.ok { color: #1f7a4d; }
.auth-msg.err { color: var(--red); }

/* ---------- MaiA ---------- */
[hidden] { display: none !important; }
.maia-wrap { max-width: 900px; margin: 0 auto; padding: 20px 20px 40px; min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; }
.maia-head { text-align: center; padding: 18px 0 8px; }
.maia-head h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4vw, 44px); margin: 0; }
.maia-head .spark { color: var(--navy); }
.maia-head p { color: var(--muted); margin: 6px 0 0; }

/* intake form */
.intake { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; margin: 18px 0; }
.intake .q { margin-bottom: 24px; }
.intake .q:last-of-type { margin-bottom: 8px; }
.intake label.qlabel { display: block; font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.intake .opts { display: flex; flex-wrap: wrap; gap: 10px; }
.intake .opt { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 10px 18px; cursor: pointer; font-size: 15px; }
.intake .opt input { position: absolute; opacity: 0; pointer-events: none; }
.intake .opt.sel { background: var(--navy); color: #fff; border-color: var(--navy); }
.intake input[type=text], .intake input[type=number], .intake select { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg); }
.intake .budget-row { display: flex; gap: 10px; }
.intake .budget-row input { flex: 1; }
.intake .start-btn { width: 100%; margin-top: 8px; background: var(--navy); color: #fff; border-color: var(--navy); padding: 15px; }
.intake .start-btn:hover { background: var(--ink); border-color: var(--ink); }

/* chat */
.chat { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 10px 0 20px; }
.msg { max-width: 82%; padding: 14px 18px; border-radius: 16px; font-size: 16px; line-height: 1.55; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.maia { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
.prog-cards { align-self: flex-start; width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 2px 0 6px; }
.prog-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.prog-card:hover { border-color: var(--navy); box-shadow: 0 6px 20px rgba(31,42,99,.10); transform: translateY(-2px); }
.prog-card h4 { margin: 0 0 4px; font-size: 15px; }
.prog-card .uni { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--navy); }
.prog-card .meta { color: var(--muted); font-size: 13px; margin-top: 8px; }
.prog-card .prog-more { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--navy); opacity: .75; }
a.prog-card:hover .prog-more { opacity: 1; }
.chat-bar { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; display: flex; gap: 10px; }
.chat-bar input { flex: 1; padding: 15px 20px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.chat-bar .pill { background: var(--navy); color: #fff; border-color: var(--navy); padding: 15px 26px; }
.chat-actions { display: flex; justify-content: center; padding-bottom: 10px; }
.finish-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 12px 24px; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.finish-btn:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 720px) {
  .prog-cards { grid-template-columns: 1fr; }
  .msg { max-width: 90%; }
}

/* ---------- All-students page ---------- */
.students-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.page-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5vw, 64px); margin: 20px 0 10px; }
.page-lead { color: var(--muted); font-size: 20px; margin: 0 0 44px; max-width: 720px; }

/* ---------- Appointment CTA ---------- */
.signup {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.signup-inner { max-width: 760px; margin: 0 auto; padding: 86px 28px; text-align: center; }
.signup h3 { font-family: var(--font-display); font-size: 40px; font-weight: 500; margin: 0 0 12px; }
.signup p { color: var(--muted); margin: 0 auto 30px; max-width: 560px; font-size: 18px; }
.signup .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.signup .pill.primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  padding: 17px 34px;
  font-size: 15px;
}
.signup .pill.primary:hover { background: var(--ink); border-color: var(--ink); }
.signup .pill.ghost { padding: 17px 34px; font-size: 15px; }
.signup .note { font-size: 14px; margin-top: 18px; color: var(--muted); }
.signup .note a { border-bottom: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer {
  background: #191d33;
  color: #d8d5cc;
  padding: 70px 28px 40px;
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid img { height: 44px; filter: brightness(0) invert(1); opacity: .9; }
.footer-grid h5 {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  color: #8f94b8;
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 15px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  max-width: 1400px;
  margin: 50px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: #8f94b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Student story modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(20, 20, 20, .55);
}
.overlay.open { display: flex; }

.story-modal {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  width: min(1120px, 100%);
  max-height: min(760px, 92vh);
  background: #efece5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.story-modal .text {
  padding: 56px 52px;
  overflow-y: auto;
}
.story-modal h3 { font-size: 42px; margin: 0 0 24px; font-weight: 700; }
.story-modal .uni {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 18px;
}
.story-modal p { font-size: 19px; margin: 0 0 18px; }
.story-modal .photo { min-height: 420px; }
.story-modal .photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

/* ---------- Menu modal ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: #191d33;
  color: #f8f4ec;
  padding: 30px 40px;
  overflow-y: auto;
}
.menu-overlay.open { display: block; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-top img { height: 44px; filter: brightness(0) invert(1); }
.menu-list {
  list-style: none;
  margin: 8vh auto 0;
  padding: 0;
  max-width: 860px;
  columns: 2;
  column-gap: 80px;
}
.menu-list li { break-inside: avoid; border-bottom: 1px solid rgba(248,244,236,.14); }
.menu-list a {
  display: block;
  padding: 20px 4px;
  font-family: var(--font-cond);
  font-size: clamp(22px, 2.6vw, 32px);
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: color .2s, padding-left .2s;
}
.menu-list a:hover { color: #ffb43a; padding-left: 14px; }
.menu-close {
  border: 1px solid rgba(248,244,236,.4);
  background: transparent;
  color: #f8f4ec;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--font-cond);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.menu-close:hover { background: #f8f4ec; color: #191d33; }

/* ---------- Inner pages (register / hakkımızda) ---------- */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 70px 28px 110px; }
.page-wrap h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5vw, 64px); margin: 0 0 14px; }
.page-wrap .lead { color: var(--muted); font-size: 20px; margin-bottom: 44px; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 42px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.form-card input, .form-card select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--bg);
}
.form-card .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.form-card .consent input { width: auto; margin-top: 3px; }
.form-card .pill { width: 100%; margin-top: 8px; background: var(--navy); color: #fff; border-color: var(--navy); padding: 16px; font-size: 15px; }
.form-card .pill:hover { background: var(--ink); border-color: var(--ink); }
.maia-note {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Embedded external form (referans / sporcu) ---------- */
.form-embed { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; overflow: hidden; }
.form-embed iframe { width: 100%; border: 0; display: block; border-radius: 10px; }
.form-fallback { font-size: 14px; color: var(--muted); margin-top: 16px; }
.form-fallback a { color: var(--navy); border-bottom: 1px solid var(--line); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-item { margin-bottom: 26px; }
.contact-item .k { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--navy); margin-bottom: 5px; }
.contact-item .v { font-size: 17px; line-height: 1.5; color: var(--ink); }
.contact-item .v a { color: var(--ink); border-bottom: 1px solid var(--line); }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.social-row a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; color: var(--navy); text-decoration: none; transition: border-color .15s, transform .15s; }
.social-row a:hover { border-color: var(--navy); transform: translateY(-1px); }
.contact-cta { display: inline-block; margin-top: 8px; background: var(--navy); color: #fff; text-decoration: none; padding: 14px 26px; border-radius: 999px; font-size: 15px; }
.contact-cta:hover { background: var(--ink); }
.contact-map { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Legal / policy prose (çerez, KVKK) ---------- */
.legal { max-width: 780px; }
.legal .legal-note { font-size: 13px; color: var(--muted); margin: -30px 0 40px; font-style: italic; }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 3vw, 28px); margin: 40px 0 12px; }
.legal p { color: var(--ink); font-size: 16px; line-height: 1.75; margin: 0 0 16px; }
.legal ul { margin: 0 0 20px; padding-left: 22px; }
.legal li { color: var(--ink); font-size: 16px; line-height: 1.7; margin-bottom: 9px; }
.legal a { color: var(--navy); border-bottom: 1px solid var(--line); }
.legal .callout { background: var(--bg-soft); border-left: 3px solid var(--navy); padding: 14px 18px; border-radius: 8px; margin: 0 0 20px; color: var(--ink); }
.legal .tbl-wrap { overflow-x: auto; margin: 8px 0 24px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* fixed hero stage doesn't fit small screens — fall back to normal flow */
  .hero-stage { position: static; padding-top: 0; overflow: visible; opacity: 1 !important; }
  .hero-footer { position: static; margin: 22px 0 8px; }
  .scroll-content { margin-top: 0; }
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
  .card-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-placement { grid-template-columns: 1fr; gap: 26px; }
  .students-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  /* fixed hero doesn't suit small screens — fall back to normal flow */
  .about-stage {
    position: static;
    min-height: 62vh;
    padding: 120px 24px 40px;
  }
  main.scroll-content { margin-top: 0; }
}
@media (max-width: 720px) {
  :root { --header-h: 148px; }
  .site-header { flex-wrap: wrap; }
  .ask-pill { order: 3; max-width: none; width: 100%; }
  .students-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .story-modal { grid-template-columns: 1fr; max-height: 92vh; }
  .story-modal .photo { min-height: 280px; order: -1; }
  .menu-list { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .story { margin: 24px 16px 0; padding: 90px 24px 44px; border-radius: 14px; }
  .marquee-item { width: 130px; height: 58px; }
  .marquee-track { gap: 46px; }
  .signup .cta-row { flex-direction: column; }
  .service-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
