/* ============================================================
   Akil Gurram — Portfolio
   Warm minimal. Beige paper, espresso ink, drifting brown shapes.
   ============================================================ */

:root {
  --paper: #eae3d4;
  --paper-2: #f1ecdf;
  --paper-3: #e2d9c6;

  --ink: #2b2218;
  --ink-soft: #5b4f3e;
  --ink-faint: #8a7c66;

  --brown: #9a7e5a;        /* shapes */
  --brown-soft: #c2ac8a;   /* soft shapes */
  --brown-deep: #4a3a28;   /* buttons, accents */

  --line: rgba(43, 34, 24, 0.14);
  --line-soft: rgba(43, 34, 24, 0.08);

  --max: 1120px;
  --radius: 22px;
  --radius-lg: 34px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--brown-deep); color: var(--paper); }

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ============================================================
   Drifting rounded rectangles
   ============================================================ */
.shapes {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 40px;
  will-change: transform;
}
.shape--outline {
  background: transparent;
  border: 1.5px solid var(--brown);
  opacity: 0.4;
}
.shape--1 { width: 360px; height: 240px; top: 8%;  left: -90px;  background: var(--brown-soft); opacity: 0.5; }
.shape--2 { width: 300px; height: 300px; top: 24%; right: -70px; border-radius: 70px; }
.shape--3 { width: 220px; height: 320px; top: 58%; left: 4%;     background: var(--paper-3); opacity: 0.85; }
.shape--4 { width: 420px; height: 260px; top: 70%; right: -120px; }
.shape--5 { width: 180px; height: 180px; top: 90%; left: 12%;    background: var(--brown-soft); opacity: 0.4; border-radius: 50px; }
.shape--6 { width: 280px; height: 200px; top: 40%; left: 38%;    background: var(--paper-3); opacity: 0.6; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 56px);
  transition: padding 0.4s var(--ease), background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(234, 227, 212, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a.active { color: var(--ink); }
.nav__contact {
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  color: var(--ink) !important;
}
.nav__contact::after { display: none; }
.nav__contact:hover { background: var(--ink); color: var(--paper) !important; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: background 0.3s var(--ease), color 0.3s ease, transform 0.3s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { transform: translateY(-2px); background: var(--brown-deep); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ============================================================
   Mobile menu
   ============================================================ */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav__toggle span {
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { transform: translateY(-0px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.25s ease;
}
.mobile-menu a:hover { color: var(--brown); }

/* ============================================================
   Section helpers
   ============================================================ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 13vh, 150px) clamp(22px, 5vw, 40px);
}
.section__head { max-width: 660px; margin-bottom: 70px; }
.section__kicker {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.section__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section__sub {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 56ch;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px clamp(22px, 5vw, 40px) 90px;
}
.hero__eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.hero__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(4rem, 16vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 34px;
}
.hero__title span { display: block; }
.hero__typed {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.typed { color: var(--brown); font-style: italic; margin-left: 0.3em; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--brown);
  margin-left: 3px;
  transform: translateY(2px);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.hero__lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__social { display: flex; gap: 26px; }
.hero__social a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.hero__social a:hover { color: var(--ink); border-color: var(--ink); }

/* ============================================================
   Stats
   ============================================================ */
/* ============================================================
   What I do
   ============================================================ */
.focus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.focus__item {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.4s var(--ease), background 0.3s ease;
}
.focus__item:hover { transform: translateY(-5px); background: #f5f0e6; }
.focus__num {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 22px;
}
.focus__item h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.focus__item p { color: var(--ink-soft); font-size: 0.96rem; }

/* ============================================================
   Work cards
   ============================================================ */
.work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.work-card {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.work-card:hover { transform: translateY(-6px); background: #f5f0e6; border-color: rgba(43,34,24,0.22); }
.work-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.work-card__logo {
  width: 60px; height: 60px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.work-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.work-card__logo--pad { padding: 10px; }
.work-card__logo--pad img { object-fit: contain; }
.work-card__year {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--ink-faint);
}
.work-card__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.work-card__title span {
  font-size: 0.5em;
  color: var(--ink-faint);
  font-style: italic;
  margin-left: 8px;
}
.work-card__desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 22px;
}
.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  margin-top: auto;
}
.work-card__tags span {
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.work-card__links { display: flex; flex-wrap: wrap; gap: 20px; }
.work-card__links a {
  font-weight: 500;
  font-size: 0.92rem;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.work-card__links a:hover { color: var(--brown); border-color: var(--brown); }

/* ============================================================
   Experience
   ============================================================ */
.exp { border-top: 1px solid var(--line); }
.exp__item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.exp__role {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 6px;
}
.exp__main h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.exp__main h3 span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-left: 10px;
}
.exp__main p { color: var(--ink-soft); max-width: 62ch; }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(100px, 16vh, 190px) clamp(22px, 5vw, 40px);
  text-align: center;
}
.contact .section__kicker { display: block; }
.contact__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 18px auto 26px;
  max-width: 16ch;
}
.contact__sub { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 42px; font-size: 1.1rem; }
.contact__email {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  font-weight: 400;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.contact__email:hover { color: var(--brown); border-color: var(--brown); }
.contact__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 44px;
  font-size: 0.92rem;
}
.contact__links a {
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact__links a:hover { color: var(--ink); border-color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px clamp(22px, 5vw, 40px) 50px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ============================================================
   Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .focus { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .exp__item { grid-template-columns: 1fr; gap: 10px; }
  .exp__role { padding-top: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .work-card { padding: 26px; }
  .shape--2, .shape--4, .shape--6 { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .shape { transform: none !important; }
}
