/* ============================================================
   THE IPEK CHRONICLE — Klasik vintage gazete stylesheet
   ============================================================ */

:root {
  --paper: #f1e7cf;
  --paper-shadow: #e6d9b8;
  --paper-edge: #d4c393;
  --ink: #1a1612;
  --ink-soft: #3a3024;
  --ink-faded: #6b5f4d;
  --rule: #2a241c;
  --accent: #8b1a1a;
  --stain: rgba(120, 80, 30, 0.08);

  --serif-display: 'Playfair Display', 'Old Standard TT', Georgia, serif;
  --serif-body: 'Old Standard TT', 'Playfair Display', Georgia, serif;
  --blackletter: 'UnifrakturMaguntia', 'Old Standard TT', serif;
  --display-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --handwriting: 'Caveat', cursive;
  --typewriter: 'Special Elite', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #2a241c;
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.5;
}

/* ---- Paper background with subtle texture ---- */
.paper {
  max-width: 1180px;
  margin: 24px auto;
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(120, 80, 30, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 60%, rgba(140, 90, 30, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 90%, rgba(100, 70, 25, 0.05) 0%, transparent 45%),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 2px,
      rgba(60, 40, 20, 0.012) 2px,
      rgba(60, 40, 20, 0.012) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 2px,
      rgba(60, 40, 20, 0.012) 2px,
      rgba(60, 40, 20, 0.012) 3px
    );
  padding: 28px 40px 40px;
  box-shadow:
    0 0 0 1px var(--paper-edge) inset,
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Coffee stain easter egg target */
.paper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--stain-overlay, none);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.paper.stained::after { opacity: 1; }

/* Aged paper edges — burned/torn look */
.paper::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  box-shadow:
    inset 0 0 60px rgba(80, 50, 20, 0.15),
    inset 0 0 120px rgba(60, 30, 10, 0.08);
}

/* ============================================================
   MAGICAL PARTICLES — floating golden dust
   ============================================================ */
.magic-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}
.magic-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.6), rgba(218, 165, 32, 0));
  border-radius: 50%;
  animation: particle-float linear infinite;
  opacity: 0;
}
@keyframes particle-float {
  0% { opacity: 0; transform: translateY(100vh) rotate(0deg); }
  15% { opacity: 0.4; }
  85% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20px) rotate(180deg); }
}

/* ============================================================
   MASTHEAD — golden shimmer animation
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@media (prefers-reduced-motion: reduce) {
  .magic-particle, .ticker-content { animation: none; }
  .masthead h1 { animation: none; -webkit-text-fill-color: var(--ink); }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   SCROLL REVEAL — sections fade in as you scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ENCHANTED EFFECTS — Daily Prophet style
   ============================================================ */

/* Project icons breathe slightly on hover — like moving photos */
.project-icon img {
  transition: transform 1.5s ease;
}
.project:hover .project-icon img {
  transform: scale(1.06);
}

/* Subtle paper grain animation */
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, -1px); }
}
.paper {
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 10%, rgba(120, 80, 30, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 60%, rgba(140, 90, 30, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 90%, rgba(100, 70, 25, 0.05) 0%, transparent 45%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(60, 40, 20, 0.012) 2px, rgba(60, 40, 20, 0.012) 3px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 2px, rgba(60, 40, 20, 0.012) 2px, rgba(60, 40, 20, 0.012) 3px) !important;
  background-color: var(--paper) !important;
}

/* Section bars draw in from left */
.section-bar {
  background: linear-gradient(to right, var(--ink) 0%, var(--ink) 100%) no-repeat top left / 0% 3px;
  transition: background-size 0.8s ease;
}
.section-bar.visible {
  background-size: 100% 3px;
}

/* Enchanted underline on hover — ink draws itself */
.project-title {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease;
  padding-bottom: 2px;
}
.project:hover .project-title {
  background-size: 100% 1px;
  text-decoration: none !important;
}

/* Career row hover — ink warmth */
.career-logo img {
  transition: filter 0.5s ease;
}
.career-row:hover .career-logo img {
  filter: grayscale(0.5) contrast(1.1) sepia(0.1);
}

/* Photo frame — film flicker effect */
@keyframes flicker {
  0%, 97%, 100% { opacity: 1; }
  97.5% { opacity: 0.92; }
  98% { opacity: 1; }
  98.5% { opacity: 0.95; }
  99% { opacity: 1; }
}
.photo-frame video {
  animation: flicker 8s infinite;
}

/* Ink drops — random tiny splatters */
.ink-drop {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--ink);
  border-radius: 50%;
  opacity: 0;
  animation: ink-appear 0.3s ease forwards;
  pointer-events: none;
  z-index: 40;
}
.ink-drop::after {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 50%;
  top: -2px;
  left: 3px;
  opacity: 0.5;
}
@keyframes ink-appear {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 0.12; transform: scale(1.2); }
  100% { opacity: 0.08; transform: scale(1); }
}

/* ============================================================
   TOP STRIP — folio, date, weather, language toggle
   ============================================================ */
.folio {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
}
.folio .left { text-align: left; }
.folio .center { text-align: center; }
.folio .right { text-align: right; display: flex; gap: 14px; justify-content: flex-end; align-items: center; }
.folio .weather { display: inline-flex; gap: 6px; align-items: center; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--ink);
  font-family: var(--typewriter);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  padding: 3px 8px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  text-align: center;
  padding: 14px 0 10px;
  border-bottom: 4px double var(--ink);
  position: relative;
}
.masthead-rules {
  border-top: 1px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  padding: 0;
  margin-bottom: 6px;
}
.masthead h1 {
  font-family: var(--blackletter);
  font-size: 88px;
  margin: 6px 0 2px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: var(--ink);
  background: linear-gradient(
    90deg,
    var(--ink) 0%,
    var(--ink) 40%,
    #6b5520 48%,
    #8b6914 50%,
    #6b5520 52%,
    var(--ink) 60%,
    var(--ink) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 10s ease-in-out infinite;
}
.masthead-author {
  font-family: var(--display-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
.masthead .latin {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
.masthead .tagline {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 15px;
  margin-top: 4px;
  color: var(--ink-soft);
}

/* Sub-folio under masthead */
.sub-folio {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--typewriter);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 14px;
}
.sub-folio .center { font-weight: bold; letter-spacing: 0.3em; }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.ticker-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--ink);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--ink);
}
.ticker-label {
  background: var(--accent);
  color: var(--paper);
  font-family: var(--typewriter);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ticker-label::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, var(--accent), transparent);
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}
.ticker-content {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
}
.ticker-content span {
  padding: 0 24px;
  border-right: 1px solid var(--ink-faded);
}
.ticker-content span::before {
  content: '● ';
  color: var(--accent);
  font-size: 8px;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-wrap:hover .ticker-content {
  animation-play-state: paused;
}

/* ============================================================
   SECTION HEADERS (kicker bars)
   ============================================================ */
.section-bar {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 4px 0 3px;
  margin: 28px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--typewriter);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--ink-soft);
}
.section-bar .title {
  font-family: var(--display-serif);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}

/* ============================================================
   LEAD STORY (Hakkımda)
   ============================================================ */
.lead {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}
.lead-text .kicker {
  font-family: var(--typewriter);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 6px;
}
.lead-text h2 {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.95;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.lead-text .deck {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink-soft);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-faded);
}
.lead-text .byline {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.lead-body {
  column-count: 2;
  column-gap: 22px;
  column-rule: 1px solid var(--ink-faded);
  font-size: 14px;
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
}
.lead-body p { margin: 0 0 10px; text-indent: 1.2em; }
.lead-body p:first-of-type { text-indent: 0; }
.lead-body p:first-of-type::first-letter {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 0.85;
  float: left;
  padding: 4px 8px 0 0;
  color: var(--ink);
}

/* Lead photo */
.lead-photo {
  display: flex;
  flex-direction: column;
}
.photo-frame {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--paper-shadow);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--ink);
  transition: box-shadow 0.6s;
}
.photo-frame:hover {
  box-shadow: 0 0 0 1px var(--ink), 0 0 20px rgba(218, 165, 32, 0.12);
}
.photo-frame img,
.photo-frame video {
  width: 100%;
  display: block;
  /* Halftone newspaper look */
  filter: grayscale(1) contrast(1.25) brightness(0.92) sepia(0.18);
  mix-blend-mode: multiply;
}
.photo-frame::after {
  /* Halftone dot overlay */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20, 16, 10, 0.55) 0.7px, transparent 1.2px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: 0.6;
  pointer-events: none;
}
.photo-caption {
  font-family: var(--typewriter);
  font-size: 11px;
  line-height: 1.35;
  padding: 6px 2px 0;
  color: var(--ink-soft);
  border-top: 1px solid var(--ink);
  margin-top: 6px;
}
.photo-caption b { color: var(--ink); letter-spacing: 0.05em; }

/* ============================================================
   PROJECTS — uniform card grid
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.project {
  cursor: pointer;
  transition: background 0.15s;
  padding: 18px 20px;
  border-right: 1px solid var(--ink-faded);
  border-bottom: 1px solid var(--ink-faded);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.project:nth-child(3n) { border-right: 0; }
.project:hover { background: rgba(139, 26, 26, 0.04); }
/* enchanted underline handled above */

/* App icon */
.project-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-shadow);
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.2) brightness(0.92) sepia(0.15);
  mix-blend-mode: multiply;
}
.project-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20, 16, 10, 0.5) 0.6px, transparent 1px);
  background-size: 2.5px 2.5px;
  mix-blend-mode: multiply;
  opacity: 0.35;
  pointer-events: none;
  border-radius: 16px;
}
.project-icon.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--ink-faded);
  font-family: var(--serif-display);
}
.project-icon.placeholder::after { display: none; }

/* Info block */
.project-info {
  flex: 1;
  min-width: 0;
}

.project-title {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  margin: 0 0 3px;
  letter-spacing: -0.005em;
}

.project-byline {
  font-family: var(--typewriter);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.project-deck {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.project-meta {
  font-family: var(--typewriter);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faded);
  border-top: 1px dashed var(--ink-faded);
  padding-top: 5px;
  margin-top: 4px;
}

@media (max-width: 880px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project { border-right: 0; }
}

/* ============================================================
   EDITOR'S CLIPPINGS — BURNED PARCHMENT + HANDWRITING
   ============================================================ */
.cork-board {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(40, 20, 5, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 90%, rgba(50, 25, 8, 0.08) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 15, 5, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, #d8c49e 0%, #ccb488 40%, #c0a474 100%);
  border-top: 4px double var(--ink);
  border-bottom: 4px double var(--ink);
  padding: 32px 28px;
  position: relative;
  min-height: 340px;
  overflow: hidden;
  box-shadow:
    inset 0 0 100px rgba(40, 20, 5, 0.15),
    inset 0 0 40px rgba(60, 30, 10, 0.08);
}
/* Parchment grain */
.cork-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.cork-subtitle {
  font-family: var(--handwriting);
  font-size: 20px;
  color: var(--ink-faded);
  margin-bottom: 22px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.cork-pins {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

/* Burned parchment notes with handwriting */
.cork-note {
  padding: 18px 20px 22px;
  font-family: var(--handwriting);
  font-size: 18px;
  line-height: 1.35;
  max-width: 210px;
  min-width: 165px;
  position: relative;
  cursor: default;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #ede4cc;
  color: #3a2a15;
  box-shadow: 2px 4px 12px rgba(30, 15, 5, 0.22);
  /* Burned irregular edges */
  clip-path: polygon(
    2% 0%, 8% 1%, 15% 0%, 25% 2%, 35% 0%, 45% 1%,
    55% 0%, 65% 1%, 75% 0%, 85% 2%, 92% 0%, 98% 1%, 100% 0%,
    100% 8%, 99% 18%, 100% 28%, 99% 40%, 100% 52%,
    99% 65%, 100% 78%, 99% 88%, 100% 95%, 100% 100%,
    97% 100%, 88% 99%, 78% 100%, 68% 99%, 58% 100%,
    48% 99%, 38% 100%, 28% 98%, 18% 100%, 8% 99%, 0% 100%,
    0% 92%, 1% 82%, 0% 72%, 1% 60%, 0% 48%,
    1% 35%, 0% 22%, 1% 12%, 0% 5%
  );
}
.cork-note:hover {
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 5px 8px 20px rgba(30, 15, 5, 0.3);
  z-index: 10;
}
/* Wax seal */
.cork-note::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 40% 35%, #c43030 0%, #8b1a1a 50%, #5a0e0e 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.35), inset 0 -1px 2px rgba(255,255,255,0.1);
  z-index: 3;
}
/* Burn/scorch inner shadow */
.cork-note::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 30px rgba(60, 30, 8, 0.2),
    inset 0 0 8px rgba(40, 20, 5, 0.1);
  pointer-events: none;
}

/* Note variants — scorched tones */
.cork-note.sticky-yellow {
  background: linear-gradient(135deg, #f0e6c8 60%, #e0d0a8 100%);
}
.cork-note.sticky-pink {
  background: linear-gradient(135deg, #e8d8ba 60%, #d8c4a0 100%);
}
.cork-note.sticky-blue {
  background: linear-gradient(135deg, #e5dcc0 60%, #d5c8a8 100%);
}
.cork-note.torn-paper {
  background: linear-gradient(135deg, #ddd0b0 60%, #ccbc98 100%);
  clip-path: polygon(
    0% 3%, 5% 0%, 12% 4%, 22% 0%, 33% 3%, 45% 1%,
    58% 4%, 70% 0%, 82% 3%, 90% 1%, 100% 4%,
    99% 15%, 100% 30%, 98% 50%, 100% 70%, 99% 85%, 100% 100%,
    95% 98%, 82% 100%, 70% 97%, 55% 100%, 40% 98%,
    25% 100%, 12% 97%, 0% 100%,
    1% 85%, 0% 68%, 2% 50%, 0% 32%, 1% 15%
  );
}

/* Tags — aged paper labels */
.cork-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.cork-tag {
  background: #ede4cc;
  border: none;
  font-family: var(--handwriting);
  font-size: 16px;
  font-weight: 600;
  padding: 4px 14px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 1px 2px 5px rgba(30, 15, 5, 0.15);
  position: relative;
  color: #3a2a15;
  clip-path: polygon(3% 0%, 97% 2%, 100% 98%, 1% 100%);
}
/* Wax dot */
.cork-tag::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 35% 35%, #c43030, #6b1010);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.cork-tag:hover, .cork-tag.active {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 2px 4px 10px rgba(30, 15, 5, 0.25);
}

/* SVG strings — faded ink connections */
.cork-strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.cork-strings line {
  stroke: rgba(60, 30, 10, 0.15);
  stroke-width: 1;
  stroke-dasharray: 8 5;
}

@media (max-width: 880px) {
  .cork-pins { flex-direction: column; align-items: center; }
  .cork-note { max-width: 90%; }
}

/* ============================================================
   THE PRESS RUN — TIMELINE
   ============================================================ */
.press-run {
  border: 2px solid var(--ink);
  padding: 20px 0;
  background: var(--paper);
  overflow: hidden;
}
.press-subtitle {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 18px;
}
.press-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0;
  padding: 0 20px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-faded) var(--paper-shadow);
}
.press-track::-webkit-scrollbar { height: 6px; }
.press-track::-webkit-scrollbar-track { background: var(--paper-shadow); }
.press-track::-webkit-scrollbar-thumb { background: var(--ink-faded); border-radius: 3px; }

.press-year {
  flex: 0 0 220px;
  scroll-snap-align: start;
  padding: 0 18px;
  border-right: 1px solid var(--ink-faded);
  position: relative;
}
.press-year:last-child { border-right: 0; }

/* Printing press roller decoration */
.press-year::before {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--ink) 0px, var(--ink) 6px, transparent 6px, transparent 10px);
  margin-bottom: 12px;
  border-radius: 2px;
}

.press-year-num {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 2px;
}
.press-year-label {
  font-family: var(--typewriter);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  border-bottom: 1px solid var(--ink-faded);
  padding-bottom: 6px;
}
.press-year-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.press-year-items li {
  font-family: var(--serif-body);
  font-size: 12px;
  line-height: 1.45;
  padding: 4px 0;
  border-bottom: 1px dotted var(--ink-faded);
  color: var(--ink-soft);
}
.press-year-items li:last-child { border-bottom: 0; }
.press-year-items li::before {
  content: '§ ';
  color: var(--accent);
  font-size: 10px;
}

/* Active/hover state */
.press-year:hover {
  background: rgba(139, 26, 26, 0.03);
}
.press-year:hover .press-year-num {
  color: var(--accent);
}

@media (max-width: 880px) {
  .press-year { flex: 0 0 180px; }
}

/* ============================================================
   CAREER ARCHIVE — editorial chronological ledger
   ============================================================ */
.career-ledger {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.career-row {
  display: grid;
  grid-template-columns: 140px 1fr 180px;
  gap: 24px;
  align-items: start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--ink-faded);
  cursor: default;
  transition: background 0.15s;
}
.career-row:last-child { border-bottom: 0; }
.career-row:hover { background: rgba(40, 30, 15, 0.025); }

.career-row .col-year {
  border-right: 1px solid var(--ink-faded);
  padding-right: 18px;
  text-align: right;
}
.career-row .year-range {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.career-row .year-tenure {
  font-family: var(--typewriter);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

.career-row .col-main { padding: 0 4px; }
.career-logo {
  float: right;
  width: 56px;
  height: 56px;
  border: 1px solid var(--ink-faded);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 8px 12px;
}
.career-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2) sepia(0.15);
  mix-blend-mode: multiply;
}
.career-row .role {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 2px;
  letter-spacing: -0.005em;
}
.career-row .company {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.career-row .company .sep {
  font-style: normal;
  color: var(--ink-faded);
  margin: 0 6px;
}
.career-row .company .loc {
  font-family: var(--typewriter);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.career-row .desc {
  font-size: 13px;
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
  margin-top: 6px;
  color: var(--ink-soft);
}

.career-row .col-tags {
  border-left: 1px solid var(--ink-faded);
  padding-left: 18px;
}
.career-row .tag-label {
  font-family: var(--typewriter);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 4px;
}
.career-row .tag-list {
  font-family: var(--typewriter);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.career-row .tag-list .dot { color: var(--accent); margin-right: 4px; }

@media (max-width: 880px) {
  .career-row { grid-template-columns: 1fr; gap: 8px; }
  .career-row .col-year, .career-row .col-tags { border: 0; padding: 0; text-align: left; }
}

/* ============================================================
   TECH STACK — sınıflandırılmış kutu
   ============================================================ */
.stack-box {
  border: 2px solid var(--ink);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 24px;
}
.stack-cat {
  border-right: 1px solid var(--ink-faded);
  padding-right: 14px;
}
.stack-cat:last-child { border-right: 0; }
.stack-cat h4 {
  font-family: var(--typewriter);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 6px;
  border-bottom: 1px solid var(--ink-faded);
  padding-bottom: 4px;
}
.stack-cat ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif-display);
  font-size: 16px;
  line-height: 1.55;
}
.stack-cat li::before {
  content: '§ ';
  color: var(--ink-faded);
  font-size: 12px;
}

/* ============================================================
   GITHUB — borsa/piyasa tablosu
   ============================================================ */
.market-box {
  border: 2px solid var(--ink);
  padding: 12px 16px;
}
.market-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.market-head .title {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.market-head .subtitle {
  font-family: var(--typewriter);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.market-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--typewriter);
  font-size: 12px;
}
.market-table th {
  text-align: left;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 10px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-faded);
  padding: 4px 8px;
}
.market-table td {
  padding: 5px 8px;
  border-bottom: 1px dashed var(--ink-faded);
}
.market-table .up { color: var(--accent); }
.market-table .ticker { font-weight: bold; letter-spacing: 0.05em; }

.contribs {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: 2px;
  margin-top: 12px;
}
.contribs .cell {
  aspect-ratio: 1;
  background: var(--paper-shadow);
  border: 1px solid var(--paper-edge);
}
.contribs .cell.l1 { background: #c4b288; }
.contribs .cell.l2 { background: #8a7754; }
.contribs .cell.l3 { background: #4d3f25; }
.contribs .cell.l4 { background: var(--ink); }

/* ============================================================
   EDUCATION & LEADERSHIP
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.edu-entry {
  border-left: 3px double var(--ink);
  padding-left: 12px;
  margin-bottom: 12px;
}
.edu-entry .school {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.edu-entry .program {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}
.edu-entry .meta {
  font-family: var(--typewriter);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-top: 2px;
}
.edu-entry .desc {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

/* ============================================================
   CROSSWORD / CRYPTOGRAM puzzle
   ============================================================ */
.puzzle-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: start;
}
.puzzle-box {
  border: 2px solid var(--ink);
  padding: 14px 16px;
  background: var(--paper);
}
.puzzle-box h3 {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 22px;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.puzzle-box .puzzle-sub {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.cipher {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-family: var(--typewriter);
  margin-bottom: 12px;
}
.cipher .word {
  display: flex;
  gap: 2px;
  margin-right: 8px;
}
.cipher .ch {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22px;
}
.cipher .ch input {
  width: 22px;
  height: 26px;
  text-align: center;
  font-family: var(--typewriter);
  font-size: 16px;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  background: transparent;
  text-transform: uppercase;
  outline: none;
  color: var(--ink);
}
.cipher .ch input:focus { background: rgba(139, 26, 26, 0.08); }
.cipher .ch .num {
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 1px;
}
.cipher .ch.fixed {
  width: 22px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.puzzle-status {
  font-family: var(--typewriter);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-top: 1px solid var(--ink-faded);
  padding-top: 8px;
  min-height: 1.4em;
}
.puzzle-status.ok { color: #2d5e2a; }
.puzzle-status.bad { color: var(--accent); }

.weather-report {
  border: 1px solid var(--ink);
  padding: 12px 16px;
  font-family: var(--serif-body);
  font-size: 13px;
  line-height: 1.5;
}
.weather-report h3 {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.weather-report .row {
  display: flex;
  justify-content: space-between;
  font-family: var(--typewriter);
  font-size: 11px;
  border-bottom: 1px dotted var(--ink-faded);
  padding: 3px 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.weather-report .row:last-child { border: 0; }

/* ============================================================
   CLASSIFIED ADS — contact box
   ============================================================ */
.classifieds {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
.ad {
  border: 1px solid var(--ink);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.ad.dashed { border-style: dashed; }
.ad.double { border-style: double; border-width: 4px; }
.ad h4 {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  text-align: center;
  border-bottom: 1px solid var(--ink-faded);
  padding-bottom: 4px;
}
.ad .center { text-align: center; }
.ad .lines { font-family: var(--typewriter); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; line-height: 1.7; }
.ad a { color: var(--ink); text-decoration: underline; text-decoration-style: dotted; }
.ad a:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.colophon {
  border-top: 4px double var(--ink);
  margin-top: 30px;
  padding-top: 12px;
  text-align: center;
  font-family: var(--typewriter);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.colophon .price {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 4px 0;
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================================
   MODAL — proje detayı
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--paper);
  border: 2px solid var(--ink);
  max-width: 640px;
  width: 100%;
  padding: 28px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background-image:
    repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(60, 40, 20, 0.012) 2px, rgba(60, 40, 20, 0.012) 3px);
}
.modal .close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 1px solid var(--ink);
  width: 28px;
  height: 28px;
  font-family: var(--typewriter);
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}
.modal .kicker {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.modal h2 {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 38px;
  margin: 0 0 8px;
  line-height: 1;
}
.modal .deck {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-faded);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.modal .body {
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
}
.modal .meta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink-faded);
  padding-top: 10px;
  margin-top: 12px;
  font-family: var(--typewriter);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}
.modal .meta-row b { color: var(--ink); }

/* ============================================================
   Easter-egg hint
   ============================================================ */
.hint {
  position: fixed;
  bottom: 14px;
  left: 14px;
  font-family: var(--typewriter);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(241, 231, 207, 0.55);
  pointer-events: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .paper { padding: 18px 18px 24px; }
  .masthead h1 { font-size: 56px; }
  .lead, .projects-grid, .career-grid, .edu-grid, .puzzle-wrap, .classifieds { grid-template-columns: 1fr; }
  .project { border-right: 0 !important; }
  .stack-box { grid-template-columns: 1fr 1fr; }
  .stack-cat { border-right: 0; border-bottom: 1px solid var(--ink-faded); padding-bottom: 8px; }
  .lead-body { column-count: 1; }
  .lead-text h2 { font-size: 38px; }
  .contribs { grid-template-columns: repeat(26, 1fr); }
}
