/* ---------------------------------------------------------------
   Shrey Taneja, personal credibility site
   Lato type system. Premium, modern, interactive. Hand written CSS.
   --------------------------------------------------------------- */

:root {
  --bg: #f3efe6;          /* warm cream */
  --surface: #fbf9f3;     /* raised card surface */
  --ink: #1a221e;         /* near black, faint green undertone */
  --muted: #5d685f;       /* soft green grey */
  --line: #e0dacb;        /* subtle divider / card border */
  --line-soft: #e7e1d4;
  --brand: #16433c;       /* deep forest green from the logo */
  --brand-deep: #0f322d;  /* darker green */
  --brand-tint: #cfe0c5;  /* pale sage accent */
  --night: #0d1a16;       /* near black forest, dark sections */
  --on-dark: #eef2e6;     /* cream text on dark */
  --on-dark-muted: #9fb09b;

  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --content: 70rem;
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 20px;
  --radius-sm: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px rgba(26, 34, 30, 0.04), 0 18px 40px -24px rgba(26, 34, 30, 0.28);
  --shadow-hover: 0 2px 4px rgba(26, 34, 30, 0.05), 0 30px 60px -28px rgba(22, 67, 60, 0.38);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Layout helpers -------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  border-top: 1px solid var(--line-soft);
}

.section-grid {
  display: grid;
  grid-template-columns: 4rem 1fr;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.section-grid--head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.index {
  font-weight: 700;
  font-size: 0.95rem;
  font-feature-settings: "tnum" 1;
  color: var(--brand);
  letter-spacing: 0.06em;
  margin: 0.4rem 0 0;
  padding-top: 0.6rem;
  border-top: 2px solid var(--brand);
  width: 2.25rem;
}

.index-light {
  color: var(--brand-tint);
  border-top-color: var(--brand-tint);
}

.section-body {
  max-width: 44rem;
}

/* ---- Type ------------------------------------------------------ */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(3rem, 1.6rem + 6.8vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0 0 1.6rem;
}

.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--brand);
}

.lede {
  font-weight: 300;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.85rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 32rem;
  margin: 0 0 2.4rem;
}

.section-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.prose {
  font-weight: 300;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.7rem);
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
}

.prose--tight {
  max-width: 36rem;
}

/* ---- Status pill ----------------------------------------------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand);
  background: rgba(22, 67, 60, 0.07);
  border: 1px solid rgba(22, 67, 60, 0.16);
  padding: 0.5rem 0.95rem 0.5rem 0.8rem;
  border-radius: 999px;
  margin: 0 0 1.9rem;
}

.status-dot {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}

/* ---- Scroll progress ------------------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.08s linear;
}

/* ---- Top bar --------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s var(--ease);
}

.topbar.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 8px 30px rgba(26, 34, 30, 0.06);
}

.topbar.is-hidden {
  transform: translateY(-100%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: padding 0.3s ease;
}

.topbar.is-scrolled .topbar-inner {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.monogram {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.monogram-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: var(--brand);
  color: var(--brand-tint);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.4s var(--ease), background-color 0.3s ease;
}

.monogram:hover .monogram-mark {
  transform: rotate(-8deg) scale(1.08);
  background: var(--brand-deep);
}

.monogram-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--on-dark);
  background: var(--brand);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}

.topbar-cta:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.topbar-cta .button-arrow {
  transition: transform 0.35s var(--ease);
}

.topbar-cta:hover .button-arrow {
  transform: translateX(4px);
}

/* Animated underline sweep */
.animated-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: color 0.25s ease, background-size 0.45s var(--ease);
}

.animated-link:hover,
.animated-link:focus-visible {
  background-size: 100% 1.5px;
}

/* ---- Hero ------------------------------------------------------ */

.hero {
  padding-top: clamp(3.5rem, 9vw, 7rem);
  padding-bottom: var(--space-section);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.8rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--on-dark);
  background: var(--brand);
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
  box-shadow: 0 1px 0 rgba(15, 50, 45, 0.25);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-deep);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
  z-index: 0;
}

.button:hover::before,
.button:focus-visible::before {
  transform: scaleX(1);
}

.button-label,
.button-arrow {
  position: relative;
  z-index: 1;
}

.button-arrow {
  transition: transform 0.35s var(--ease);
}

.button:hover .button-arrow,
.button:focus-visible .button-arrow {
  transform: translateX(5px);
}

.button:hover {
  box-shadow: 0 14px 32px rgba(15, 50, 45, 0.22);
}

.button-ghost {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

/* ---- Credentials card ------------------------------------------ */

.cred-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.5vw, 2.25rem);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  transition: box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
}

.cred-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cred-row {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.cred-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.cred-value {
  display: block;
  font-weight: 900;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cred-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cred-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.cred-pin {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

/* ---- Dark sections (aurora) ------------------------------------ */

.night {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--on-dark);
  isolation: isolate;
}

.aurora {
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.55;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  display: block;
}

.aurora-1 {
  width: 38rem;
  height: 38rem;
  top: -8rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(22, 67, 60, 0.95), rgba(22, 67, 60, 0) 65%);
  animation: drift1 18s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 30rem;
  height: 30rem;
  right: -6rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgba(207, 224, 197, 0.22), rgba(207, 224, 197, 0) 65%);
  animation: drift2 22s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(5rem, 3rem) scale(1.14); }
}

@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4rem, -3rem) scale(1.1); }
}

/* ---- Feature (building now) ------------------------------------ */

.feature {
  padding-top: clamp(5rem, 11vw, 8.5rem);
  padding-bottom: clamp(5rem, 11vw, 8.5rem);
}

.feature-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    18rem 18rem at var(--mx, 50%) var(--my, 0%),
    rgba(207, 224, 197, 0.14),
    rgba(207, 224, 197, 0) 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feature:hover .feature-glow {
  opacity: 1;
}

.feature .wrap {
  position: relative;
  z-index: 1;
}

.feature-heading {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--on-dark);
  margin: 0 0 1.5rem;
}

.feature-text {
  font-weight: 300;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
  line-height: 1.5;
  color: var(--on-dark);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--on-dark);
  border: 1px solid rgba(238, 242, 230, 0.25);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tag:hover {
  background: rgba(238, 242, 230, 0.1);
  border-color: rgba(238, 242, 230, 0.5);
}

/* ---- Cards (looking for) --------------------------------------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.5vw, 2.1rem);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.card:hover {
  border-color: rgba(22, 67, 60, 0.4);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: rgba(22, 67, 60, 0.08);
  color: var(--brand);
  margin-bottom: 1.4rem;
  transition: background-color 0.3s ease, transform 0.4s var(--ease);
}

.card:hover .card-icon {
  background: var(--brand);
  color: var(--brand-tint);
  transform: translateZ(20px);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.card-text {
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ---- Footer / contact ------------------------------------------ */

.site-footer {
  color: var(--on-dark);
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: 2.5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  padding-bottom: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid rgba(238, 242, 230, 0.16);
}

.footer-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin: 0 0 1rem;
}

.contact-email {
  font-weight: 900;
  font-size: clamp(1.5rem, 1rem + 2.8vw, 3.1rem);
  letter-spacing: -0.025em;
  color: var(--on-dark);
  text-decoration: none;
  display: inline-block;
  background-image: linear-gradient(var(--brand-tint), var(--brand-tint));
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.12em;
  transition: color 0.3s ease, background-size 0.45s var(--ease);
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--brand-tint);
  background-size: 0% 1.5px;
}

.footer-sub {
  margin: 1.1rem 0 0;
  font-size: 0.98rem;
  color: var(--on-dark-muted);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}

.contact-social {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--on-dark);
  text-decoration: none;
}

.footer-place {
  font-size: 0.9rem;
  color: var(--on-dark-muted);
  margin: 0;
}

.footer-base {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 2.25rem;
}

.footer-mark {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
  margin: 0;
}

/* ---- Focus + skip link ----------------------------------------- */

a:focus-visible,
.button:focus-visible,
.cred-card:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 6px;
}

.night a:focus-visible {
  outline-color: var(--brand-tint);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--on-dark);
  padding: 0.75rem 1.25rem;
  z-index: 70;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---- Scroll reveal --------------------------------------------- */

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button:hover,
  .card:hover {
    transform: none;
  }

  .feature-glow {
    display: none;
  }

  .aurora-1,
  .aurora-2 {
    animation: none;
  }

  .status-dot::after {
    animation: none;
  }

  .scroll-progress-bar {
    transition: none;
  }
}

/* ---- Responsive ------------------------------------------------ */

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cred-card {
    max-width: 26rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  .section-grid {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .index {
    margin-top: 0;
  }

  .monogram-name {
    display: none;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }

  .topbar-cta .button-label {
    display: none;
  }

  .topbar-cta {
    padding: 0.55rem 0.7rem;
  }
}
