/* Amit Raj Shrivastava — personal brand site
   Dark editorial theme · no external fonts · lightweight motion */

:root {
  --bg: #07100f;
  --bg-2: #0b1716;
  --surface: #0f1d1c;
  --surface-2: #132625;
  --line: rgba(232, 224, 206, 0.12);
  --text: #f3eee3;
  --muted: #a9b6b1;
  --gold: #d6b26b;
  --gold-soft: #e8cf9b;
  --teal: #4fd4c3;
  --teal-deep: #0f5c57;
  --radius: 18px;
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
main { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in 0.7s var(--ease) both;
}
body.leaving { opacity: 0; transform: translateY(-6px); transition: opacity 0.22s ease, transform 0.22s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@view-transition { navigation: auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
ul { padding: 0; margin: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: #1a1405; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1.2rem; display: block;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.prose { max-width: 66ch; }
.prose p { color: #d6dcd8; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s, transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 16, 15, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.02em; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); font-size: 0.95rem; font-family: var(--serif);
}
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav-links a { font-size: 0.9rem; color: var(--muted); position: relative; padding: 6px 0; transition: color 0.25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.3s, background 0.3s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(7, 16, 15, 0.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { font-size: 1.1rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--gold); color: #1a1405; }
.btn-primary:hover { background: var(--gold-soft); box-shadow: 0 10px 40px -12px rgba(214, 178, 107, 0.6); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(243, 238, 227, 0.28); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.link-arrow { color: var(--gold); font-weight: 600; font-size: 0.95rem; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow .arr { transition: transform 0.35s var(--ease); }
.link-arrow:hover .arr { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: grid; align-items: center; position: relative; isolation: isolate;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.orb--teal { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: -12%; top: 4%; background: radial-gradient(circle, rgba(79, 212, 195, 0.28), transparent 68%); }
.orb--gold { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; right: -8%; bottom: -6%; background: radial-gradient(circle, rgba(214, 178, 107, 0.2), transparent 68%); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-inner { text-align: center; max-width: 960px; margin-inline: auto; }
.hero h1 {
  font-size: clamp(2.7rem, 9vw, 6.6rem); line-height: 1.02; margin-bottom: 0.3em; letter-spacing: -0.025em;
  color: #f7efdc;
}
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; }
.word > span { display: inline-block; background: linear-gradient(180deg, #fffaf0 0%, #e2d2ae 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: word-up 1.1s var(--ease) both; animation-delay: calc(var(--i) * 0.14s + 0.25s); }
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }
.hero .headline { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.7rem); color: var(--gold-soft); margin-bottom: 1.2rem; }
.hero .support { color: var(--muted); max-width: 56ch; margin: 0 auto 2.4rem; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero .eyebrow, .hero .headline, .hero .support, .hero-cta { animation: fade-up 1s var(--ease) both; }
.hero .eyebrow { animation-delay: 0.1s; }
.hero .headline { animation-delay: 0.85s; }
.hero .support { animation-delay: 1s; }
.hero-cta { animation-delay: 1.15s; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.motif { width: min(560px, 80%); height: 56px; margin: 0 auto 1.6rem; display: block; overflow: visible; }
.motif path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.motif .tech { stroke: var(--teal); animation: draw 1.6s var(--ease) 0.6s forwards; }
.motif .ink { stroke: var(--gold); animation: draw 1.8s var(--ease) 1.1s forwards; }
.motif circle { fill: var(--teal); opacity: 0; animation: fade-up 0.6s ease 0.6s forwards; }
.motif circle.end { fill: var(--gold); animation-delay: 2.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); transform: translateX(-50%); opacity: 0.7; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateX(-50%) scaleY(0.5); transform-origin: top; } 50% { transform: translateX(-50%) scaleY(1); transform-origin: top; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(150px, 20vw, 230px) 0 clamp(50px, 7vw, 90px); position: relative; isolation: isolate; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(79, 212, 195, 0.14), transparent 66%);
}
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); max-width: 18ch; }
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: 0.5; }

/* ---------- Intro split ---------- */
.split { display: grid; gap: clamp(36px, 6vw, 90px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 0.85fr 1.15fr; } .split--flip { grid-template-columns: 1.15fr 0.85fr; } .split--flip .portrait { order: 2; } }
.portrait { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.portrait::before {
  content: ""; position: absolute; inset: 8% -6% -4% -6%; border-radius: 28px;
  background: linear-gradient(160deg, var(--teal-deep), transparent 70%); border: 1px solid var(--line);
}
.portrait::after {
  content: ""; position: absolute; inset: -14px auto auto -14px; width: 90px; height: 90px;
  border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); border-radius: 6px 0 0 0;
}
.portrait img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); }

/* ---------- Work grid ---------- */
.areas { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 3rem; }
.area {
  padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface), transparent);
  position: relative; overflow: hidden; transition: border-color 0.4s, transform 0.5s var(--ease);
}
.area .num { font-family: var(--serif); color: var(--gold); font-size: 0.95rem; letter-spacing: 0.14em; display: block; margin-bottom: 22px; }
.area p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.area:hover { border-color: rgba(79, 212, 195, 0.45); transform: translateY(-6px); }

/* ---------- Venture cards ---------- */
.ventures { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 3rem; }
.venture {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--surface); transition: transform 0.55s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.venture:hover { transform: translateY(-8px); border-color: rgba(214, 178, 107, 0.5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(214, 178, 107, 0.08); }
.logo-plate {
  background: #f6f2e9; display: grid; place-items: center; height: 170px; padding: 26px; position: relative; overflow: hidden;
}
.logo-plate img { max-height: 124px; max-width: 78%; width: auto; height: auto; object-fit: contain; transition: transform 0.6s var(--ease); }
.venture:hover .logo-plate img { transform: scale(1.06); }
.logo-plate--dark { background: #0d3a37; }
.venture-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.venture-body h3 { margin: 0; }
.venture-body p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.venture-body .link-arrow { margin-top: auto; padding-top: 14px; }
.venture-url { font-size: 0.8rem; color: rgba(169, 182, 177, 0.7); letter-spacing: 0.03em; }

.venture-row { display: grid; gap: clamp(24px, 5vw, 70px); grid-template-columns: 1fr; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); align-items: center; }
@media (min-width: 860px) { .venture-row { grid-template-columns: 0.8fr 1.2fr; } }
.venture-row:first-of-type { border-top: 0; padding-top: 0; }
.venture-row .logo-plate { border-radius: 22px; height: 240px; }
.venture-row .logo-plate img { max-height: 180px; max-width: 70%; }
.venture-row h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.venture-row p { color: #d0d7d3; max-width: 60ch; }

/* ---------- Literature ---------- */
.quote-band { text-align: center; }
.quote-band h2 { max-width: 20ch; margin-inline: auto; }
.credit { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 1.2rem; margin: 1.6rem 0 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.6rem 0 0; }
.tags li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; color: #d6dcd8; background: rgba(255, 255, 255, 0.02); transition: border-color 0.3s, color 0.3s; }
.tags li:hover { border-color: var(--gold); color: var(--gold-soft); }
.note-card { border-left: 2px solid var(--gold); padding: 6px 0 6px 28px; max-width: 64ch; }
.note-card p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; color: #e6dfcf; }
.placeholder-card { border: 1px dashed rgba(214, 178, 107, 0.4); border-radius: var(--radius); padding: 30px; color: var(--muted); max-width: 64ch; }

/* ---------- Philosophy ---------- */
.pillars { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 3rem 0; }
.pillar { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(170deg, var(--surface-2), transparent); }
.pillar h3 { color: var(--gold-soft); margin-bottom: 0.4em; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.channels li { border-bottom: 1px solid var(--line); }
.channels a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; transition: color 0.3s, padding 0.4s var(--ease); }
.channels a:hover { color: var(--gold); padding-left: 8px; }
.channels .k { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.channels .v { overflow-wrap: anywhere; text-align: right; }
form.enquiry { display: grid; gap: 18px; }
.field label { display: block; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  font: inherit; padding: 14px 16px; transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(79, 212, 195, 0.15); }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-status { min-height: 1.4em; font-size: 0.92rem; color: var(--teal); margin: 0; }

/* ---------- Closing ---------- */
.closing { text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.closing::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 80% at 50% 100%, rgba(79, 212, 195, 0.16), transparent 70%); }
.closing h2 { max-width: 16ch; margin-inline: auto; }
.closing p { color: var(--muted); max-width: 52ch; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 36px; background: #050b0a; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-name { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 4px; }
.foot-role { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 14px; }
.foot-tag { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.site-footer h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.site-footer li a { display: inline-block; padding: 5px 0; color: #d6dcd8; font-size: 0.95rem; transition: color 0.25s, transform 0.3s var(--ease); }
.site-footer li a:hover { color: var(--gold); transform: translateX(4px); }
.socials { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.socials a { font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.socials a:hover { color: var(--gold); border-color: var(--gold); }
.copy { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; }
.nf h1 { font-size: clamp(4rem, 14vw, 9rem); color: var(--gold); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .motif path { stroke-dashoffset: 0; }
  .motif circle { opacity: 1; }
  .scroll-cue { display: none; }
}
