:root {
  --bg: #fbfaf7;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --border: #ece7dd;
  --text: #1f2430;
  --text-dim: #5b6270;
  --accent: #e85d4c;
  --accent-2: #118ab2;
  --radius: 16px;
  --max-w: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; border-radius: 8px; }

nav { display: flex; gap: 28px; }
nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 90px 0 80px;
  background:
    radial-gradient(500px 260px at 10% 0%, rgba(232,93,76,0.10), transparent 60%),
    radial-gradient(500px 260px at 95% 20%, rgba(17,138,178,0.10), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-art { max-width: 320px; margin: 0 auto; }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(232,93,76,0.6);
}
.btn-primary:hover { opacity: 0.92; }

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

/* Sections */
section { padding: 80px 0; }

h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 10px; }

.section-sub { color: var(--text-dim); margin: 0 0 44px; max-width: 560px; }

/* Projects grid */
.projects { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

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

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(31,36,48,0.25);
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-2);
}
.card:hover .card-more { text-decoration: underline; }

.card-media {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.media-warm   { background: linear-gradient(135deg, #ff8a65, #e85d4c); }
.media-blue   { background: linear-gradient(135deg, #4361ee, #0b3d91); }
.media-sky    { background: linear-gradient(135deg, #48b7e0, #118ab2); }
.media-green  { background: linear-gradient(135deg, #52c9a8, #2a9d8f); }
.media-orange { background: linear-gradient(135deg, #f4a261, #e07a3f); }
.media-purple { background: linear-gradient(135deg, #9d4edd, #7b2cbf); }
.media-teal   { background: linear-gradient(135deg, #2ec4b6, #118a7e); }

.card-body { padding: 22px 24px 26px; }

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
}
.tag-warm   { color: #c1481f; background: #fde3d8; }
.tag-blue   { color: #0b3d91; background: #dbe4ff; }
.tag-sky    { color: #0e6f8e; background: #d7f0f8; }
.tag-green  { color: #1f6e63; background: #d7f3ec; }
.tag-orange { color: #a85a26; background: #fbe6d2; }
.tag-purple { color: #5a1e91; background: #ecdcfb; }
.tag-teal   { color: #0e6b60; background: #d3f3ee; }

.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { color: var(--text-dim); font-size: 0.93rem; margin: 0 0 16px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags li {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* About */
.about-inner { max-width: 720px; }
.about p { color: var(--text-dim); }

/* Contact */
.contact p { color: var(--text-dim); margin-bottom: 24px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.visit-counter { margin: 0; }
.visit-counter strong { color: var(--text); }

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 220px; }
}

@media (max-width: 640px) {
  nav { gap: 18px; }
  .hero { padding: 70px 0 50px; }
  section { padding: 56px 0; }
}

/* Project detail pages */
.project-hero {
  padding: 56px 0 60px;
  color: #fff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.back-link:hover { color: #fff; text-decoration: underline; }

.project-hero .card-tag {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.project-hero h1 {
  color: #fff;
  margin: 14px 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.project-logo {
  display: block;
  height: 112px;
  width: auto;
  max-width: 400px;
  margin: 14px 0 4px;
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  padding: 6px 10px;
}

.project-hero .hero-sub { color: rgba(255,255,255,0.9); max-width: 640px; margin: 0; }

.project-body { padding: 60px 0; }

.project-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.notice-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff6da;
  border: 1px solid #f0dfa0;
  color: #7a5d0a;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 28px;
}

.project-layout h2 { font-size: 1.3rem; margin: 0 0 14px; }
.project-layout p { color: var(--text-dim); margin: 0 0 20px; }

.specs {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.specs li {
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.specs li strong { color: var(--text); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin: 12px 0 8px;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.photo-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 10px;
  background: var(--bg);
}

.sidebar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.sidebar-card h3 { margin: 0 0 14px; font-size: 1rem; }

@media (max-width: 780px) {
  .project-layout { grid-template-columns: 1fr; }
}
