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

:root {
  --bg: #faf6f1;
  --bg-alt: #f0ebe3;
  --card: #ffffff;
  --border: #e0d6c8;
  --border-hover: #c4a882;
  --text: #2c2416;
  --text-mid: #5e4f3d;
  --text-light: #9a8b7a;
  --accent: #8b6914;
  --radius: 10px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.accent { color: var(--accent); }

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* NAV */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: all 0.3s;
  width: 100%;
}

.navbar.scrolled {
  background: rgba(250, 246, 241, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }

.logo-img {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-logo {
  height: 36px;
  max-height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  opacity: 0.8;
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* HERO */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  width: 100%;
}

.hero .container {
  width: 100%;
}

.hero-content {
  max-width: 600px;
  width: 100%;
}

.hero-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 0.98rem;
  color: var(--text-mid);
  max-width: 460px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(139, 105, 20, 0.07);
  border: 1px solid rgba(139, 105, 20, 0.2);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 24px;
  animation: fadeSlideIn 0.8s ease both 0.3s;
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}

.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: 0.85; }

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

.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-alt);
}

/* SERVICES */
.services {
  padding: 80px 0;
  background: var(--bg-alt);
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(44, 36, 22, 0.06);
}

.service-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card > p {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 14px;
}

.service-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.service-tech span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* APPROACH */
.approach {
  padding: 80px 0;
  width: 100%;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.approach-item {
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: all 0.2s;
}

.approach-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 2px 12px rgba(44, 36, 22, 0.05);
}

.approach-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.approach-item h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.approach-item p {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* TECH STACK */
.stack {
  padding: 60px 0;
  background: var(--bg-alt);
}

.stack .section-title { margin-bottom: 24px; }

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.stack-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--card);
  color: var(--text-mid);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.stack-tags span:hover {
  border-color: var(--border-hover);
  color: var(--accent);
}

/* CONTACT */
.contact { padding: 80px 0; }

.contact-box {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

.contact-box h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-box p {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* WRITER STRIP */
.writer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.writer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.writer-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.writer-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 2px;
}

.writer-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.writer-role {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.3;
}

/* FOOTER */
.footer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-inner span:first-child { font-weight: 600; color: var(--text); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 240px; height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 80px 28px;
    gap: 20px;
    transition: right 0.3s;
    border-left: 1px solid var(--border);
  }

  .nav-links.active { right: 0; }
  .nav-toggle { display: flex; }

  .hero { min-height: 70vh; padding-top: 80px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }

  .services-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .writer-inner { gap: 12px; }
  .writer-photo { width: 44px; height: 44px; }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .approach-grid { grid-template-columns: 1fr; }
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
