/* ============================================================
   SAMIHA ALAM — MAIN STYLESHEET
   ============================================================ */

/* ── Fonts ── */
@font-face { font-family: 'Kalice-Regular'; src: url('../fonts/Kalice-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Ekstra-Regular'; src: url('../fonts/Ekstra-Regular.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Ekstra-Light';   src: url('../fonts/Ekstra-Light.otf')   format('opentype'); font-display: swap; }
@font-face { font-family: 'Ekstra-Italic';  src: url('../fonts/Ekstra-LightItalic.otf') format('opentype'); font-display: swap; }

/* ── Reset & Root ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-display: 'Kalice-Regular', Georgia, serif;
  --font-body:    'Ekstra-Light', Georgia, serif;
  --font-ui:      'Ekstra-Regular', system-ui, sans-serif;
  --key-bg:       #f5f5f5;
  --key-border:   #d8d8d8;
  --shadow:       0 8px 32px rgba(0,0,0,.18);
  --shadow-hover: 0 4px 16px rgba(0,0,0,.12);
  --shadow-press: 0 2px 8px rgba(0,0,0,.08);
  --gap:          6px;
}

/* ── Base body ── */
body {
  background: #fff;
  font-family: var(--font-body);
  color: #111;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Page transitions ── */
@keyframes pageIn  { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes pageOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.97); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }

body { animation: pageIn 300ms ease both; will-change: opacity, transform; }

/* Name as home link - no styling */
a.title-home-link,
a.title-home-link:hover,
a.title-home-link:visited,
a.title-home-link:active,
a.title-home-link:focus {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
}
body.page-exit { animation: pageOut 300ms ease both; pointer-events: none; }

/* ── Copyright ── */
.copyright {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(0,0,0,0.07);
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* ── Responsive line breaks ── */
.mob-br { display: none; }
@media (max-width: 860px) { .mob-br { display: block; } }

/* ============================================================
   SHARED: NAV KEYS
   ============================================================ */
.page-nav {
  position: fixed;
  top: 58px;
  right: 58px;
  display: flex;
  gap: 8px;
  z-index: 9999;
}

.nav-key {
  background: var(--key-bg);
  border: 1.5px solid var(--key-border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: #111;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 80ms ease, box-shadow 80ms ease, background 120ms ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.nav-key.wide   { padding: 0 20px; height: 64px; }
.nav-key.square { width: 64px; height: 64px; }
.nav-key:hover  { background: #efefef; transform: translateY(1px); box-shadow: var(--shadow-hover); animation: none; }
.nav-key:active { background: #e8e8e8; transform: translateY(3px); box-shadow: var(--shadow-press); animation: none; }
.nav-key .key-letter { font-family: var(--font-ui); font-size: 20px; font-weight: normal; line-height: 1; }
.nav-key .key-label  { font-family: var(--font-body); font-size: 10px; color: #666; margin-top: 4px; letter-spacing: 0.02em; }

@keyframes nav-hint {
  0%, 15% { transform: translateY(0);   box-shadow: var(--shadow);       background: var(--key-bg); }
  6%       { transform: translateY(3px); box-shadow: var(--shadow-press); background: #e8e8e8; }
  100%     { transform: translateY(0);   box-shadow: var(--shadow);       background: var(--key-bg); }
}
.nav-key:nth-child(1) { animation: nav-hint 5s 2.0s linear infinite; }
.nav-key:nth-child(2) { animation: nav-hint 5s 2.4s linear infinite; }

/* Mobile nav */
@media (max-width: 700px) {
  .page-nav { top: 16px; right: 16px; gap: 6px; }
  .nav-key.wide   { padding: 0 12px; height: 52px; }
  .nav-key.square { width: 52px; height: 52px; }
  .nav-key .key-letter { font-size: 15px; }
  .nav-key .key-label  { font-size: 9px; }
}

/* ============================================================
   SHARED: KEY / BUTTON STYLE (filter tabs, etc.)
   ============================================================ */
.key-style {
  background: var(--key-bg);
  border: none;
  border-radius: 10px;
  box-shadow: none;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 80ms ease, box-shadow 80ms ease, background 120ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.key-style:hover  { background: #efefef; transform: translateY(1px); box-shadow: var(--shadow-hover); }
.key-style:active,
.key-style.active { background: #e8e8e8; transform: translateY(3px); box-shadow: var(--shadow-press); }

/* ============================================================
   HOME PAGE (front-page.php)
   ============================================================ */

@keyframes hint {
  0%, 15%, 100% { transform: translateY(0);   box-shadow: 0 8px 32px rgba(0,0,0,.18); background: #f5f5f5; }
  6%             { transform: translateY(3px); box-shadow: 0 2px 8px rgba(0,0,0,.08);  background: #e8e8e8; }
}

@keyframes blot-drift {
  0%   { transform: translate(0,0);                                    opacity: 0; }
  15%  { transform: translate(0,0);                                    opacity: 0; }
  25%  { transform: translate(calc(var(--dx)*.2),calc(var(--dy)*.2)); opacity: 1; }
  75%  { transform: translate(calc(var(--dx)*.8),calc(var(--dy)*.8)); opacity: 1; }
  85%  { transform: translate(var(--dx),var(--dy));                   opacity: 0; }
  100% { transform: translate(var(--dx),var(--dy));                   opacity: 0; }
}

body.home,
body.page-template-front-page {
  width: 100vw; height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Keys */
.key, .name-btn {
  background: #f5f5f5;
  border: 1.5px solid #d8d8d8;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  color: #111;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.key {
  width: 72px; height: 72px;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.key-letter-home { font-family: var(--font-ui); font-size: 22px; font-weight: normal; line-height: 1; }
.key-label-home  { font-family: var(--font-body); font-size: 10.5px; color: #666; margin-top: 4px; letter-spacing: .02em; }

.key:hover, .name-btn:hover { background: #efefef; transform: translateY(1px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.key:active, .name-btn:active,
.key.pressed { background: #e8e8e8; transform: translateY(3px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Keyboard cluster — centered on page */
.keyboard {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(2);
  animation: fadeIn .5s ease both;
}
.row { display: flex; gap: 6px; }

/* Row 1: W (left) + P (far right) — 700px forces P to far edge */
.row-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  width: 700px;
}
/* Row 2: A S D */
.row-2 {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
/* Row 3: samiha alam — 84px below ASD, starting under D's center */
.row-3 {
  display: flex;
  margin-top: 84px;
  padding-left: 192px;
}

/* W sits above gap between A and S */
.key-W { animation: hint 4s 1.0s linear infinite; margin-left: 78px; }
.key-A { animation: hint 4s 1.3s linear infinite; }
.key-S { animation: hint 4s 1.6s linear infinite; }
.key-D { animation: hint 4s 1.9s linear infinite; }
.key-P { animation: hint 4s 2.2s linear infinite; }

/* Name / spacebar button */
.name-btn {
  font-family: var(--font-display);
  width: 320px; padding: 14px 32px;
  font-size: 28px; text-align: center; display: block;
  opacity: 0;
  animation: fadeIn .5s .2s ease forwards, hint 4s 2.5s linear infinite;
}

/* Shadow blots */
.shadow-blot {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  will-change: transform, opacity;
  background: radial-gradient(circle, rgba(120,120,120,0.35) 0%, rgba(150,150,150,0.15) 50%, transparent 75%);
  opacity: 0;
  animation: blot-drift linear infinite;
  animation-fill-mode: both;
}

/* Grain overlay */
body.home::after,
body.page-template-front-page::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Mobile */
@media (max-width: 700px) {
  body.home,
  body.page-template-front-page {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  .keyboard {
    position: static;
    transform: none;
    width: 88vw;
  }
  .row-1 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
  }
  .row-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 6px;
  }
  .row-3 {
    margin-top: 0;
    padding-left: 0;
    width: 100%;
  }
  .key {
    width: 100%;
    height: calc((88vw - 6px) / 2);
    max-height: 90px;
  }
  .key-letter-home { font-size: clamp(18px, 5vw, 26px); }
  .key-W { margin-left: 0; }
  .name-btn {
    width: 100%;
    font-size: 22px;
    padding: 14px 24px;
  }
  .shadow-blot { filter: blur(30px); }
}

/* ============================================================
   ABOUT PAGE (page-about.php)
   ============================================================ */
.page-about-body {
  padding: 40px 48px 80px;
}

.page-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: normal;
  margin-bottom: 40px;
  animation: fadeUp .4s ease both;
}

.about-grid {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 40px;
  align-items: start;
  animation: fadeUp .4s .1s ease both;
}

/* Col 1 */
.col-1         { display: flex; flex-direction: column; gap: 14px; }
.col-1-side    { display: flex; flex-direction: column; gap: 12px; }
.photo-wrap    { width: 100%; aspect-ratio: 3/4; border: 1.5px solid var(--key-border); border-radius: 3px; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { font-family: var(--font-body); font-size: 11px; color: #bbb; text-align: center; padding: 12px; }
.col-info p    { font-family: var(--font-body); font-size: 12px; color: #888; margin-bottom: 4px; }
.socials       { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid #eee; }
.socials a     { font-family: var(--font-body); font-size: 12px; color: #555; text-decoration: none; }
.socials a:hover { color: #111; }

/* Paper columns */
.paper-col { position: relative; padding: 24px 28px 32px; }
.paper-col > canvas { position: absolute; pointer-events: none; z-index: 0; }
.paper-col-inner { position: relative; z-index: 1; }

/* Sections */
.col-section { margin-bottom: 28px; }
.col-section:last-child { margin-bottom: 0; }
.section-label { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #bbb; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #eee; }
.body-text p   { font-family: var(--font-body); font-size: 13px; line-height: 1.8; color: #333; margin-bottom: 10px; }
.body-text p:last-child { margin-bottom: 0; }
/* cv-entry replaced by cv-row system */

/* Mobile polygon wrappers */
@media (min-width: 861px) {
  .mobile-paper { display: contents; }
  .mobile-paper > canvas { display: none !important; }
  .mobile-paper-inner { display: contents; }
}

@media (max-width: 860px) {
  .page-about-body { padding: 24px 20px 60px; }
  .page-heading { font-size: 32px; margin-bottom: 28px; }
  .about-grid   { grid-template-columns: 1fr; gap: 24px; }
  .col-1 { flex-direction: row; gap: 16px; align-items: flex-start; }
  .photo-wrap { flex: 0 0 110px; width: 110px; }
  .col-1-side { flex: 1; }
  .socials { width: 60%; }
  .paper-col > canvas { display: none; }
  .paper-col { padding: 0; }
  .mobile-paper { position: relative; padding: 24px 20px 32px; }
  .mobile-paper > canvas { position: absolute; pointer-events: none; z-index: 0; }
  .mobile-paper-inner { position: relative; z-index: 1; }
}

/* ============================================================
   WRITING LIST (home.php / archive-writing)
   ============================================================ */
.page-writing-body {
  padding: 40px 48px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 52px);
  font-weight: normal;
  margin-bottom: 40px;
  animation: fadeUp .4s ease both;
}

#post-list { animation: fadeUp .4s .05s ease both; flex: 1; }

.post-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: #111;
  position: relative;
  padding: 14px 18px;
  margin-bottom: 18px;
  overflow: hidden;
}
.post-card .post-thumb,
.post-card .post-info { position: relative; z-index: 1; }

.post-thumb {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #e8e8e8;
  display: block;
}
.post-title {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: normal;
  margin-bottom: 4px;
}
.post-meta {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: nowrap;
  overflow: hidden;
}
.post-meta span {
  font-family: var(--font-body);
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.post-excerpt {
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 340px;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 32px;
  animation: fadeUp .4s .1s ease both;
}
.page-btn {
  background: var(--key-bg);
  border: 1.5px solid var(--key-border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  color: #111;
  transition: transform 80ms ease, box-shadow 80ms ease, background 120ms ease;
}
.page-btn:hover  { background: #efefef; transform: translateY(1px); box-shadow: var(--shadow-hover); }
.page-btn.active { background: #e8e8e8; transform: translateY(3px); box-shadow: var(--shadow-press); }

@media (max-width: 700px) {
  .page-writing-body { padding: 24px 16px 60px; }
  .page-title { font-size: 22px; margin-bottom: 28px; }
  .post-card { grid-template-columns: 44px 1fr; gap: 12px; width: 100% !important; margin-left: 0 !important; }
  .post-thumb { width: 44px; height: 44px; }
  .post-excerpt { display: none; }
}

/* ============================================================
   WRITING POST (single.php)
   ============================================================ */
.page-writing-post-body {
  padding: 40px 48px 80px;
}

.stage {
  position: relative;
  width: 100%;
  min-height: 85vh;
  animation: fadeUp .35s .1s ease both;
}

/* Scattered images */
.scatter-img {
  position: absolute;
  cursor: grab;
  user-select: none;
  border: 1.5px solid var(--key-border);
  background: #f5f5f5;
  z-index: 20;
  overflow: hidden;
  transition: box-shadow 150ms;
}
.scatter-img img      { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.scatter-img:hover    { box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.scatter-img.dragging { cursor: grabbing; box-shadow: 0 16px 48px rgba(0,0,0,.28); z-index: 400; transition: none; }
.scatter-img.big      { transform: scale(2.2) !important; z-index: 450; box-shadow: 0 24px 60px rgba(0,0,0,.32); cursor: zoom-out; transition: transform 200ms, box-shadow 200ms; }

/* Paper */
.paper-wrap {
  position: relative;
  z-index: 200;
  max-width: 480px;
  margin: 0 auto;
}
.post-title-display {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: normal;
  margin-bottom: 5px;
}
.post-meta-display {
  font-family: var(--font-body);
  font-size: 12px; color: #aaa;
  letter-spacing: 0.03em;
  display: flex; gap: 8px;
  margin-bottom: 10px;
}
.post-meta-display .sep { color: #ddd; }
.paper { position: relative; }
.paper canvas {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.paper .post-body {
  position: relative;
  z-index: 2;
  padding: 32px 40px 40px;
}
.paper .post-body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  color: #222;
  margin-bottom: 18px;
}
.paper .post-body p:last-child { margin-bottom: 0; }

/* Mobile inline images */
.inline-img {
  display: none;
  width: 55%;
  margin: 16px auto;
  border: 1.5px solid var(--key-border);
  background: #f5f5f5;
  overflow: hidden;
}
.inline-img img { display: block; width: 100%; height: auto; object-fit: cover; }

@media (max-width: 700px) {
  .page-writing-post-body { padding: 24px 16px 60px; }
  .scatter-img { display: none; }
  .paper-wrap { max-width: 100%; }
  .paper .post-body { padding: 24px 20px 32px; }
  .inline-img { display: block; }
  .inline-img:nth-child(odd)  { transform: rotate(-2deg); margin-left: 8%; }
  .inline-img:nth-child(even) { transform: rotate(1.5deg); margin-left: 16%; }
}

/* ============================================================
   DESIGN / STUDIO GRIDS (page-design.php, page-studio.php)
   ============================================================ */
.page-grid-body {
  padding: 40px 40px 80px;
}

.page-title-grid {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 52px);
  font-weight: normal;
  line-height: 1.1;
  max-width: 60%;
  margin-bottom: 36px;
  animation: fadeUp 0.4s ease both;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  animation: fadeUp 0.4s 0.1s ease both;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 22px;
  letter-spacing: 0.01em;
  border: none;
  outline: none;
}

.masonry {
  columns: 3;
  column-gap: var(--gap);
  animation: fadeUp 0.4s 0.2s ease both;
}
.project-card {
  break-inside: avoid;
  display: block;
  margin-bottom: var(--gap);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}
.project-card img {
  width: 100%;
  display: block;
  transition: transform 300ms ease;
}
.project-card:hover img { transform: scale(1.02); }
.project-card.hidden    { display: none; }

@media (max-width: 700px) {
  .page-grid-body { padding: 24px 16px 60px; }
  .page-title-grid { max-width: 70%; font-size: 24px; margin-bottom: 24px; }
  .masonry { columns: 2; }
  .filter-btn { font-size: 13px; padding: 8px 14px; }
}

/* ============================================================
   PROJECT DETAIL (design-project.php, studio-project.php)
   ============================================================ */
.page-project-body {
  padding: 40px 40px 80px;
}

/* Carousel */
.carousel {
  position: relative;
  animation: fadeUp .4s .1s ease both;
}
.image-frame {
  width: 100%;
  aspect-ratio: 16/10;
  border: 1.5px solid var(--key-border);
  border-radius: 4px;
  overflow: hidden;
  background: #f9f9f9;
  position: relative;
}
.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 300ms ease;
}
.image-frame img.active { opacity: 1; }

/* Studio: 4:3 aspect */
.carousel.studio-carousel .image-frame { aspect-ratio: 4/3; }

/* Arrows */
.arrow-btn {
  position: absolute; z-index: 10;
  width: 52px; height: 52px;
  background: var(--key-bg);
  border: 1.5px solid var(--key-border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #111;
  cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 80ms ease, box-shadow 80ms ease, background 120ms ease;
}
.arrow-btn#prev { left: -68px; }
.arrow-btn#next { right: -68px; }
.arrow-btn:hover   { background: #efefef; transform: translateY(1px); box-shadow: var(--shadow-hover); }
.arrow-btn:active,
.arrow-btn.pressed { background: #e8e8e8; transform: translateY(3px); box-shadow: var(--shadow-press); }

.image-counter {
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px; color: #aaa;
  letter-spacing: .05em;
  margin: 10px 0 32px;
}

/* Project info */
.project-info {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.info-left  { display: flex; flex-direction: column; gap: 18px; }
.info-right { display: flex; flex-direction: column; gap: 16px; }
.info-name  { font-family: var(--font-ui); font-size: 20px; font-weight: normal; }
.info-block { display: flex; flex-direction: column; gap: 3px; }
.info-label { font-family: var(--font-body); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #bbb; }
.info-value { font-family: var(--font-body); font-style: italic; font-size: 13px; color: #555; line-height: 1.5; }
.desc-para  { font-family: var(--font-body); font-size: 14px; line-height: 1.8; color: #333; }

/* Mobile */
.mobile-layout { display: none; }

@media (max-width: 700px) {
  .page-project-body { padding: 24px 20px 60px; }
  .carousel { display: none; }
  .mobile-layout { display: block; }
  .mobile-img {
    width: 100%; aspect-ratio: 4/3;
    object-fit: cover; display: block;
    border: 1.5px solid var(--key-border); border-radius: 4px;
    margin-bottom: 16px;
  }
  .mobile-info { margin-bottom: 24px; }
  .project-info { grid-template-columns: 1fr; gap: 24px; }
}


/* ── CV table layout ── */
.cv-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.65;
  color: #222;
}
.cv-table tr.cv-new-year td {
  padding-top: 10px;
}
.cv-td-year {
  color: #aaa;
  width: 44px;
  min-width: 44px;
  vertical-align: top;
  padding-right: 16px;
  white-space: nowrap;
}
.cv-td-entry {
  vertical-align: top;
}



