/* Umesh Ahirwar — personal site
   Ink ground, ivory type, a single bronze accent.
   Self-hosted Cormorant Garamond + Outfit. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/outfit.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/outfit-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0c0b0a;
  --bg-soft: #13110f;
  --ink: #f3efe6;
  --ink-muted: #b7afa3;
  --ink-faint: #9a9388;
  --bronze: #d4b07a;
  --bronze-deep: #c9a36a;
  --line: rgba(243, 239, 230, 0.1);
  --line-strong: rgba(212, 176, 122, 0.38);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --header: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.hero h1,
.role h3,
.skill h3,
.mark {
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bronze);
  z-index: 90;
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--bronze);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Header
   ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  border-bottom: 1px solid transparent;
  background: rgba(12, 11, 10, 0.55);
  backdrop-filter: saturate(1.2) blur(16px);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(12, 11, 10, 0.88);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.mark:hover {
  border-color: var(--bronze);
  color: var(--bronze);
}

.nav-list {
  display: none;
  gap: 1.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--ink);
}

.header-li {
  color: var(--bronze);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.header-li:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 840px) {
  .nav-list {
    display: flex;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: flex-end;
  padding: clamp(2.5rem, 8vh, 6rem) 0 clamp(3rem, 8vh, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  width: 100%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero-role {
  margin: 0 0 1.25rem;
  color: var(--bronze);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.6rem, 12vw, 8.75rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
}

.hero-lede {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 300;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 1.35rem 0 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta span::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--bronze);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--bronze);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--bronze);
  color: #1a140c;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink);
}

.hero-monogram {
  position: absolute;
  right: max(0px, calc((100% - var(--wrap)) / 2 - 1rem));
  bottom: -0.18em;
  z-index: 0;
  margin: 0;
  color: rgba(243, 239, 230, 0.045);
  font-family: var(--serif);
  font-size: clamp(10rem, 32vw, 24rem);
  font-weight: 500;
  line-height: 0.7;
  letter-spacing: -0.06em;
  user-select: none;
  pointer-events: none;
}

.hero-spine {
  display: none;
}

@media (min-width: 960px) {
  .hero-spine {
    display: block;
    position: absolute;
    right: var(--gutter);
    top: 50%;
    color: var(--bronze);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.75;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center;
    white-space: nowrap;
  }
}

.hero-enter .hero-role,
.hero-enter h1,
.hero-enter .hero-lede,
.hero-enter .hero-meta,
.hero-enter .hero-actions {
  animation: rise 0.9s var(--ease) both;
}

.hero-enter h1 { animation-delay: 0.08s; }
.hero-enter .hero-lede { animation-delay: 0.18s; }
.hero-enter .hero-meta { animation-delay: 0.26s; }
.hero-enter .hero-actions { animation-delay: 0.34s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections
   ------------------------------------------------------------------ */

.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  gap: 1.75rem 3.5rem;
}

@media (min-width: 840px) {
  .section-grid {
    grid-template-columns: 14rem minmax(0, 1fr);
    align-items: start;
  }

  .section-index {
    position: sticky;
    top: calc(var(--header) + 1.5rem);
  }
}

.section-index .num {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.section-index h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--ink-muted);
  font-weight: 300;
  font-size: 1.05rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 500;
}

/* Experience
   ------------------------------------------------------------------ */

.roles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.role {
  display: grid;
  gap: 0.85rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.role:last-child {
  padding-bottom: 0;
}

@media (min-width: 720px) {
  .role {
    grid-template-columns: 12.5rem minmax(0, 1fr);
  }
}

.role-when {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.role-where {
  margin: 0.35rem 0 0;
  color: var(--bronze);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.role-org {
  margin: 0.4rem 0 0.9rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

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

.role li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0 0 0.45rem;
  color: var(--ink-muted);
  font-weight: 300;
  font-size: 0.98rem;
}

.role li:last-child {
  margin-bottom: 0;
}

.role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 1px;
  background: var(--bronze-deep);
}

.role-note {
  margin: 0.85rem 0 0;
  color: var(--ink-faint);
  font-size: 0.92rem;
  font-style: italic;
  font-family: var(--serif);
  font-weight: 500;
}

/* Expertise
   ------------------------------------------------------------------ */

.skills {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .skills {
    grid-template-columns: 1fr 1fr;
  }
}

.skill {
  padding: 1.5rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .skill:nth-child(odd) {
    padding-right: 1.75rem;
    border-right: 1px solid var(--line);
  }

  .skill:nth-child(even) {
    padding-left: 1.75rem;
  }
}

.skill-num {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.skill h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.skill p {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 300;
  font-size: 0.95rem;
}

.industries {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.industries strong {
  color: var(--ink-muted);
  font-weight: 500;
}

/* Contact
   ------------------------------------------------------------------ */

.contact-panel {
  max-width: 36rem;
}

.contact-panel p {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  font-weight: 300;
  font-size: 1.15rem;
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.45;
}

.contact-panel .btn {
  min-height: 3.1rem;
  padding-inline: 1.5rem;
}

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

.site-footer {
  padding: 1.5rem 0 2.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--ink-faint);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.footer-inner a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--bronze);
}

/* Reveal
   ------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-enter .hero-role,
  .hero-enter h1,
  .hero-enter .hero-lede,
  .hero-enter .hero-meta,
  .hero-enter .hero-actions,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Print
   ------------------------------------------------------------------ */

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  body::after,
  .site-header,
  .hero-monogram,
  .hero-spine,
  .hero-actions,
  .skip {
    display: none;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .section,
  .hero {
    border-color: #ccc;
    min-height: 0;
    page-break-inside: avoid;
  }
}
