/* ===========================================================
   Lakkireddy Labs — home (calm rebuild)
   Light, fast, no canvas/3D. Brand tokens carried over from
   styles.css; this sheet is self-contained for index.html.
=========================================================== */

:root {
  --bg:      #f5f1ea;
  --bg-2:    #efe9dd;
  --card:    #fffdf8;
  --ink:     #1a1814;
  --ink-1:   #4a4640;
  --ink-2:   #82786a;
  --ink-3:   #a39d8e;
  --warm:      #b8884a;
  --warm-deep: #8a6532;
  --warm-soft: rgba(184, 136, 74, 0.10);
  --line:    rgba(26, 24, 20, 0.10);
  --line-2:  rgba(26, 24, 20, 0.16);
  --shadow:  0 1px 2px rgba(26,24,20,.04), 0 14px 36px rgba(26,24,20,.07);
  --shadow-lg: 0 2px 6px rgba(26,24,20,.06), 0 28px 70px rgba(26,24,20,.12);

  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink-1);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

h1, h2, h3 { color: var(--ink); margin: 0 0 .4em; line-height: 1.1; font-weight: 400; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--warm-deep);
  margin: 0 0 16px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand-name { font-family: var(--serif); font-size: 21px; }
.brand-name em { color: var(--warm-deep); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--ink-1); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--warm-deep); }
.nav-links .cta {
  background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 10px; font-weight: 600;
}
.nav-links .cta:hover { color: var(--bg); background: var(--warm-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 12px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); background: var(--warm-deep); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--warm-deep); color: var(--warm-deep); }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 70%;
  background: radial-gradient(50% 60% at 30% 20%, var(--warm-soft), transparent 70%);
  pointer-events: none;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.7rem, 6.4vw, 5rem); max-width: 16ch; letter-spacing: -.015em; }
.hero h1 em { font-style: italic; color: var(--warm-deep); }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-1); max-width: 56ch; margin: 22px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Section frame ---------- */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 46ch; margin-bottom: 44px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3rem); }
.section-head h2 em { font-style: italic; color: var(--warm-deep); }
.section-head p { color: var(--ink-1); margin: 14px 0 0; }

/* ---------- Beliefs grid ---------- */
.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.belief {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px; box-shadow: var(--shadow);
}
.belief .b-num { font-family: var(--mono); font-size: 12.5px; color: var(--warm); font-weight: 600; }
.belief h3 { font-family: var(--serif); font-size: 1.5rem; margin: 10px 0 8px; }
.belief p { margin: 0; color: var(--ink-1); font-size: 15.5px; }

/* ---------- Work / portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.product {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.product-top { display: flex; align-items: center; gap: 16px; }
.product-icon { width: 60px; height: 60px; border-radius: 23%; box-shadow: var(--shadow); flex: none; }
.product-icon--mono {
  display: grid; place-items: center; background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-weight: 600; font-size: 24px;
}
.product h3 { font-family: var(--serif); font-size: 1.7rem; margin: 0; }
.product .status { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--warm-deep); display: flex; align-items: center; gap: 7px; }
.product .status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warm); display: inline-block; }
.product .status.live .dot { background: #2faf6a; }
.product p { margin: 0; color: var(--ink-1); flex: 1; }
.product .links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 600; font-size: 15px; color: var(--warm-deep); }
.product .links span:hover { color: var(--ink); }
.product--soon { align-items: flex-start; justify-content: center; border-style: dashed; box-shadow: none; background: transparent; }
.product--soon h3 { color: var(--ink-2); }
.product--soon p { color: var(--ink-3); }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: 100px 0; }
.contact h2 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.contact h2 em { font-style: italic; color: var(--warm-deep); }
.contact p { color: var(--ink-1); max-width: 44ch; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-2); font-size: 14px; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-1); text-decoration: none; font-weight: 500; }
footer a:hover { color: var(--warm-deep); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Reveal (subtle, opt-out for reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--easing, ease), transform .7s var(--easing, ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .beliefs { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .beliefs { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.cta) { display: none; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
