/* ===== Variables ===== */
:root {
  --bg: #0c0e12;
  --bg-elevated: #141820;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e4e8ef;
  --text-muted: #8b95a8;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.15);
  --accent-glow: rgba(45, 212, 191, 0.35);
  --axis-x: #ef4444;
  --axis-y: #22c55e;
  --axis-z: #3b82f6;
  --font-sans: "Noto Sans TC", system-ui, sans-serif;
  --font-display: "JetBrains Mono", "Noto Sans TC", monospace;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Cursor Glow ===== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  z-index: 0;
  transition: opacity 0.3s;
}

@media (hover: none) { .cursor-glow { display: none; } }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(12, 14, 18, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.nav-logo-dot { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

.theme-icon {
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.theme-icon--dark  { opacity: 1; transform: translateY(0); }
.theme-icon--light { opacity: 0; transform: translateY(16px); }
body.light .theme-icon--dark  { opacity: 0; transform: translateY(-16px); }
body.light .theme-icon--light { opacity: 1; transform: translateY(0); }

/* ===== Axis Lines ===== */
.axis-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.15;
}

.axis { position: absolute; display: block; }

.axis--x {
  bottom: 20%; left: 10%;
  width: 40%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--axis-x));
  transform: rotate(-12deg);
}

.axis--y {
  bottom: 25%; left: 15%;
  width: 35%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--axis-y));
  transform: rotate(35deg);
}

.axis--z {
  bottom: 15%; left: 20%;
  width: 2px; height: 30%;
  background: linear-gradient(to top, transparent, var(--axis-z));
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb--1 {
  width: 500px; height: 500px;
  background: rgba(45, 212, 191, 0.1);
  top: -10%; right: -5%;
}

.hero-orb--2 {
  width: 400px; height: 400px;
  background: rgba(59, 130, 246, 0.08);
  bottom: 10%; left: -10%;
  animation-delay: -4s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero--maker .hero-grid--cad {
  background-size: 40px 40px;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.04) 1px, transparent 1px);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero-layer-stack {
  position: absolute;
  bottom: 15%; right: 8%;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.layer--2 { color: var(--accent); letter-spacing: 0.05em; }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero-title {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.scroll-indicator {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 30px var(--accent-soft);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Sections ===== */
.section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 3rem;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  border-radius: calc(var(--radius) + 2px);
  z-index: -1;
}

.photo-frame--maker::before {
  background: linear-gradient(135deg, var(--accent), var(--axis-z) 60%, transparent);
}

.profile-photo {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--bg-elevated);
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.photo-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  background: rgba(12, 14, 18, 0.85);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-stats strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 600;
}

.about-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Skills ===== */
.skills { background: var(--bg-elevated); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.skill-icon { font-size: 2rem; margin-bottom: 1rem; }
.skill-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.skill-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-tags span {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

/* ===== Projects ===== */
.projects { background: var(--bg-elevated); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1d24;
}

.project-card--featured .project-image {
  aspect-ratio: auto;
  min-height: 280px;
}

.project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img { transform: scale(1.03); }

.project-status {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  background: rgba(12, 14, 18, 0.9);
  border: 1px solid var(--axis-y);
  color: var(--axis-y);
  border-radius: 4px;
}

.project-info { padding: 1.5rem; }
.project-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.project-info > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.project-tags span {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-display);
}

.project-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
}

.order-btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

/* ===== Process ===== */
.process { background: var(--bg); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.process-steps--maker {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.process-step:hover { border-color: var(--accent); }
.process-icon { font-size: 2rem; margin-bottom: 1rem; }
.process-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9rem; color: var(--text-muted); }

.process-icon--x { box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); }
.process-icon--y { box-shadow: 0 0 20px rgba(34, 197, 94, 0.2); }
.process-icon--z { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }

/* ===== Contact ===== */
.contact { background: var(--bg-elevated); }

.contact-intro {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-single {
  display: flex;
  justify-content: flex-start;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  min-width: 280px;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.contact-icon { font-size: 1.5rem; }

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value { font-size: 0.95rem; color: var(--text); }

/* ===== Guestbook ===== */
.guestbook { background: var(--bg); }

.guestbook-form-wrap { margin-bottom: 2.5rem; }

.guestbook-input-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.guestbook-input {
  flex: 1;
  min-width: 140px;
  padding: 0.8rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.guestbook-input--msg { flex: 3; }

.guestbook-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.guestbook-input::placeholder { color: var(--text-muted); opacity: 0.7; }

.guestbook-btn { white-space: nowrap; flex-shrink: 0; }

.guestbook-hint {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.guestbook-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  font-size: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.gb-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition);
  animation: fadeUp 0.5s ease forwards;
}

.gb-entry:hover { border-color: var(--accent); }

.gb-entry-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.gb-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.gb-name { font-weight: 500; font-size: 0.95rem; }

.gb-time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

.gb-msg {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.gb-reply {
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

.gb-reply-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.gb-reply-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.gb-dots { display: flex; gap: 3px; }

.gb-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.gb-dots span:nth-child(2) { animation-delay: 0.2s; }
.gb-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1); }
}

/* ===== Footer ===== */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--text);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

/* ===== Order Modal ===== */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.order-modal.open { opacity: 1; pointer-events: auto; }

.order-modal-box {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.order-modal.open .order-modal-box { transform: translateY(0); }

.order-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.order-modal-close:hover { color: var(--text); }

.order-modal-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.order-modal-icon { font-size: 1.75rem; }

.order-modal-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.order-modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.order-modal-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.2rem;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.order-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.order-form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.order-form-row--2col > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.order-form label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.order-form input,
.order-form textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.order-form input::placeholder,
.order-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.order-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Light Theme ===== */
body.light {
  --bg: #f4f6f9;
  --bg-elevated: #eaedf2;
  --bg-card: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.1);
  --text: #1a1d24;
  --text-muted: #5a6275;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --accent-glow: rgba(13, 148, 136, 0.25);
  --accent: #0d9488;
}

body.light .nav { background: rgba(244, 246, 249, 0.8); }

body.light .hero-grid,
body.light .hero--maker .hero-grid--cad {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

body.light .profile-photo { background: var(--bg-elevated); }
body.light .cursor-glow { opacity: 0.15; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 70%; max-width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    transition: right var(--transition);
  }

  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 101; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 240px; margin: 0 auto; }
  .about-stats { gap: 1.5rem; }

  .project-card--featured { grid-template-columns: 1fr; }
  .hero-layer-stack { display: none; }
  .hero-scroll { display: none; }

  .contact-single { justify-content: stretch; }
  .contact-card { min-width: unset; width: 100%; }
}

@media (max-width: 600px) {
  .guestbook-input-row { flex-direction: column; }
  .guestbook-input--msg { flex: 1; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}
