:root {
  --ink: #142033;
  --navy: #0e1826;
  --navy-soft: #172536;
  --paper: #f6f1e8;
  --paper-2: #efe7da;
  --white: #fbf8f3;
  --red: #9d1c31;
  --brass: #c6a36a;
  --brass-soft: #e6d3b0;
  --muted: #5d6773;
  --line: rgba(20, 32, 51, 0.12);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --pad: clamp(20px, 4.5vw, 72px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: white; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.skip { position: absolute; top: -80px; left: 16px; background: white; padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(246, 241, 232, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(14, 24, 38, 0.04);
}
@media (min-width: 861px) {
  .site-header { backdrop-filter: blur(16px); }
}
.brand { display: inline-flex; align-items: baseline; gap: 7px; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.brand b { font-weight: 600; }
.brand i { color: var(--red); font-style: normal; }
#menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
  cursor: pointer;
}
#menu span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s;
}
#menu span:first-child { top: 18px; }
#menu span:last-child { top: 25px; }
#menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(40deg); }
#menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-40deg); }
nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
nav a { position: relative; }
nav a:not(.contact-link)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
nav a:not(.contact-link):hover::after { transform: scaleX(1); }
.contact-link {
  border: 1px solid var(--ink);
  padding: 9px 16px;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.contact-link:hover { background: var(--navy); color: var(--paper); }

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  min-height: calc(100vh - 78px);
  min-height: calc(100dvh - 78px);
  background: var(--navy);
  color: var(--paper);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(28px, 6vw, 88px) 56px;
  max-width: 760px;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass);
}
.hero-name {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
h1, h2, .quote blockquote, .book-list h3, .contact > a {
  font-family: var(--serif);
  font-weight: 500;
}
h1 {
  margin: 0;
  font-size: clamp(52px, 5.6vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
h1 em {
  font-style: italic;
  font-weight: 450;
  color: var(--brass-soft);
}
.intro {
  max-width: 440px;
  margin: 26px 0 0;
  color: rgba(246, 241, 232, 0.74);
  font-weight: 300;
  font-size: 18px;
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  color: var(--navy);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--brass-soft); }
.hero-secondary {
  font-size: 14px;
  border-bottom: 1px solid rgba(230, 211, 176, 0.7);
  padding-bottom: 3px;
}
.hero-secondary:hover { color: var(--brass-soft); }
.hero-foot { display: flex; align-items: flex-end; gap: 22px; margin-top: 42px; }
.hero-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.55);
}
.hero-visual { position: relative; min-height: 640px; overflow: hidden; background: #d9d4cb; }
.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.camera-inset {
  position: relative;
  width: 168px;
  flex: none;
  margin: 0;
  background: #0a121c;
  border: 1px solid rgba(198, 163, 106, 0.35);
}
.camera-inset img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
  object-position: center 18%;
}
.camera-inset figcaption {
  padding: 12px 14px 14px;
  color: var(--brass-soft);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.45;
}
.photo-index { display: none; }
.intro { max-width: min(440px, 100%); }

.highlights {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.highlights div { padding: 28px 26px; border-right: 1px solid var(--line); }
.highlights div:last-child { border-right: 0; }
.highlights strong {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.highlights span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.section { width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 0 auto; padding: 88px 0; }
h2 { margin: 0 0 22px; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.25; font-weight: 500; }
.lead { font-family: var(--serif); font-size: 26px; line-height: 1.35; color: var(--ink); margin: 0 0 18px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--red);
  padding-bottom: 3px;
}
.text-link::after { content: "→"; transition: transform 0.2s; }
.text-link:hover::after { transform: translateX(4px); }

.about { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 80px; align-items: center; }
.about-image { position: relative; }
.about-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-image > span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  background: rgba(14, 24, 38, 0.88);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.about p:not(.eyebrow):not(.lead) { color: var(--muted); margin: 0 0 14px; }

.memory-feature {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  background: var(--navy);
  color: var(--paper);
  min-height: 520px;
}
.memory-feature > img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; object-position: 38% center; }
.memory-copy { align-self: center; padding: 64px clamp(28px, 5vw, 72px); }
.memory-copy h2 { font-size: clamp(36px, 3.5vw, 52px); }
.memory-copy p:not(.eyebrow) { color: rgba(246, 241, 232, 0.72); max-width: 360px; }
.memory-copy .text-link { border-color: var(--brass); color: var(--brass-soft); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}
.section-heading > p { max-width: 340px; margin: 0 0 8px; color: var(--muted); font-size: 16px; }
.journey-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 64px; align-items: start; }
.journey-photo { margin: 0; position: sticky; top: 108px; }
.journey-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 37% center; }
.journey-photo figcaption { margin-top: 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.timeline { border-top: 1px solid var(--line); }
.timeline article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.year { font-family: var(--serif); font-size: 18px; color: var(--red); padding-top: 4px; }
.timeline h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.timeline p { margin: 0; color: var(--muted); max-width: 640px; }

.books {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  padding: 88px 0;
  background: transparent;
  color: var(--ink);
}
.books .section-heading { width: min(var(--max), 100%); margin-left: auto; margin-right: auto; }
.books .section-heading > p { color: var(--muted); }
.book-list {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.book-list article {
  min-height: 240px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--paper);
}
.book-list article > span { font-size: 12px; letter-spacing: 0.16em; color: var(--brass); }
.book-list h3 {
  margin: auto 0 12px;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.book-list h3 span { color: var(--brass-soft); font-style: italic; }
.book-list p { margin: 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246, 241, 232, 0.62); }
.books-note {
  width: min(640px, 100%);
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.education-card { background: var(--white); border: 1px solid var(--line); }
.editorial-image { overflow: hidden; aspect-ratio: 1.45; background: #ddd; }
.editorial-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; transition: transform 0.6s ease; }
.editorial-image .soylesi-photo { object-position: center 62%; }
.education-card:hover img { transform: scale(1.04); }
.editorial-content { padding: 28px 30px 32px; }
.category { display: block; margin-bottom: 12px; color: var(--red); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.editorial-content h3 { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: -0.03em; }
.editorial-content p { margin: 0; color: var(--muted); }
.media-feature {
  margin-top: 48px;
  padding: 36px 0 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.media-feature h3 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.03em; max-width: 460px; }
.media-feature p:not(.eyebrow) { margin: 0; color: var(--muted); max-width: 460px; }
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0;
}
.brand-card:hover span { color: var(--red); }
.brand-card img { width: min(100%, 180px); height: auto; aspect-ratio: 1; object-fit: contain; display: block; }
.brand-card span { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

.quote {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 72px 0;
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote blockquote {
  max-width: 920px;
  margin: 8px 0 18px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-style: italic;
}
.quote blockquote p { margin: 0; }
.quote > span { letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px; color: var(--muted); }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 28px; }
.gallery-filters button {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 8px 0;
  cursor: pointer;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.gallery-filters button.active { color: var(--ink); border-bottom-color: var(--red); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  text-align: left;
  min-width: 0;
}
.gallery-item[hidden] { display: none; }
.photo-frame { display: block; overflow: hidden; background: #ddd; }
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item[data-category="saha"] img { object-position: center 20%; }
.gallery-item[data-photo$="soylesi.jpg"] img { object-position: center 62%; }
.gallery-item[data-photo$="anitkabir-defter.jpg"] img { object-position: 40% center; }
.gallery-item[data-photo$="anitkabir-toren.jpg"] img,
.gallery-item[data-photo$="anitkabir-celenk.jpg"] img { object-position: center 40%; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item > span {
  display: block;
  padding: 12px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.archive { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: end; padding-top: 0; }
.archive-links a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.archive-links a:last-child { border-bottom: 1px solid var(--line); }
.archive-links span { grid-row: span 2; color: var(--red); font-family: var(--serif); font-size: 18px; }
.archive-links strong { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.archive-links small { grid-column: 2; color: var(--muted); font-size: 14px; }
.archive-links a::after { content: "→"; font-size: 18px; transition: transform 0.2s; }
.archive-links a:hover::after { transform: translateX(6px); }
.archive-links a:hover strong { color: var(--red); }

.contact {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 88px var(--pad);
  background: var(--navy);
  color: var(--paper);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}
.contact h2 { margin-bottom: 12px; }
.contact p:not(.eyebrow) { margin: 0; color: rgba(246, 241, 232, 0.7); }
.contact > a {
  font-size: clamp(28px, 3.4vw, 48px);
  font-style: italic;
  border-bottom: 1px solid var(--brass);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.contact > a:hover { color: var(--brass-soft); }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px var(--pad);
  background: #0a121c;
  color: rgba(246, 241, 232, 0.78);
  font-size: 13px;
  letter-spacing: 0.04em;
}
footer p { margin: 0; color: rgba(246, 241, 232, 0.5); }
footer a:hover { color: var(--brass-soft); }

#lightbox {
  width: min(1080px, 94vw);
  max-height: 94dvh;
  border: 0;
  padding: 22px 24px 18px;
  background: var(--navy);
  color: var(--paper);
}
#lightbox::backdrop { background: rgba(6, 10, 16, 0.86); }
.lightbox-top, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-top p { margin: 0; font-family: var(--serif); font-size: 22px; }
#lightbox button {
  border: 1px solid rgba(230, 211, 176, 0.4);
  background: transparent;
  color: var(--paper);
  padding: 8px 14px;
  cursor: pointer;
}
#lightbox button:hover { border-color: var(--brass); color: var(--brass-soft); }
#full-photo { width: 100%; height: min(70dvh, 720px); object-fit: contain; display: block; margin: 16px 0; background: #0a121c; }
.lightbox-controls { justify-content: center; }
.lightbox-controls span { min-width: 64px; text-align: center; letter-spacing: 0.12em; font-size: 13px; }
.modal-open, .nav-open { overflow: hidden; }

@media (max-width: 1100px) {
  nav { gap: 16px; font-size: 13px; }
  .about, .journey-layout, .archive { gap: 36px; }
  .memory-copy { padding: 40px 32px; }
  .book-list { gap: 12px; }
  .media-feature { grid-template-columns: 1fr 1fr; }
  .media-feature > div { grid-column: 1 / -1; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  #menu { display: block; z-index: 32; }
  nav {
    display: none;
    position: fixed;
    inset: 78px 0 0 0;
    z-index: 31;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 28px var(--pad) 40px;
    background: var(--paper);
    font-size: 28px;
    font-family: var(--serif);
  }
  nav.open { display: flex; }
  nav a:not(.contact-link)::after { display: none; }
  .contact-link { margin-top: 12px; font-family: var(--sans); font-size: 15px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 48px var(--pad) 36px; }
  .hero-foot { align-items: flex-start; }
  h1 { font-size: 52px; }
  .hero-visual { min-height: 92vw; max-height: 520px; }
  .camera-inset { width: 148px; }
  .camera-inset img { height: 100px; }
  .highlights {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    margin-top: 8px;
    grid-template-columns: 1fr 1fr;
  }
  .highlights div:nth-child(2) { border-right: 0; }
  .highlights div:nth-child(1),
  .highlights div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .about, .memory-feature, .journey-layout, .editorial-grid, .archive, .contact {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
  .about { gap: 28px; }
  .memory-feature > img { min-height: 0; aspect-ratio: 16 / 10; }
  .journey-photo { position: static; }
  .journey-photo img { aspect-ratio: 16 / 10; }
  .timeline article { grid-template-columns: 1fr; gap: 6px; }
  .section-heading { display: block; }
  .book-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .book-list article { scroll-snap-align: start; min-height: 240px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .contact { align-items: flex-start; }
  footer { flex-wrap: wrap; }
}

.videos h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 14px 0 6px; }
.videos article p { margin: 0; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.books-note p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
