/* ============================================================
   HASAN CEMIL ACAR — Portfolio
   Krem arka plan + mürekkep çizgiler + 4 vurgu rengi
   ============================================================ */

:root {
  --cream: #f1e8d3;
  --cream-2: #ede2c4;
  --paper: #faf3e0;
  --ink: #161310;
  --ink-2: #2a2520;
  --coral: #e8543b;
  --mustard: #e7b32c;
  --petrol: #1c5560;
  --plum: #7a3a52;
  --line: rgba(22, 19, 16, 0.18);
  --line-strong: rgba(22, 19, 16, 0.55);

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(22,19,16,0.06) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

::selection { background: var(--coral); color: var(--paper); }

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

/* ===== TOP BAR ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  padding: 16px 28px;
  background: rgba(241, 232, 211, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.topbar .left, .topbar .right {
  display: flex; gap: 22px; align-items: center;
}
.topbar .right { justify-content: flex-end; }
.topbar .center { display: flex; gap: 18px; align-items: center; justify-content: center; font-weight: 600; }
.topbar .brand { white-space: nowrap; }
.site-nav, .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-nav a, .lang-switch a {
  opacity: 0.58;
  transition: color 0.2s, opacity 0.2s;
}
.site-nav a:hover, .lang-switch a:hover,
.site-nav a[aria-current="page"], .lang-switch a[aria-current="page"] {
  color: var(--coral);
  opacity: 1;
}
.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(250, 243, 224, 0.45);
}
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: pulse 2s infinite; }
.topbar a:hover { color: var(--coral); }
.clock { display: inline-flex; gap: 6px; align-items: baseline; }
.clock .city { opacity: 0.5; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ===== LAYOUT ===== */
section {
  position: relative;
  padding: 120px 28px;
  border-bottom: 1px solid var(--line);
}
.container { max-width: 1440px; margin: 0 auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--ink);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin: 30px 0 36px;
}
.hero-name em {
  font-style: italic;
  color: var(--coral);
  position: relative;
}
.hero-name em::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%; bottom: 8%;
  height: 12%;
  background: var(--mustard);
  z-index: -1;
  transform: skewX(-6deg);
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-style: italic;
  line-height: 1.4;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-sub strong { font-weight: 600; font-style: normal; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-meta .label { opacity: 0.55; margin-bottom: 6px; }
.hero-meta .value { font-weight: 600; font-size: 13px; }

/* Hero illustration stage */
.hero-stage {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  perspective: 1200px;
}
.hero-stage svg { width: 100%; height: 100%; overflow: visible; }
.float { animation: float 6s ease-in-out infinite; transform-origin: center; }
.float-2 { animation: float 8s ease-in-out infinite reverse; }
.spin-slow { animation: spin 30s linear infinite; transform-origin: center; transform-box: fill-box; }
.spin-rev { animation: spin 22s linear infinite reverse; transform-origin: center; transform-box: fill-box; }

.projects-hero {
  min-height: auto;
  padding-top: 150px;
  padding-bottom: 80px;
}
.projects-hero .hero-sub {
  max-width: 820px;
}
.projects-hero .hero-meta {
  grid-template-columns: repeat(3, minmax(0, auto));
}
.projects-page .works {
  padding-top: 90px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== MARQUEE ===== */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 0;
  overflow: hidden;
  border: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--serif);
  font-size: 56px;
  font-style: italic;
  line-height: 1;
}
.marquee-track span { display: inline-flex; gap: 48px; align-items: center; }
.marquee-track .star { color: var(--mustard); font-style: normal; font-family: var(--sans); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-grid--single {
  grid-template-columns: 1fr;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.about h2, .skills h2, .works h2, .toolkit h2, .process h2, .press h2, .contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.about h2 em { font-style: italic; color: var(--petrol); }
.about-text p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 22px;
  text-wrap: pretty;
}
.about-text p:first-of-type::first-letter {
  font-size: 84px;
  float: left;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  color: var(--coral);
  font-style: italic;
}
.about-text p:last-of-type { margin-bottom: 0; }

.source-panel {
  margin-top: 46px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(22, 19, 16, 0.08);
}
.source-panel__head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.source-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.source-fact {
  min-height: 210px;
  padding: 22px 20px;
  border-right: 1px solid var(--ink);
}
.source-fact:last-child { border-right: 0; }
.source-fact .num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.55;
  letter-spacing: 0.1em;
}
.source-fact strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.source-fact strong em {
  color: var(--coral);
  font-style: italic;
}
.source-fact span:last-child {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.76;
}

.local-service-strip {
  background: var(--cream);
}
.local-service-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 46px;
}
.local-service-head h2,
.service-content h2,
.service-faq h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.local-service-head h2 em,
.service-content h2 em,
.service-faq h2 em {
  color: var(--coral);
  font-style: italic;
}
.local-service-head p,
.service-lede,
.service-content p,
.service-faq p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  text-wrap: pretty;
}
.local-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.local-service-card {
  min-height: 250px;
  padding: 26px 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s, transform 0.2s;
}
.local-service-card:hover {
  background: var(--cream-2);
  transform: translateY(-2px);
}
.local-service-card .kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}
.local-service-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}
.local-service-card p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.75;
}
.local-service-card .link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.service-page .hero-name {
  max-width: 1050px;
}
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: start;
}
.service-content {
  display: grid;
  gap: 42px;
}
.service-panel {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 30px;
}
.service-panel h2 {
  margin-bottom: 18px;
}
.service-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.service-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}
.service-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}
.service-aside-card {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 22px;
}
.service-aside-card .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.55;
  margin-bottom: 12px;
}
.service-aside-card a {
  color: var(--coral);
}
.service-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-pill-list span,
.service-pill-list a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 10px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.service-faq {
  background: var(--paper);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
  margin-top: 42px;
}
.faq-item {
  background: var(--paper);
  padding: 28px;
}
.faq-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.service-related {
  background: var(--cream);
}

.about-portrait {
  position: sticky; top: 100px;
  aspect-ratio: 4/5;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 24px;
  position: relative;
}
.about-portrait::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--line-strong);
  pointer-events: none;
}
.about-portrait svg { width: 100%; height: 100%; }
.portrait-caption {
  position: absolute;
  bottom: -30px; left: 0; right: 0;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  background: var(--cream);
  display: inline-block;
  width: fit-content;
  margin: 0 auto;
  padding: 0 12px;
  left: 50%;
  transform: translateX(-50%);
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.stat-num em { font-style: italic; color: var(--coral); }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  max-width: 180px;
}

/* ===== SKILLS / CAPABILITIES ===== */
.skills {
  background: var(--paper);
}
.skills-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.skills-head p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  font-style: italic;
  max-width: 480px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.skill-card {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 28px 24px 28px;
  display: flex; flex-direction: column;
  gap: 18px;
  background: var(--paper);
  transition: background 0.3s;
  position: relative;
  min-height: 320px;
}
.skill-card:hover { background: var(--cream-2); }
.skill-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.5;
}
.skill-illu {
  width: 100%;
  aspect-ratio: 1.3;
  display: flex; align-items: center; justify-content: center;
}
.skill-illu svg { width: 80%; height: 80%; overflow: visible; }
.skill-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.skill-card h3 em { font-style: italic; color: var(--coral); }
.skill-card p {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.75;
}

/* ===== WORKS ===== */
.works-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 60px;
}
.works-filter {
  display: flex; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.works-filter button {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all 0.2s;
}
.works-filter button.active { background: var(--ink); color: var(--paper); }
.works-filter button:not(.active):hover { background: var(--cream-2); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 24px;
}
.work {
  background: var(--paper);
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
}
.work:hover { transform: translateY(-6px); }
.work-art {
  flex: 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  overflow: hidden;
}
.work-art svg { width: 100%; height: 100%; max-height: 280px; }
.work-meta {
  border-top: 1px solid var(--ink);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  background: var(--paper);
}
.work-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.work-title em { font-style: italic; color: var(--coral); }
.work-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
}
.work-year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* Bento layout */
.work.w-1 { grid-column: span 7; grid-row: span 2; }
.work.w-2 { grid-column: span 5; grid-row: span 2; background: var(--mustard); }
.work.w-3 { grid-column: span 4; }
.work.w-4 { grid-column: span 4; background: var(--petrol); color: var(--paper); }
.work.w-4 .work-meta { background: var(--petrol); border-top-color: var(--paper); }
.work.w-5 { grid-column: span 4; }
.work.w-6 { grid-column: span 6; background: var(--coral); color: var(--paper); }
.work.w-6 .work-meta { background: var(--coral); border-top-color: var(--paper); }
.work.w-7 { grid-column: span 6; }

/* ===== TOOLKIT ===== */
.toolkit { background: var(--ink); color: var(--paper); }
.toolkit .eyebrow { color: var(--paper); opacity: 0.7; }
.toolkit .eyebrow::before { background: var(--paper); }
.toolkit h2 { color: var(--paper); }
.toolkit h2 em { font-style: italic; color: var(--mustard); }
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
  margin-top: 60px;
}
.tool {
  background: var(--ink);
  padding: 24px 18px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 160px;
  transition: background 0.2s;
}
.tool:hover { background: var(--ink-2); }
.tool .tool-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
}
.tool .tool-icon svg { width: 100%; height: 100%; }
.tool .tool-name {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}
.tool .tool-years {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: auto;
}
.tool .bar {
  height: 2px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.tool .bar::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--mustard);
  width: var(--lvl, 80%);
}

/* ===== PROCESS ===== */
/* ===== PROCESS ===== */
.process { background: var(--cream); }
.process-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.process-lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  max-width: 480px;
  opacity: 0.85;
}
.process-lede em { font-style: italic; color: var(--coral); }

.phases {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ink);
}
.phase {
  display: grid;
  grid-template-columns: 140px minmax(260px, 1.1fr) 2fr;
  gap: 48px;
  padding: 40px 8px;
  border-bottom: 1px solid var(--ink);
  align-items: start;
  transition: background 0.25s;
}
.phase:hover { background: var(--cream-2); }
.phase-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 88px;
  line-height: 0.85;
  color: var(--coral);
  letter-spacing: -0.02em;
}
.phase-title h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  margin: 4px 0 14px;
  text-wrap: balance;
}
.phase-title h3 em { font-style: italic; }
.phase-meta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  opacity: 0.65;
  line-height: 1.5;
}
.phase-body {
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
  margin-top: 6px;
}
.phase-body em { font-style: italic; color: var(--ink); background: var(--mustard); padding: 0 4px; }

/* ===== PRESS ===== */
.press { background: var(--paper); }
.press-list {
  border-top: 1px solid var(--ink);
  margin-top: 40px;
}
.press-row {
  display: grid;
  grid-template-columns: 80px 1.5fr 2fr 1fr auto;
  gap: 24px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background 0.2s;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.press-row:hover { background: var(--cream-2); }
.press-row .pub {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}
.press-row .arrow {
  font-size: 18px; transition: transform 0.3s;
}
.press-row:hover .arrow { transform: translateX(6px); }

/* ===== CONTACT ===== */
.contact {
  background: var(--coral);
  color: var(--paper);
  padding: 140px 28px 60px;
}
.contact .eyebrow { color: var(--paper); opacity: 0.85; }
.contact .eyebrow::before { background: var(--paper); }
.contact-headline {
  font-family: var(--serif);
  font-size: clamp(60px, 8vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
  font-weight: 400;
}
.contact-headline em { font-style: italic; }
.contact-headline .dot-stop { color: var(--mustard); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 48px;
}
.contact-block .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 12px;
}
.contact-block .big {
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  line-height: 1.1;
}
.contact-block .big a:hover { text-decoration: underline; text-decoration-style: wavy; }
.contact-block ul { list-style: none; }
.contact-block li {
  padding: 6px 0;
  font-size: 14px;
  display: flex; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.3);
  margin-top: 80px; padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer a:hover { color: var(--mustard); }
.footer-global {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}
.footer-global span { opacity: 0.62; }
.footer-lang { text-align: right; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  section { padding: 80px 20px; }
  .topbar .left { display: none; }
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 18px;
  }
  .topbar .center {
    justify-content: space-between;
    gap: 14px;
  }
  .topbar .right {
    justify-content: space-between;
    gap: 12px;
    font-size: 10px;
  }
  .topbar .right .clock { display: none; }
  .site-nav { gap: 12px; }
  .hero-grid, .about-grid, .skills-head, .contact-grid, .local-service-head, .service-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { position: relative; top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .source-facts { grid-template-columns: repeat(2, 1fr); }
  .source-fact:nth-child(2n) { border-right: 0; }
  .source-fact:nth-child(n + 3) { border-top: 1px solid var(--ink); }
  .local-service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-aside { position: static; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .toolkit-grid { grid-template-columns: repeat(3, 1fr); }
  .process-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .phase { grid-template-columns: 80px 1fr; gap: 20px 24px; padding: 28px 4px; }
  .phase-num { font-size: 56px; }
  .phase-title h3 { font-size: 26px; }
  .phase-body { grid-column: 1 / -1; }
  .works-grid { grid-template-columns: 1fr; }
  .work.w-1, .work.w-2, .work.w-3, .work.w-4, .work.w-5, .work.w-6, .work.w-7 {
    grid-column: span 1; grid-row: span 1;
  }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; }
  .marquee-track { font-size: 36px; }
  .press-row { grid-template-columns: 1fr; gap: 6px; }
  .footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-lang { text-align: left; }
}


/* ===== Reveal animation (disabled) =====
   .reveal classes are no longer applied; rules kept commented out
   to avoid stuck-invisible elements if anything queries them.
*/

/* ===== Hero stage 3D ===== */
.hero-stage {
  transform-style: preserve-3d;
  transition: transform 0.2s linear;
}

/* ===== Tweak topbar layout ===== */
.topbar .right { gap: 18px; }

/* Bigger about typography (since now single column) */
.about-grid--single .about-text h2 {
  font-size: clamp(48px, 6vw, 88px);
  margin-bottom: 56px;
}
.about-grid--single .about-text p {
  font-size: 24px;
  max-width: 780px;
}
.about-grid--single .about-text p:first-of-type::first-letter {
  font-size: 96px;
}

/* ===== WORKS / PROJECTS SECTION EXTRA ===== */
.works {
  background: var(--paper);
}
.works-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}
.works-head h2 em {
  font-style: italic;
  color: var(--coral);
}
.works-filter {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.works-filter button {
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
  background: transparent;
}
.works-filter button.active {
  background: var(--ink);
  color: var(--paper);
}
.works-filter button:not(.active):hover {
  background: var(--cream-2);
}

/* Category Filter animation */
.work {
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), opacity 0.4s ease, visibility 0.4s;
}
.work.hidden {
  opacity: 0;
  visibility: hidden;
  display: none !important;
}

/* ===== GLASSMORPHIC CASE STUDY MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(22, 19, 16, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  background: rgba(241, 232, 211, 0.85); /* cream-85 */
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(22, 19, 16, 0.25);
  overflow-y: auto;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

/* Grain for premium textures inside modal */
.modal-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(22,19,16,0.05) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: 0.6;
  z-index: 1;
}

.modal-content-wrap {
  position: relative;
  z-index: 2;
  padding: 48px;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 38px;
  color: var(--ink);
  z-index: 10;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--coral);
}

/* Modal Internal Typography & Grid */
.modal-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(22, 19, 16, 0.1);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.modal-header-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 36px;
}
.modal-header-section .eyebrow {
  margin-bottom: 16px;
}
.modal-header-section h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 12px;
}
.modal-header-section h2 em {
  font-style: italic;
  color: var(--coral);
}
.modal-desc-meta {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.modal-desc-meta .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 6px;
}
.modal-desc-meta .val {
  font-size: 15px;
  font-weight: 500;
}

/* Modal Body content */
.modal-body-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.modal-body-section p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.modal-body-section p strong {
  font-weight: 600;
}
.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tech-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
}
.modal-code-block {
  margin-top: 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}
.modal-code-block code {
  white-space: pre;
}

/* ===== INTERACTIVE TERMINAL SECTION ===== */
.terminal-section {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.terminal-section .eyebrow {
  color: var(--paper);
  opacity: 0.7;
}
.terminal-section .eyebrow::before {
  background: var(--paper);
}
.terminal-section h2 {
  color: var(--paper);
}
.terminal-section h2 em {
  font-style: italic;
  color: var(--mustard);
}
.terminal-sub {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  font-style: italic;
  max-width: 600px;
  margin-bottom: 48px;
  opacity: 0.85;
}
.terminal-sub code {
  color: var(--mustard);
  font-family: var(--mono);
  font-size: 0.75em;
}
.terminal-command-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -22px 0 34px;
}
.terminal-command-grid button {
  border: 1px solid rgba(250, 243, 224, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(250, 243, 224, 0.82);
  background: rgba(250, 243, 224, 0.05);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.terminal-command-grid button:hover {
  border-color: var(--mustard);
  color: var(--mustard);
  background: rgba(231, 179, 44, 0.08);
}

/* Terminal Window Frame */
.terminal-window {
  background: #110e0c; /* darker background */
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  font-family: var(--mono);
}
.terminal-bar {
  background: #1c1815;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.terminal-bar .dots {
  display: flex;
  gap: 6px;
}
.terminal-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.terminal-bar .dot.close { background: #e8543b; }
.terminal-bar .dot.minimize { background: #e7b32c; }
.terminal-bar .dot.maximize { background: #1c5560; }

.terminal-bar .title {
  font-size: 11px;
  opacity: 0.5;
  letter-spacing: 0.05em;
}
.terminal-bar .status-indicator {
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.1em;
  color: #10b981; /* bright green */
}
.pulse-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

/* Terminal Body */
.terminal-body {
  padding: 24px;
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.terminal-body::-webkit-scrollbar {
  width: 6px;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.terminal-body .line.output {
  color: rgba(250, 243, 224, 0.85);
  white-space: pre-wrap;
}
.terminal-body .line.output .highlight {
  color: var(--mustard);
  font-weight: 500;
}
.terminal-body .line.output .error {
  color: var(--coral);
}
.terminal-body .line.output .success {
  color: #10b981;
}
.terminal-body .line.output .muted {
  opacity: 0.58;
}
.terminal-body .line.output a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.input-line .prompt {
  color: var(--coral);
  font-weight: bold;
}
.input-line input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  caret-color: var(--mustard);
}

@media (max-width: 768px) {
  .works-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .works-filter {
    width: 100%;
    flex-wrap: wrap;
  }
  .works-filter button {
    flex: 1 1 auto;
    min-width: min(150px, 100%);
    text-align: center;
  }
  .source-panel__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .source-facts { grid-template-columns: 1fr; }
  .source-fact,
  .source-fact:nth-child(2n) {
    border-right: 0;
  }
  .source-fact:nth-child(n + 2) {
    border-top: 1px solid var(--ink);
  }
  .local-service-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .local-service-card {
    min-height: auto;
  }
  .service-panel,
  .faq-item {
    padding: 24px 20px;
  }
  .modal-card {
    max-height: 95vh;
  }
  .modal-content-wrap {
    padding: 32px 20px;
  }
  .modal-desc-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .modal-body-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
