/* ============================================
   Vibeit Labs — Light, warm, editorial
   ============================================ */

:root {
  --bg: #fdfaf6;
  --surface: #ffffff;
  --surface-tinted: #faf6f0;
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);

  --text: #18120a;
  --text-muted: #7a6d62;
  --text-faint: #b8ada3;

  /* Saffron-terracotta accent */
  --accent: #c2500a;
  --accent-muted: #a8430a;
  --accent-light: #fff0e6;
  --accent-mid: rgba(194, 80, 10, 0.12);

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --content: min(90vw, 680px);
  --wide: min(94vw, 1160px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.07);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Noise — hidden in light mode */
.noise { display: none; }

/* Ambient blobs */
.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.gradient-orb--1 {
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(circle, rgba(194, 80, 10, 0.07) 0%, transparent 70%);
  top: -25%;
  right: -20%;
  animation: drift 22s ease-in-out infinite;
}
.gradient-orb--2 {
  width: 40vmax;
  height: 40vmax;
  background: radial-gradient(circle, rgba(255, 200, 140, 0.12) 0%, transparent 70%);
  bottom: -15%;
  left: -10%;
  animation: drift 28s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, -4%); }
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--space-lg);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(253, 250, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.logo:hover { color: var(--accent); }

.nav { display: flex; gap: var(--space-lg); }
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}
.nav a:hover { color: var(--text); }

/* ── Main ── */
main {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
}

/* ── Hero ── */
.hero {
  padding: var(--space-xl) var(--space-lg) var(--space-xl);
  max-width: var(--content);
  margin: 0 auto;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}
.hero__kicker i { font-size: 0.85rem; }
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.09;
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.025em;
  color: var(--text);
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
.hero__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 34ch;
  line-height: 1.7;
  margin: 0 0 var(--space-xl);
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  letter-spacing: 0.01em;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.hero__cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(194, 80, 10, 0.28);
}
.hero__cta i { font-size: 0.8rem; }

/* ── Section common ── */
.section {
  padding: var(--space-2xl) var(--space-lg);
  max-width: var(--wide);
  margin: 0 auto;
}
.section__inner {
  max-width: var(--content);
  margin: 0 auto;
}
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text-faint);
  margin: 0 0 var(--space-sm);
}
.section__label i { font-size: 0.7rem; }
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 var(--space-sm);
  color: var(--text);
  letter-spacing: -0.02em;
}
.section__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 var(--space-xl);
  max-width: 36ch;
  line-height: 1.65;
}

/* ── Vibecoding ── */
.section--vibecoding {
  padding-top: var(--space-xl);
}
.vibecoding__block {
  position: relative;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) calc(var(--space-xl) + 4px);
  border-left: 2px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 12px 12px 0;
}
.vibecoding__text {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Projects ── */
.section--projects {
  padding-top: var(--space-2xl);
}
.section--projects .section__inner {
  max-width: var(--wide);
}
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Card image */
.project-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-tinted);
}
.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.project-card:hover .project-card__image {
  transform: scale(1.04);
}

/* Card body */
.project-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}
.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.project-card__number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.project-card__tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.project-card__tagline i { font-size: 0.7rem; }
.project-card__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.project-card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* Card enter animation */
.project-card--animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.project-card--animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card--animate:hover {
  transform: translateY(-4px);
}

/* ── Contact / Work with us ── */
.section--contact {
  padding-left: 0;
  padding-right: 0;
}
.contact-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-lg);
}
.contact-grid {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact-services { max-width: 480px; }
.contact-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 var(--space-lg);
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.service-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}
.service-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.service-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.service-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Honeypot — visually hidden, not display:none so smarter bots still see it */
.hp-field {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ── Contact form ── */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.form-label i {
  font-size: 0.75rem;
  color: var(--accent);
}
.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 80, 10, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-shadow: 0 2px 8px rgba(194, 80, 10, 0.22);
  align-self: flex-start;
}
.form-submit:hover {
  background: var(--accent-muted);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(194, 80, 10, 0.32);
}
.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.form-feedback {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
  border-radius: 8px;
}
.form-feedback[hidden] { display: none; }
.form-feedback--success {
  background: var(--accent-light);
  color: var(--accent-muted);
  border: 1px solid rgba(194, 80, 10, 0.25);
}
.form-feedback--success i { color: var(--accent); }
.form-feedback--error {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.form-feedback--error i { color: var(--accent); }

/* ── Closing ── */
.section--closing {
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  text-align: center;
}
.section__inner--center { text-align: center; }
.closing__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  margin: 0 0 var(--space-sm);
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.closing__title em { color: var(--accent); font-style: italic; }
.closing__text { color: var(--text-muted); font-size: 1rem; margin: 0; }

/* ── Divider ── */
.section-divider {
  width: var(--content);
  max-width: 90vw;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Footer ── */
.site-footer {
  padding: var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .project-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .contact-services { max-width: 100%; }
}

@media (max-width: 600px) {
  .site-header { padding: 1rem var(--space-md); }
  .nav { gap: var(--space-md); }
  .hero { padding: var(--space-lg) var(--space-md) var(--space-lg); }
  .project-list { grid-template-columns: 1fr; }
  .vibecoding__block { padding: var(--space-lg); }
  .contact-header,
  .contact-grid { padding-left: var(--space-md); padding-right: var(--space-md); }
  .contact-form-wrap { padding: var(--space-md); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .gradient-orb--1, .gradient-orb--2 { animation: none; }
  .project-card--animate { opacity: 1; transform: none; }
  .project-card--animate:hover { transform: none; }
  .project-card:hover { transform: none; }
  .project-card:hover .project-card__image { transform: none; }
}
