/* --- Variables --- */
:root {
  --bg: #171a21;
  --bg-soft: #1a1e24;
  --text: #e8eaed;
  --text-muted: #9ca3af;
  --accent: #5b9bd5;
  --accent-dim: rgba(91, 155, 213, 0.4);
  --font: 'Outfit', -apple-system, sans-serif;
}

/* --- Global reveal animation --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  overflow-x: hidden;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  background: transparent;
  transition: box-shadow 0.35s ease;
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 18, 22, 0.97), rgba(23, 26, 33, 0.95));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}
.header.header--scrolled::before {
  transform: scaleY(1);
}
.header.header--scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}
.logo:hover { color: var(--accent); }
.logo-img {
  display: block;
  height: 2.4rem;
  width: auto;
  object-fit: contain;
}
.logo:hover .logo-img { opacity: 0.9; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.nav-link:hover { color: var(--accent); }
.nav-icon {
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-icon:hover { color: var(--accent); }
.nav-icon--active { color: var(--accent); }

/* Hamburger: hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  z-index: 110;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
body.mobile-menu-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.mobile-menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
body.mobile-menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 105;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  max-width: 85vw;
  background: var(--bg-soft);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-menu-link {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0;
}
.mobile-menu-link:hover {
  color: var(--accent);
}

/* --- Geometric decorations --- */
.geo {
  position: fixed;
  pointer-events: none;
  border: 1px solid var(--accent-dim);
  z-index: 5;
}
.geo--line-top {
  width: 40px;
  height: 2px;
  background: var(--accent);
  border: none;
  transform: rotate(-45deg);
  top: 22%;
  left: 28%;
}
.geo--square {
  width: 14px;
  height: 14px;
  top: 14%;
  right: 32%;
}
.geo--diamond {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  top: 42%;
  right: 28%;
}
.geo--circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  opacity: 0.35;
}

/* --- Vertical labels --- */
.vertical-label {
  position: fixed;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  z-index: 2;
  white-space: nowrap;
}
.vertical-label--role {
  left: 1.5rem;
  bottom: 25%;
  font-size: 0.65rem;
}

/* --- Main content --- */
.main {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero entrance: only when page first loads (body.page-loaded) */
.main .hero {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.main .hero-image-wrap {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
body.page-loaded .main .hero {
  opacity: 1;
  transform: translateX(0);
}
body.page-loaded .main .hero-image-wrap {
  opacity: 1;
  transform: translateX(0);
}

/* Landing: About & Contact fade-in when scrolled into view */
.reveal {
  opacity: 0;
}
.reveal.in-view {
  animation: fadeInUp 0.6s ease forwards;
}

.hero {
  position: relative;
  z-index: 10;
}

.hero-name {
  margin: 0 0 0.35rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}
.hero-subtitle {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.hero-desc {
  margin: 0 0 1.75rem;
  font-size: 1rem;
}
.hero-brand {
  margin-top: -0.75rem;
  margin-bottom: 1.75rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
  font-size: 0.95rem;
  font-weight: 500;
}
.cta:hover .cta-text { color: var(--accent); }
.cta:hover .cta-circle { border-color: var(--accent); }
.cta-text {
  position: relative;
}
.cta-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60%;
  height: 2px;
  background: var(--accent);
}
.cta-circle {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent-dim);
  border-radius: 50%;
}

/* --- Hero image --- */
.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* 3D tilt container for Visora logo on landing */
.hero-logo-3d {
  perspective: 1200px;
}

.hero-image {
  width: 85%;
  max-width: 420px;
  object-fit: contain;
}
.hero-image--logo {
  max-width: 280px;
  filter: none;
  transition: transform 0.2s ease-out;
}

/* --- Page sections --- */
.page-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
#about {
  scroll-margin-top: 0.5cm;
}
#contact {
  scroll-margin-top: 1.2cm;
}
@media (max-width: 902px) {
  #about { scroll-margin-top: 8.5rem; }
  #contact { scroll-margin-top: 9.5rem; }
}
@media (max-width: 600px) {
  #about { scroll-margin-top: 8.5rem; }
  #contact { scroll-margin-top: 9.5rem; }
}
.page-section--about {
  align-items: center;
  justify-content: center;
}
.page-section--contact {
  align-items: center;
  justify-content: center;
}
.section-inner {
  max-width: 640px;
  text-align: center;
}
.section-inner--about {
  max-width: 680px;
  text-align: left;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.about-intro {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
}

.about-block {
  margin-bottom: 1.25rem;
}
.about-subtitle {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.about-block .section-text {
  margin: 0;
  text-align: left;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.about-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Contact form --- */
.section-inner--contact {
  max-width: 480px;
  text-align: left;
}
.contact-intro {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}
.contact-email-link {
  color: var(--accent);
  text-decoration: none;
}
.contact-email-link:hover {
  text-decoration: underline;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: -0.25rem;
}
.contact-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.contact-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.contact-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
.contact-textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: lowercase;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--accent-dim);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.contact-submit:hover {
  background: rgba(91, 155, 213, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.contact-credit {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.8;
}
.contact-credit a {
  color: var(--text-muted);
  text-decoration: none;
}
.contact-credit a:hover {
  color: var(--accent);
}

/* --- Right sidebar (section dots) --- */
.sidebar--right {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 20;
}
.section-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.section-indicator:hover {
  color: var(--text);
}
.section-indicator--active .section-label,
.section-indicator--active:hover .section-label {
  color: var(--text);
}
.section-indicator--active .section-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-dim);
}
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.section-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s;
}

/* --- Portfolio page --- */
.portfolio-main {
  padding: 7rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.portfolio-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.portfolio-subtitle {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
}
.portfolio-intro {
  margin: 0 0 2.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Portfolio: title & intro on load, sections when scrolled into view */
.portfolio-page .portfolio-title,
.portfolio-page .portfolio-subtitle,
.portfolio-page .portfolio-intro {
  opacity: 0;
}
.portfolio-page.page-loaded .portfolio-title {
  animation: fadeInUp 0.5s ease 0.1s forwards;
}
.portfolio-page.page-loaded .portfolio-subtitle {
  animation: fadeInUp 0.5s ease 0.15s forwards;
}
.portfolio-page.page-loaded .portfolio-intro {
  animation: fadeInUp 0.5s ease 0.2s forwards;
}
.portfolio-page .portfolio-section.reveal {
  opacity: 0;
}
.portfolio-page .portfolio-section.reveal.in-view {
  animation: fadeInUp 0.55s ease forwards;
}
/* Portfolio: sections animate on page load (same second), no scroll needed */
.portfolio-page.page-loaded .portfolio-section.reveal {
  animation: fadeInUp 0.55s ease forwards;
}
.portfolio-page.page-loaded .portfolio-main > .portfolio-section.reveal:nth-of-type(1) {
  animation-delay: 0.3s;
}
.portfolio-page.page-loaded .portfolio-main > .portfolio-section.reveal:nth-of-type(2) {
  animation-delay: 0.45s;
}

.portfolio-section {
  margin-bottom: 3rem;
}
.portfolio-section:last-child {
  margin-bottom: 0;
}
.portfolio-section-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.project-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.project-card:hover {
  border-color: rgba(91, 155, 213, 0.3);
  background: rgba(255, 255, 255, 0.06);
}
.project-card-image {
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card-placeholder {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.project-card-body {
  padding: 1.25rem;
}
.project-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.project-card-desc {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.project-card-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.project-card-link:hover {
  text-decoration: underline;
}

/* --- Portfolio lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox--open {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* --- Footer (sticky to bottom) --- */
.footer {
  margin-top: auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-logo {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.footer-logo:hover {
  color: var(--accent);
}
.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--accent);
}

/* --- Background watermark --- */
.bg-watermark {
  position: fixed;
  bottom: 5%;
  right: 5%;
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: -0.02em;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* --- Responsive: sidebar text hidden from 1166px down --- */
@media (max-width: 1166px) {
  .sidebar--right .section-label { display: none; }
  .section-indicator { gap: 0; }
}

/* --- Responsive: tablet (landing larger below 902px) --- */
@media (max-width: 902px) {
  .main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    padding: 5.5rem 2rem 3rem;
    text-align: center;
    min-height: 100vh;
  }
  .hero { padding: 0; margin: 0; max-width: 100%; }
  .hero-name { font-size: clamp(2.2rem, 9vw, 3.25rem); margin: 0 0 0.15rem 0; }
  .hero-subtitle { font-size: 0.9rem; margin: 0 0 0.35rem 0; }
  .hero-desc { font-size: 1.05rem; margin: 0 auto 0.85rem; line-height: 1.65; }
  .cta-group { justify-content: center; gap: 0.85rem; margin-top: 0; }
  .cta { justify-content: center; font-size: 1rem; }
  .hero-image-wrap { order: -1; margin: 0; }
  .hero-image { max-width: 300px; }
  .vertical-label--role { display: none; }
  .geo--line-top { left: 15%; }
  .geo--square,
  .geo--diamond,
  .geo--circle { display: none; }
  .sidebar--right { right: 1.25rem; }
  .page-section { padding: 3rem 1.5rem; min-height: 80vh; }
  .section-title { font-size: 1.6rem; margin-bottom: 1.25rem; }
  .section-inner--about { max-width: 100%; padding: 0 0.5rem; }
  .about-intro { font-size: 1rem; }
  .section-inner--contact { max-width: 100%; padding: 0 0.5rem; }
  .portfolio-main { padding: 6rem 1.5rem 3rem; }
  .portfolio-title { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .portfolio-subtitle { font-size: 0.95rem; }
  .portfolio-intro { margin-bottom: 2rem; font-size: 0.95rem; }
  .portfolio-section { margin-bottom: 2.5rem; }
  .portfolio-section-title { font-size: 1.1rem; margin-bottom: 1rem; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-card-body { padding: 1rem; }
  .project-card-title { font-size: 1.05rem; }
  .project-card-desc { font-size: 0.85rem; }
  .bg-watermark { font-size: clamp(4rem, 14vw, 8rem); bottom: 2%; right: 2%; }
  .lightbox { padding: 1rem; }
  .lightbox-close { top: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.5rem; }
}

/* --- Responsive: mobile (hamburger menu from 600px down) --- */
@media (max-width: 600px) {
  .hamburger { display: flex; }
  .nav { display: none; }
  .mobile-menu { display: block; }
  body.mobile-menu-open .mobile-menu {
    pointer-events: auto;
    opacity: 1;
  }
  body.mobile-menu-open .mobile-menu-backdrop { opacity: 1; }
  body.mobile-menu-open .mobile-menu-panel { transform: translateX(0); }
  .header { padding: 1.1rem 1.25rem; padding-top: max(1.1rem, env(safe-area-inset-top)); }
  .logo { font-size: 1.05rem; }
  .logo-img { height: 2rem; }
  .main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    padding: 4.5rem 1.25rem 2.25rem;
    min-height: 100vh;
  }
  .hero { padding: 0; margin: 0; max-width: 100%; }
  .hero-name { font-size: clamp(1.9rem, 10vw, 2.75rem); margin: 0 0 0.1rem 0; }
  .hero-subtitle { font-size: 0.85rem; margin: 0 0 0.25rem 0; letter-spacing: 0.03em; }
  .hero-desc { font-size: 1rem; margin: 0 auto 0.65rem; line-height: 1.6; }
  .cta-group { flex-direction: column; align-items: center; gap: 0.6rem; margin-top: 0; }
  .cta { font-size: 0.95rem; }
  .cta-circle { width: 26px; height: 26px; }
  .hero-image-wrap { order: -1; margin: 0; }
  .hero-image { max-width: 260px; }
  .page-section { padding: 2.5rem 1rem; min-height: 70vh; }
  .section-title { font-size: 1.4rem; margin-bottom: 1rem; }
  .section-inner--about { padding: 0; text-align: center; }
  .about-intro { font-size: 0.95rem; margin-bottom: 1.25rem; text-align: center; }
  .about-block { margin-bottom: 1rem; text-align: center; }
  .about-block .section-text { text-align: center; }
  .about-tags { margin-top: 1.5rem; padding-top: 1.25rem; gap: 0.4rem; }
  .about-tag { font-size: 0.75rem; padding: 0.3rem 0.7rem; }
  .section-inner--contact { padding: 0; }
  .contact-intro { font-size: 0.9rem; margin-bottom: 1.25rem; }
  .contact-submit { min-height: 44px; padding: 0.75rem 1.5rem; align-self: stretch; }
  .sidebar--right { right: 0.75rem; gap: 0.6rem; }
  .sidebar--right .section-label { display: none; }
  .section-indicator { gap: 0; }
  .portfolio-main { padding: 5rem 1rem 2.5rem; }
  .portfolio-title { font-size: 1.6rem; }
  .portfolio-subtitle { font-size: 0.9rem; }
  .portfolio-intro { font-size: 0.9rem; margin-bottom: 1.5rem; }
  .portfolio-section { margin-bottom: 2rem; }
  .portfolio-section-title { font-size: 1rem; }
  .portfolio-grid { gap: 1.25rem; }
  .project-card-body { padding: 0.9rem; }
  .project-card-title { font-size: 1rem; }
  .project-card-desc { font-size: 0.8rem; }
  .project-card-link { font-size: 0.8rem; }
  .footer { padding: 1.5rem 1rem; }
  .footer-inner { flex-direction: column; text-align: center; justify-content: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .bg-watermark { font-size: 3.5rem; bottom: 1%; right: 1%; opacity: 0.5; }
  .lightbox { padding: 0.75rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; width: 44px; height: 44px; font-size: 1.75rem; }
  .lightbox-img { max-height: 85vh; }
}

/* --- Responsive: hide sidebar on narrow mobile (e.g. 453px) --- */
@media (max-width: 453px) {
  .sidebar--right { display: none; }
}

/* --- Responsive: small mobile --- */
@media (max-width: 380px) {
  .header { padding: 0.75rem 1rem; }
  .nav { gap: 0.75rem; }
  .nav-link { font-size: 0.7rem; }
  .main { padding: 4rem 1rem 2rem; }
  .hero-name { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.75rem; }
  .hero-desc { font-size: 0.9rem; }
  .page-section { padding: 2rem 0.75rem; }
  .section-title { font-size: 1.25rem; }
  .portfolio-main { padding: 4.5rem 0.75rem 2rem; }
  .portfolio-title { font-size: 1.4rem; }
  .portfolio-subtitle { font-size: 0.85rem; }
  .portfolio-section-title { font-size: 0.9rem; }
  .project-card-body { padding: 0.75rem; }
}
