:root {
  --bg:    #ede6da;
  --bg2:   #e2d8c8;
  --card:  #e8dfcf;
  --rose:  #b8604e;
  --rose2: #8c3d2e;
  --plum:  #4a1f2e;
  --text:  #1e1410;
  --text2: #5a3e35;
  --muted: #8a6a5e;
  --blush: #d4a898;
  --border:rgba(184,96,78,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

/* \Cursor \ */
#cur {
  position: fixed; width: 20px; height: 20px;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .12s;
  color: var(--rose);
  font-size: 18px;
  line-height: 1;
  user-select: none;
}

/*\BG Canvas \ */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 5rem;
  background: rgba(237,230,218,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--plum); text-decoration: none; cursor: pointer;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.8rem; font-weight: 500;
  color: var(--text2); text-decoration: none;
  letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s; cursor: pointer;
}
.nav-links a:hover { color: var(--rose); }

/*  Page system  */
.page { display: none; min-height: 100vh; position: relative; z-index: 1; }
.page.active { display: block; }

/* Home */
.home-wrap {
    display:flex;
    justify-content: space-evenly;
    align-items: center;
    min-height: 100vh;
    padding: 110px 5rem 4rem;
    gap:4rem;
}

.home-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(184,96,78,0.1);
  border: 1px solid rgba(184,96,78,0.28);
  border-radius: 100px;
  padding: .4rem 1.1rem;
  margin-bottom: 2rem;
}
.home-tag span { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--rose); letter-spacing: .08em; }
.home-tag::before { content: ''; width: 7px; height: 7px; background: var(--rose); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.home-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: .5rem;
}
.home-name em { font-style: italic; color: var(--rose); }
.home-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem; color: var(--muted); letter-spacing: .06em;
  margin-bottom: 2rem;
}
.home-bio {
  font-size: 1.05rem; line-height: 1.9;
  color: var(--text2); max-width: 480px;
  margin-bottom: 2.2rem;
}
.home-facts {
  display: flex; flex-direction: column; gap: .8rem;
  margin-bottom: 2.8rem;
}
.fact-row {
  display: flex; align-items: baseline; gap: 12px;
  font-size: .92rem; color: var(--text2);
}
.fact-row .fl {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; color: var(--rose);
  text-transform: uppercase; letter-spacing: .1em;
  min-width: 88px;
}
.home-btns { display: flex; gap: 1rem; }

.btn-p {
  background: var(--plum); color: #fff;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .9rem 2.2rem; border: none; cursor: pointer;
  text-decoration: none; border-radius: 4px;
  transition: all .25s; font-family: 'Inter', sans-serif;
}
.btn-p:hover { background: var(--rose); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,31,46,.22); }

.btn-s {
  background: transparent; color: var(--plum);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .9rem 2.2rem;
  border: 1.5px solid var(--blush);
  cursor: pointer; text-decoration: none;
  border-radius: 4px; transition: all .25s;
  font-family: 'Inter', sans-serif;
}
.btn-s:hover { border-color: var(--rose); background: rgba(184,96,78,.07); }

/* Photo column */
.home-photo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-rings {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 360px; height: 360px;
  overflow: visible;
}
.ring1, .ring2 {
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(184,96,78,.35);
  animation: spin 35s linear infinite;
}
.ring1 { width: 340px; height: 340px; }
.ring2 { width: 390px; height: 390px; border-color: rgba(184,96,78,.18); animation-duration: 55s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring1::before, .ring1::after {
  content: '✦'; position: absolute;
  color: var(--rose); font-size: 10px;
  top: -7px; left: 50%; transform: translateX(-50%);
}
.ring1::after { top: auto; bottom: -7px; }

.home-photo {
  position: relative; z-index: 2;
  width: 420px; height: 480px;
  object-fit: cover; object-position: center top;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  border: 5px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 56px rgba(74,31,46,.16), 0 4px 12px rgba(74,31,46,.1);
}

.photo-badge {
  position: absolute;
  bottom: -18px;
  left: 4px;
  z-index: 5;
  background: rgba(237,230,218,.97);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1.2rem;
  text-align: left;
  box-shadow: 0 4px 16px rgba(74,31,46,.12);
}
.photo-badge small { font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: var(--muted); display: block; margin-bottom: 2px; }
.photo-badge strong { font-family: 'Playfair Display', serif; font-size: .98rem; font-weight: 600; color: var(--plum); }

/* Shared Section Styles */
.sec { padding: 9rem 5rem; max-width: 1260px; margin: 0 auto; }
.sec-label {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.2rem;
}
.sl-num { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--rose); }
.sl-txt { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.sl-line { flex: 1; height: 1px; background: var(--border); }
.sec-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  letter-spacing: -.025em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 4rem;
}
.sec-title em { font-style: italic; color: var(--rose); }

/* About */
#about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 7rem; align-items: start; }
.about-text p { font-size: 1.02rem; line-height: 1.95; color: var(--text2); margin-bottom: 1.8rem; }
.about-text p strong { color: var(--text); font-weight: 600; }
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; margin-top: 2.5rem;
}
.ic { padding: 1.1rem 1.3rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ic:nth-child(even) { border-right: none; }
.ic:nth-last-child(-n+2) { border-bottom: none; }
.ic-lbl { font-family: 'JetBrains Mono', monospace; font-size: .6rem; color: var(--rose); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .3rem; }
.ic-val { font-size: .9rem; color: var(--text); font-weight: 500; }
.block-h { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 1.2rem; }
.lang-list { margin-bottom: 2.5rem; }
.lang-row { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(212,168,152,.35); }
.lang-name { font-size: .92rem; color: var(--text); font-weight: 500; flex: 1; }
.lang-badge {
  font-family: 'JetBrains Mono', monospace; font-size: .63rem;
  color: var(--rose); background: rgba(184,96,78,.1);
  border: 1px solid rgba(184,96,78,.25); border-radius: 100px; padding: .18rem .7rem;
}
.edu-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.6rem; border-left: 3px solid var(--rose); }
.edu-lbl { font-family: 'JetBrains Mono', monospace; font-size: .6rem; color: var(--rose); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.edu-school { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.edu-deg { font-size: .9rem; color: var(--text2); line-height: 1.6; }
.edu-yr { font-family: 'JetBrains Mono', monospace; font-size: .67rem; color: var(--rose); margin-top: .6rem; }

/* Projects */
#projects { background: var(--bg2); }
.proj-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.proj-card {
  background: var(--bg2); padding: 2.8rem;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background .25s;
}
.proj-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--blush));
  transform: scaleX(0); transition: transform .35s;
}
.proj-card:hover { background: #d8ceba; }
.proj-card:hover::after { transform: scaleX(1); }
.proj-num { font-family: 'JetBrains Mono', monospace; font-size: .63rem; color: var(--rose); letter-spacing: .1em; margin-bottom: 1rem; }
.proj-title { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: .9rem; line-height: 1.3; }
.proj-card:hover .proj-title { color: var(--plum); }
.proj-desc { font-size: .92rem; color: var(--text2); line-height: 1.75; margin-bottom: 1.6rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tag { font-family: 'JetBrains Mono', monospace; font-size: .6rem; color: var(--plum); background: rgba(74,31,46,.08); border: 1px solid rgba(74,31,46,.15); padding: .22rem .72rem; border-radius: 3px; }
.proj-date { position: absolute; top: 2.8rem; right: 2.8rem; font-family: 'JetBrains Mono', monospace; font-size: .6rem; color: rgba(138,106,94,.45); }
.proj-btn { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--rose); cursor: pointer; border: none; background: none; padding: 0; transition: gap .2s; }
.proj-btn:hover { gap: 12px; }

/* Project Detail */
#project-detail { background: var(--bg); }
.det-wrap { padding: 8rem 5rem 7rem; max-width: 1260px; margin: 0 auto; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--muted); cursor: pointer; border: none; background: none; margin-bottom: 3.5rem; letter-spacing: .06em; transition: color .2s; padding: 0; }
.back-btn:hover { color: var(--plum); }
.back-btn::before { content: "←  "; }
.det-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: .67rem; color: var(--rose); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.det-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.8rem); letter-spacing: -.025em; color: var(--text); line-height: 1.1; margin-bottom: 2.2rem; }
.det-meta { display: flex; gap: 1rem; margin-bottom: 4rem; flex-wrap: wrap; }
.det-meta-item {
  background: var(--card);
  border: 1.5px solid var(--rose);
  border-radius: 8px;
  padding: .8rem 1.2rem;
  min-width: 120px;
}
.det-meta-item strong { display: block; font-size: .9rem; font-weight: 600; color: var(--text2); margin-bottom: .3rem; }
.det-meta-item span { font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: var(--rose); text-transform: uppercase; letter-spacing: .03em; }
.det-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6rem; }
.det-body p { font-size: 1rem; color: var(--text2); line-height: 1.95; margin-bottom: 1.8rem; }
.det-body h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 600; color: var(--text); margin: 2.5rem 0 1.1rem; }
.feat-list { list-style: none; padding: 0; }
.feat-list li { padding: .65rem 0; font-size: .92rem; color: var(--text2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; line-height: 1.5; }
.feat-list li::before { content: "✦"; color: var(--rose); font-size: .5rem; flex-shrink: 0; }
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}
.img-ph { 
  background: var(--card); 
  border: 1.5px dashed var(--blush); 
  border-radius: 8px; 
  padding: 1rem; 
  text-align: center; 
  color: var(--muted); 
  font-family: 'JetBrains Mono', monospace; 
  font-size: .7rem; 
  letter-spacing: .04em;
}
.img-ph em { display: block; color: var(--rose); font-style: normal; margin-bottom: .4rem; font-size: .78rem; font-family: 'Playfair Display', serif; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem; margin-bottom: 1.3rem; }
.sc-lbl { font-family: 'JetBrains Mono', monospace; font-size: .6rem; color: var(--rose); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.sc-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.sc-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.sc-row:last-child { border-bottom: none; }
.sc-row .k { color: var(--text2); font-weight: 500; }
.sc-row .v { font-family: 'JetBrains Mono', monospace; font-size: .67rem; color: var(--muted); }
.gh-link { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.2rem; background: var(--plum); color: #fff; text-decoration: none; border-radius: 6px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; transition: background .2s; margin-bottom: .7rem; }
.gh-link:hover { background: var(--rose); }
.na-badge { padding: .8rem 1.1rem; background: rgba(212,168,152,.18); border: 1px solid var(--border); border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: .67rem; color: var(--muted); text-align: center; }

/* Skills */
#skills { background: var(--bg); }
.skills-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 7rem; }
.skills-intro p { font-size: 1rem; color: var(--text2); line-height: 1.9; margin-bottom: 1.4rem; }
.skills-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.sg-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; padding-bottom: .55rem; border-bottom: 1.5px solid var(--border); }
.sk-list { list-style: none; }
.sk-list li { font-size: .9rem; color: var(--text2); padding: .45rem 0; border-bottom: 1px solid rgba(212,168,152,.3); display: flex; align-items: center; gap: 9px; transition: color .2s; }
.sk-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blush); flex-shrink: 0; transition: background .2s; }
.sk-list li:hover { color: var(--text); }
.sk-list li:hover::before { background: var(--rose); }

/* Contact */
#contact { background: var(--plum); }
#contact .sec-title { color: #fff; }
#contact .sec-title em { color: var(--blush); }
#contact .sl-num, #contact .sl-txt { color: rgba(212,168,152,.7); }
#contact .sl-line { background: rgba(212,168,152,.2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; }
.c-desc { font-size: 1rem; color: rgba(237,230,218,.72); line-height: 1.85; margin-bottom: 2.8rem; }
.tg-form { display: flex; flex-direction: column; gap: 1rem; }
.tg-form input, .tg-form textarea { background: rgba(255,255,255,.07); border: 1px solid rgba(212,168,152,.25); border-radius: 6px; padding: .9rem 1.1rem; font-family: 'Inter', sans-serif; font-size: .92rem; color: rgba(237,230,218,.9); outline: none; transition: border-color .2s; resize: none; }
.tg-form input::placeholder, .tg-form textarea::placeholder { color: rgba(237,230,218,.35); }
.tg-form input:focus, .tg-form textarea:focus { border-color: rgba(212,168,152,.55); }
.tg-form textarea { min-height: 120px; }
.tg-submit { background: var(--rose); color: #fff; border: none; border-radius: 6px; padding: .95rem 2rem; font-family: 'Inter', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .25s; align-self: flex-start; }
.tg-submit:hover { background: var(--rose2); }
.tg-msg { font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: rgba(212,168,152,.7); margin-top: .4rem; min-height: 1.2em; }
.c-info { display: flex; flex-direction: column; gap: 2rem; padding-top: .5rem; }
.ci-item .ci-lbl { font-family: 'JetBrains Mono', monospace; font-size: .6rem; color: rgba(212,168,152,.6); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .3rem; }
.ci-item .ci-val { font-size: .97rem; color: rgba(237,230,218,.82); }
.c-links { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.c-link { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem; border: 1px solid rgba(212,168,152,.2); text-decoration: none; color: rgba(237,230,218,.82); font-size: .88rem; font-weight: 500; border-radius: 6px; transition: all .25s; position: relative; overflow: hidden; }
.c-link::before { content: ''; position: absolute; inset: 0; background: rgba(212,168,152,.1); transform: translateX(-101%); transition: transform .28s; }
.c-link:hover::before { transform: translateX(0); }
.c-link:hover { border-color: rgba(212,168,152,.42); color: #fff; }
.c-link > * { position: relative; z-index: 1; }

footer { background: #2e1420; padding: 1.6rem 5rem; display: flex; justify-content: space-between; border-top: 1px solid rgba(212,168,152,.1); width: 100%; box-sizing: border-box; }
footer p { font-family: 'JetBrains Mono', monospace; font-size: .6rem; color: rgba(237,230,218,.28); letter-spacing: .06em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fadeUp { from{opacity:0;transform:translateY(26px)} to{opacity:1;transform:none} }
.home-left { animation: fadeUp .9s .2s both; }
.home-photo-col { animation: fadeUp .9s .42s both; }

/* Responsive */
@media (max-width: 960px) {
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Nav */
  nav {
    padding: .8rem 1rem;
    flex-wrap: wrap;
    gap: .3rem;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
  }
  .nav-logo { font-size: .95rem; width: 100%; margin-bottom: .2rem; }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .6rem;
    justify-content: flex-start;
    width: 100%;
  }
  .nav-links a { font-size: .65rem; letter-spacing: .03em; }

  /* Home — фото по центру сверху, текст снизу на всю ширину */
  .home-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 110px 1.2rem 3rem !important;
    text-align: center !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    min-height: 100vh !important;
  }

  /* Фото — по центру сверху */
  .home-photo-col {
    order: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
  .photo-rings { width: 220px; height: 220px; }
  .ring1 { width: 200px; height: 200px; }
  .ring2 { width: 240px; height: 240px; }
  .home-photo { width: 175px; height: 210px; }
  .photo-badge {
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  /* Текст — во всю ширину снизу */
  .home-left {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .home-name { font-size: 2.8rem; }
  .home-sub { font-size: .75rem; }
  .home-bio { width: 100%; max-width: 100%; margin-bottom: 1.2rem; font-size: .95rem; }
  .home-facts { align-items: center; width: 100%; }
  .fact-row { justify-content: center; font-size: .85rem; }
  .home-btns { justify-content: center; flex-wrap: wrap; width: 100%; gap: .8rem; }
  .btn-p, .btn-s { box-sizing: border-box; }

  /* Sections */
  .sec { padding: 4rem 1.2rem; max-width: 100vw; box-sizing: border-box; }
  .about-grid,
  .det-grid,
  .skills-layout,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .proj-grid { grid-template-columns: 1fr; }
  .skills-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .det-meta { flex-wrap: wrap; gap: .8rem; }
  .img-grid { grid-template-columns: 1fr; }

  .reviews-outer { overflow: hidden; max-width: 100vw; }
  .reviews-track { overflow: visible; }
  .rev-card { min-width: 240px; max-width: 240px; }

  /* Footer */
  footer {
    padding: 1.2rem 1.2rem !important;
    flex-direction: column !important;
    gap: .4rem !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .nav-links a { font-size: .6rem; }
  .home-name { font-size: 2.3rem; }
  .sec-title { font-size: 1.9rem; }
  .skills-cols { grid-template-columns: 1fr; }
  .proj-card { padding: 1.5rem; }
  .home-btns { flex-direction: column; align-items: center; }
  .btn-p, .btn-s { width: 100%; text-align: center; }
}
  .home-name { font-size: 2.3rem; }
  .sec-title { font-size: 1.9rem; }
  .skills-cols { grid-template-columns: 1fr; }
  .proj-card { padding: 1.5rem; }
  .home-btns { flex-direction: column; align-items: center; }
  .btn-p, .btn-s { width: 100%; text-align: center; box-sizing: border-box; }
  .home-facts .fact-row { flex-direction: row; flex-wrap: wrap; gap: 4px; }

  .home-name { font-size: 2.5rem; }
  .sec-title { font-size: 2rem; }
  .skills-cols { grid-template-columns: 1fr; }
  .proj-card { padding: 1.8rem; }
  .home-btns { flex-direction: column; align-items: center; }
  .btn-p, .btn-s { width: 100%; text-align: center; }


/* Review */
.reviews-outer {
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}
.reviews-outer::before,
.reviews-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px; z-index: 2;
  pointer-events: none;
}
.reviews-outer::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.reviews-outer::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: reviewsScroll 25s linear infinite;
  align-items: flex-start;
}
.reviews-track.paused { animation-play-state: paused; }

@keyframes reviewsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.rev-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.7rem;
  width: 270px;
  flex-shrink: 0;
  cursor: default;
  align-self: flex-start;
  transition: transform 0.35s ease, border-color 0.3s;
}
.rev-card:hover {
  transform: scale(1.06);
  border-color: var(--rose);
  z-index: 10;
  position: relative;
}
.rev-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1rem;
}
.rev-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(184,96,78,.12);
  color: var(--rose);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.rev-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.rev-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rev-stars { display: flex; gap: 3px; margin-bottom: 0.8rem; }
.rev-star { color: var(--rose); font-size: 11px; }
.rev-text { font-size: 13px; color: var(--text2); line-height: 1.7; overflow: visible; }

/* ── Review form ── */
.review-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
  align-items: start;
}
.review-form-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 1rem;
}
.review-form-title em { font-style: italic; color: var(--rose); }
.review-form-sub { font-size: .92rem; color: var(--muted); line-height: 1.7; }

.review-form { display: flex; flex-direction: column; gap: 1rem; }
.rf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.review-form input,
.review-form textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .85rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  resize: none;
  width: 100%;
}
.review-form input::placeholder,
.review-form textarea::placeholder { color: var(--muted); }
.review-form input:focus,
.review-form textarea:focus { border-color: var(--rose); }
.review-form textarea { min-height: 110px; }

.rf-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .4rem 0;
}
.rf-star {
  font-size: 1.3rem;
  color: var(--blush);
  cursor: pointer;
  transition: color .15s, transform .15s;
  user-select: none;
}
.rf-star.active,
.rf-star.hover { color: var(--rose); transform: scale(1.15); }
.rf-star-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: .05em;
}

.rf-bottom { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.rv-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--muted);
}
.img-ph img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  border-radius: 6px;
  margin-top: 0.5rem;
  display: block;
}
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(30,20,16,.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-inner {
  position: relative;
  max-width: 90vw; max-height: 90vh;
}
.lightbox-inner img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -2rem; right: 0;
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color .2s;
}
.lightbox-close:hover { color: #fff; }
.img-ph { cursor: pointer; }
.img-ph:hover { border-color: var(--rose); }
@media (max-width: 960px) {
  .review-form-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .rf-row { grid-template-columns: 1fr; }
}
.rev-card.focused {
  transform: scale(1.08);
  border-color: var(--rose);
  z-index: 10;
  position: relative;
}