/* ==========================================================================
   Akhil Guttula - portfolio
   ========================================================================== */

:root {
  --bg: #F8F5EC;
  --surface: #FFFDF8;
  --surface-2: #F4F0E6;
  --band: #F0ECE0;
  --foot: #EDE8DB;
  --ink: #1B1E24;
  --ink-2: #2A2E35;
  --body: #3A3F47;
  --muted: #444952;
  --muted-2: #5A606A;
  --line: #E6E0D0;
  --line-2: #E0D9C8;
  --line-3: #CFC8B4;
  --chip: #F1EDE2;
  --link: #1B6B3E;
  --link-hover: #0F4A2A;

  --accent: #5FD98A;
  --accent-ink: #13241A;
  --accent-soft: rgba(95, 217, 138, 0.16);
  --accent-hl: rgba(95, 217, 138, 0.5);

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-lg: 22px;
  --radius-md: 20px;
  --shadow-card: 0 12px 32px -22px rgba(27, 30, 36, 0.25);
  --shadow-float: 0 24px 48px -28px rgba(27, 30, 36, 0.35);
  --container: 1160px;
}

/* Chapter colours ---------------------------------------------------------- */
.c-green  { --c: #2FBF68; --c-tile: #7EE2A4; --c-tile-ink: #13241A; --c-text: #1C7A44; --c-tint: rgba(95, 217, 138, 0.22); --c-pill: #1C5E36; }
.c-blue   { --c: #2F6BD8; --c-tile: #2F6BD8; --c-tile-ink: #FFFFFF; --c-text: #2F5FC0; --c-tint: rgba(61, 123, 234, 0.12); --c-pill: #2F5FC0; }
.c-yellow { --c: #F2C230; --c-tile: #F2C230; --c-tile-ink: #2A2108; --c-text: #7A5900; --c-tint: rgba(242, 194, 48, 0.25); --c-pill: #6B4E00; }
.c-pink   { --c: #E5446B; --c-tile: #E5446B; --c-tile-ink: #FFFFFF; --c-text: #B0244A; --c-tint: rgba(229, 68, 107, 0.12); --c-pill: #A3213F; }

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

:focus-visible { outline: 3px solid var(--c-text, #2F5FC0); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, p, ul { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--bg); }

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

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--c, var(--accent)); flex: none; }

.hl { padding-inline: 0.04em; background-image: linear-gradient(transparent 66%, var(--hl) 66%); }
.hl--green  { --hl: rgba(95, 217, 138, 0.55); }
.hl--blue   { --hl: rgba(61, 123, 234, 0.30); }
.hl--yellow { --hl: rgba(242, 194, 48, 0.55); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.10); }
.btn--primary:hover { color: var(--accent-ink); background: #52CF7E; }
.btn--ghost { border-color: var(--line-3); color: var(--link); font-weight: 600; }
.btn--ghost:hover { border-color: var(--link); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Section heading ---------------------------------------------------------- */
.eyebrow { display: flex; align-items: center; gap: 8px; color: #555B64; font-size: 12px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.section-head--center { align-items: center; text-align: center; margin-inline: auto; }
.section-title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; }
.section-lede { font-size: 18px; color: var(--muted); }

/* Nav ---------------------------------------------------------------------- */
.nav-wrap { position: sticky; top: 14px; z-index: 50; padding: 0 20px; }

.nav {
  position: relative;
  max-width: var(--container); margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px;
  background: rgba(255, 253, 248, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(27, 30, 36, 0.25);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
}

.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.nav__links a {
  display: block; padding: 8px 13px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
}
.nav__links a:hover, .nav__links a.is-active { background: #EFEADD; color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__text-link { padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}

/* Hero --------------------------------------------------------------------- */
.hero {
  padding-top: 72px; padding-bottom: 96px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.hero__copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #3E434B; list-style: none; padding: 0; }
.chips__item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
}
.chips__link { width: 14px; height: 1px; background: #D6CFBD; }

.hero__title { font-size: clamp(44px, 6.2vw, 82px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.hero__lede { max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { color: var(--muted-2); }

.hero__art { flex: 1 1 340px; min-width: 0; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; }

.route-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-float);
  display: flex; flex-direction: column; gap: 14px;
  transform: rotate(-1.2deg);
}
.route-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted-2); }
.route-card__badge { padding: 4px 9px; border-radius: 999px; background: rgba(61, 123, 234, 0.12); color: #2F5FC0; font-size: 10px; }
.route-card__rows { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; }
.route-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.route-row__txn { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.route-row__wire { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #C9C1AC 0 6px, transparent 6px 10px); background-size: 20px 2px; animation: wire 1.2s linear infinite; }
.route-row:nth-child(2) .route-row__wire { animation-delay: -0.4s; }
.route-row:nth-child(3) .route-row__wire { animation-delay: -0.8s; }
.route-row__name { font-weight: 700; font-size: 15px; }
.route-row__ok { width: 22px; height: 22px; border-radius: 999px; background: #7EE2A4; display: grid; place-items: center; }
.route-card__foot { color: #6A707A; font-size: 10px; }

@keyframes wire { to { background-position: 20px 0; } }

.impact-chip {
  align-self: flex-end; margin: -18px -8px 0 0; max-width: 300px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px; box-shadow: 0 18px 36px -22px rgba(27, 30, 36, 0.35);
  display: flex; gap: 12px; align-items: flex-start;
  transform: rotate(1.5deg);
}
.impact-chip__icon { flex: none; width: 30px; height: 30px; border-radius: 999px; background: rgba(95, 217, 138, 0.25); display: grid; place-items: center; }
.impact-chip__icon span { width: 10px; height: 10px; border-radius: 999px; border: 2px solid #2FBF68; }
.impact-chip__label { display: block; color: #1C7A44; font-size: 10px; margin-bottom: 2px; }
.impact-chip__text { font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* Work timeline ------------------------------------------------------------ */
.work { padding-top: 32px; padding-bottom: 112px; }
.work .section-head { margin-bottom: 56px; }

.timeline { list-style: none; padding: 0; }

.job { display: flex; gap: 24px; align-items: stretch; }
.job__rail { flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; }
.job__tile {
  width: 56px; height: 56px; border-radius: 15px; flex: none;
  display: flex; align-items: baseline; justify-content: center; padding-top: 10px;
  background: var(--c-tile); color: var(--c-tile-ink);
  font-weight: 800; font-size: 26px; line-height: 1.4;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.13);
}
.job__tile small { font-size: 13px; }
.job__line { flex: 1; width: 2px; margin-top: 8px; background: var(--c-tile); }
.job:last-child .job__line { display: none; }

.job__card {
  flex: 1; min-width: 0; margin-bottom: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 14px;
}
.job:last-child .job__card { margin-bottom: 0; }

.job__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted-2); }
.job__pill { padding: 4px 10px; border-radius: 999px; background: var(--c-tint); color: var(--c-pill); font-size: 10px; }
.job__heading { display: flex; flex-direction: column; gap: 4px; }
.job__company { font-size: 36px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
.job__role { font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--c-text); }
.job__team { font-size: 15px; color: var(--muted-2); font-weight: 500; }
.job__points { padding-left: 20px; color: var(--body); display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.job__points b { color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.tags li { padding: 5px 10px; border-radius: 999px; background: var(--chip); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: #3E434B; }

/* Impact band -------------------------------------------------------------- */
.impact { background: var(--accent-soft); border-block: 1px solid #E2DCCB; }
.impact__inner { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 48px; }
.impact .eyebrow { color: #3E4A42; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; list-style: none; padding: 0; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.stat__value { font-size: 60px; line-height: 1; font-weight: 800; letter-spacing: -0.05em; }
.stat__value span { background-image: linear-gradient(transparent 70%, var(--accent-hl) 70%); }
.stat__unit { font-size: 26px; color: #1C7A44; letter-spacing: -0.02em; }
.stat__label { font-size: 14px; color: var(--muted); }

/* Tools -------------------------------------------------------------------- */
.tools { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 48px; }
.tools__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tools__head .btn { min-height: 48px; padding: 0 22px; font-size: 15px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; list-style: none; padding: 0; }

.tool {
  height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 12px 32px -24px rgba(27, 30, 36, 0.3);
  color: var(--ink); text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.tool:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(27, 30, 36, 0.35); }

.tool__icon {
  width: 48px; height: 48px; border-radius: 13px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--c-tint); border: 1px solid var(--line);
}
.tool__icon img { width: 100%; height: 100%; object-fit: cover; }
.tool__icon svg { display: none; width: 22px; height: 22px; color: var(--c-text); }
.tool__icon.is-fallback img { display: none; }
.tool__icon.is-fallback svg { display: block; }

.tool__name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.tool__desc { font-size: 15px; color: var(--muted); flex: 1; }
.tool__types { display: flex; flex-wrap: wrap; gap: 6px; color: #3E434B; font-size: 10px; letter-spacing: 0.06em; }
.tool__types span { padding: 4px 8px; border-radius: 999px; background: var(--chip); }
.tool__link { padding-top: 12px; border-top: 1px solid #ECE6D7; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--link); }

.event {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c-tint), var(--surface) 60%);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.event__main { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.event__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--c-text); }
.event__meta a { color: inherit; }
.event__where { white-space: nowrap; }
.event__name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.event__desc { font-size: 16px; color: var(--muted); max-width: 680px; }
.event__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Toolbox ------------------------------------------------------------------ */
.toolbox { background: var(--band); border-top: 1px solid #E2DCCB; }
.toolbox__inner { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 48px; }

.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.skill-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.skill-card--featured { border: 2px solid var(--accent); box-shadow: 0 18px 40px -26px rgba(27, 30, 36, 0.35); }
.skill-card__badge { position: absolute; top: -12px; right: 18px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10px; }
.skill-card__title { color: var(--muted-2); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; }
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; font-size: 14px; font-weight: 500; }
.skill-list li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); }

.education { display: flex; flex-direction: column; gap: 14px; }
.education__card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 20px 24px; border-radius: 18px; border: 1px dashed var(--line-3);
}
.education__main { display: flex; align-items: center; gap: 14px; }
.education__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex: none; }
.education__degree { display: block; font-weight: 700; }
.education__school { display: block; font-size: 14px; color: #555B64; }
.education__meta { color: #555B64; }

/* Contact & footer --------------------------------------------------------- */
.contact { padding-top: 120px; padding-bottom: 104px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.contact__title { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.contact__lede { max-width: 540px; font-size: 18px; color: var(--muted); }
.contact__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.footer { background: var(--foot); border-top: 1px solid #E2DCCB; }
.footer__inner { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer__statement { font-size: clamp(34px, 5vw, 68px); line-height: 1.05; letter-spacing: -0.03em; word-spacing: 0.04em; font-weight: 800; color: var(--ink); text-wrap: balance; text-align: center; }
.footer__statement span { color: var(--muted-2); }
.footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  padding-top: 24px; border-top: 1px solid #D9D2C0; color: #4A4F57;
}
.footer__id { display: flex; align-items: center; gap: 12px; }
.footer__id .brand__mark { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; }
.footer__links a { color: #4A4F57; text-decoration: none; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }

/* Reveal on scroll --------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__text-link { display: none; }
  .nav__links {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: 0 18px 40px -20px rgba(27, 30, 36, 0.35);
  }
  .nav__links a { padding: 12px 14px; font-size: 16px; }
  .nav.is-open .nav__links { display: flex; }

  .hero { padding-top: 48px; padding-bottom: 72px; gap: 40px; }
  .job { gap: 14px; }
  .job__rail { width: 40px; }
  .job__tile { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; padding-top: 7px; }
  .job__tile small { font-size: 10px; }
  .job__card { padding: 22px; }
  .job__company { font-size: 30px; }
  .job__role { font-size: 18px; }
  .event__sep { display: none; }
  .event__where { flex-basis: 100%; padding-left: 15px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .nav-wrap { padding: 0 12px; }
  .brand__name { display: none; }
  .route-card, .impact-chip { transform: none; }
  .impact-chip { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
