/* =====================================================================
   Vivek AI Labs — Quiet Confidence
   Warm Claude palette · Hanken Grotesk · minimal, premium, trustworthy
   ===================================================================== */

:root {
  --cream:       #F4F1EA;
  --cream-deep:  #ECE6DA;
  --paper:       #FBFAF6;
  --ink:         #201E1A;
  --ink-soft:    #5C554B;
  --muted:       #8A8278;
  --coral:       #D97757;
  --coral-deep:  #C25E3F;
  --line:        #E4DDD0;
  --line-soft:   #EDE7DB;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

  --maxw: 1200px;
  --pad: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--coral); color: #fff; }
img { max-width: 100%; display: block; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(72px, 11vw, 150px) 0; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--coral-deep); display: inline-flex; align-items: center; gap: 12px; margin: 0 0 26px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--coral); }
.eyebrow.center { justify-content: center; }

.section-head { max-width: 680px; }
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.032em;
  font-weight: 600; margin: 0;
}
.section-head p {
  font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); margin: 20px 0 0; max-width: 560px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1;
  padding: 16px 28px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 80%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); flex: none; }
.nav__links { display: flex; gap: 36px; align-items: center; }
.nav__links a {
  font-size: 15.5px; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .18s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__cta { font-size: 15px; font-weight: 600; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: background .18s ease; white-space: nowrap; }
.nav__cta:hover { background: #000; }
.nav__toggle { display: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero h1 {
  font-size: clamp(46px, 8.3vw, 104px); line-height: 0.98; letter-spacing: -0.038em;
  font-weight: 600; margin: 0; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--coral); }
.hero__sub {
  font-size: clamp(18px, 2.3vw, 22px); line-height: 1.5; color: var(--ink-soft);
  max-width: 580px; margin: 34px 0 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.proof {
  margin-top: clamp(56px, 8vw, 86px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.proof__item { padding: 40px 24px 8px 28px; border-right: 1px solid var(--line); }
.proof__item:first-child { padding-left: 0; }
.proof__item:last-child { border-right: none; }
.proof__item b { display: block; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.proof__item span { font-size: 14.5px; color: var(--muted); font-weight: 500; }

/* =====================================================================
   TESTIMONIAL (placed high — social proof early)
   ===================================================================== */
.testimonial { background: var(--ink); color: var(--paper); }
.testimonial .wrap { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }
.testimonial .eyebrow { color: var(--coral); }
.testimonial .eyebrow::before { background: var(--coral); }
.quote {
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.32; letter-spacing: -0.018em;
  font-weight: 500; margin: 0; max-width: 18ch; max-width: 900px;
}
.quote .dim { color: #8E867A; }
.quote .hl { color: var(--coral); }
.attrib { display: flex; align-items: center; gap: 16px; margin-top: 44px; }
.attrib__avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, #2E2A24, #211E19); border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--coral); font-size: 18px;
}
.attrib b { display: block; font-size: 16px; font-weight: 600; }
.attrib span { font-size: 14.5px; color: #A39A8C; white-space: nowrap; }

/* =====================================================================
   SERVICES
   ===================================================================== */
.services { background: var(--cream); }
.svc-grid { margin-top: clamp(44px, 6vw, 72px); display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.svc {
  background: var(--paper); padding: clamp(30px, 4vw, 48px);
  display: grid; grid-template-columns: 56px 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: start;
  transition: background .2s ease;
}
.svc:hover { background: #fff; }
.svc__num {
  font-family: var(--mono); font-size: 14px; color: var(--coral-deep); font-weight: 500;
  padding-top: 6px; letter-spacing: 0.02em;
}
.svc__main h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.svc__main p { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 18px; max-width: 60ch; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream);
}
.svc__cta {
  align-self: center; font-size: 28px; color: var(--muted); width: 48px; height: 48px;
  border: 1.5px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: all .2s ease; flex: none;
}
.svc:hover .svc__cta { color: #fff; background: var(--coral); border-color: var(--coral); transform: rotate(-45deg); }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.about__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.portrait {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: var(--cream-deep); aspect-ratio: 4 / 5;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.portrait__cap {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(6px);
  color: var(--paper); border-radius: 9px; padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.portrait__cap b { font-size: 15px; font-weight: 600; }
.portrait__cap span { font-size: 12.5px; color: #B3A99B; }
.about__body h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0; }
.about__body .lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink); margin: 26px 0 18px; line-height: 1.55; font-weight: 500; }
.about__body p { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 16px; max-width: 62ch; }
.about__skills { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.about__skills .tag { background: var(--cream); }

/* =====================================================================
   PROJECTS
   ===================================================================== */
.projects { background: var(--cream); }
.proj-grid { margin-top: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 28px); }
.proj {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.proj:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -22px rgba(60,45,30,.4); border-color: var(--cream-deep); }
.proj.featured { grid-column: 1 / -1; }
.proj__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.proj__badge { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--coral-deep); background: color-mix(in srgb, var(--coral) 12%, transparent); padding: 5px 11px; border-radius: 999px; }
.proj__star { font-size: 13px; color: var(--ink-soft); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.proj h3 { font-size: clamp(21px, 2.4vw, 27px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.proj p { font-size: 16px; color: var(--ink-soft); margin: 0 0 20px; line-height: 1.55; }
.proj__metrics { display: flex; gap: 28px; margin: auto 0 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.proj__metric b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.proj__metric span { font-size: 13px; color: var(--muted); }
.proj__tech { display: flex; flex-wrap: wrap; gap: 7px; }
.proj__tech .tag { font-size: 12.5px; padding: 5px 11px; background: var(--cream); }
.proj__link { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--coral-deep); display: inline-flex; align-items: center; gap: 7px; }
.proj__link .arrow { transition: transform .2s ease; }
.proj__link:hover .arrow { transform: translateX(3px); }
/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { background: var(--ink); color: var(--paper); }
.contact .wrap { padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(56px, 7vw, 90px); }
.contact__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact .eyebrow { color: var(--coral); }
.contact .eyebrow::before { background: var(--coral); }
.contact h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.032em; font-weight: 600; margin: 0; }
.contact__lead { font-size: clamp(17px, 2vw, 20px); color: #B7AE9F; margin: 22px 0 40px; max-width: 42ch; }
.contact__direct { display: flex; flex-direction: column; gap: 4px; }
.contact__row {
  display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12);
}
.contact__row:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.contact__icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex: none; color: var(--coral); }
.contact__icon svg { width: 19px; height: 19px; }
.contact__row .meta { flex: 1; }
.contact__row .meta small { display: block; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: #8E867A; margin-bottom: 3px; }
.contact__row .meta b { font-size: 16.5px; font-weight: 500; }
.contact__row .go { color: #8E867A; transition: transform .2s ease, color .2s ease; }
.contact__row:hover .go { color: var(--paper); transform: translateX(3px); }

/* form */
.form { background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(28px, 4vw, 44px); }
.form h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.form .form-sub { font-size: 15px; color: var(--ink-soft); margin: 0 0 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 11px; padding: 14px 16px;
  transition: border-color .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--coral); background: #fff; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form .btn:disabled { cursor: wait; opacity: .72; }
.botcheck { display: none !important; }
.form__status { min-height: 18px; font-size: 13px; text-align: center; margin: 12px 0 0; color: var(--ink-soft); }
.form__status.error { color: var(--coral-deep); }
.form__note { font-size: 13px; color: var(--muted); text-align: center; margin: 16px 0 0; }
.form__success {
  display: none; flex-direction: column; align-items: center; text-align: center; padding: 30px 10px;
}
.form__success.show { display: flex; }
.form__success .check { width: 60px; height: 60px; border-radius: 50%; background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.form__success h3 { font-size: 22px; margin-bottom: 8px; }
.form__success p { font-size: 15.5px; color: var(--ink-soft); margin: 0; max-width: 32ch; }
.form.sent .form__body { display: none; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: var(--paper); border-top: 1px solid rgba(255,255,255,.1); }
.footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .brand { color: var(--paper); }
.footer__links { display: flex; gap: 26px; font-size: 15px; color: #A39A8C; }
.footer__links a:hover { color: var(--paper); }
.footer__copy { font-size: 13.5px; color: #6E665B; width: 100%; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }

/* =====================================================================
   REVEAL — intentionally inert (design brief: no flashy animations).
   Classes kept on markup for optional future use; content is always visible.
   ===================================================================== */
.reveal { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof__item:nth-child(2) { border-right: none; }
  .proof__item:nth-child(1), .proof__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; }
  .proj-grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 40px 1fr; }
  .svc__cta { display: none; }
}
@media (max-width: 560px) {
  .proof { grid-template-columns: 1fr; }
  .proof__item { border-right: none; border-bottom: 1px solid var(--line); }
  .proof__item:last-child { border-bottom: none; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}
