/* =========================================================
   AKSHAY AJAYAN — ONE PAGE PORTFOLIO
   Black + white / playful editorial / responsive
   ========================================================= */

:root {
  --black: #090909;
  --white: #f8f8f5;
  --paper: #efefe9;
  --gray: #777;
  --border: #151515;
  --radius: 28px;
  --font-display: "Bowlby One SC", "Arial Black", sans-serif;
  --font-playful: "Fredoka", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

::selection {
  background: var(--black);
  color: var(--white);
}

/* NAV ----------------------------------------------------- */

.topbar {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1180px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 20px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: rgba(248, 248, 245, 0.88);
  backdrop-filter: blur(14px);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.logo span,
h2 span,
.hero h1 .dot {
  color: var(--black);
}

.topbar nav {
  display: flex;
  gap: 6px;
}

.topbar nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-playful);
  font-size: 0.82rem;
  transition: 0.2s ease;
}

.topbar nav a:hover {
  background: var(--black);
  color: var(--white);
}

/* GENERAL ------------------------------------------------- */

.section {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 130px 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 70px;
}

.section-number {
  font-family: var(--font-playful);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--black);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

/* HERO ---------------------------------------------------- */

.hero {
  min-height: 100svh;
  position: relative;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 150px 0 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.contact-kicker {
  font-family: var(--font-playful);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8.4rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.hero h1 span {
  -webkit-text-stroke: 2px var(--black);
  color: transparent;
}

.hero h1 .dot {
  -webkit-text-stroke: 0;
}

.hero-note {
  font-family: var(--font-playful);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  margin-top: 32px;
  max-width: 440px;
  line-height: 1.25;
}

.pill-button {
  display: inline-block;
  margin-top: 28px;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-playful);
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pill-button:hover {
  background: transparent;
  color: var(--black);
  transform: translateY(-3px) rotate(-1deg);
}

.hero-image-wrap {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  width: min(90%, 470px);
  aspect-ratio: 1;
  border: 3px solid var(--black);
  border-radius: 50% 45% 52% 48%;
  transform: rotate(7deg);
}

.hero-image {
  position: relative;
  z-index: 2;
  width: min(80%, 410px);
  max-height: 570px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  align-self: center;
}

.scribble {
  position: absolute;
  z-index: 4;
  font-family: var(--font-playful);
  font-weight: 700;
  font-size: 1.05rem;
}

.scribble-one {
  top: 13%;
  right: 6%;
  transform: rotate(10deg);
  border: 2px solid var(--black);
  border-radius: 50%;
  padding: 12px 17px;
}

.scribble-two {
  bottom: 10%;
  left: 2%;
  transform: rotate(-8deg);
}

.hero-stamp {
  position: absolute;
  bottom: 55px;
  right: 0;
  width: 110px;
  height: 110px;
  border: 2px dashed var(--black);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  transform: rotate(11deg);
  font-family: var(--font-playful);
  line-height: 0.9;
  font-size: 0.55rem;
}

.hero-stamp strong {
  font-size: 0.8rem;
  margin: 5px 0;
}

/* WHO ----------------------------------------------------- */

.who {
  border-top: 2px solid var(--black);
}

.who-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
}

.big-line {
  font-family: var(--font-playful);
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.95;
  position: sticky;
  top: 130px;
  height: fit-content;
}

.big-line span {
  display: block;
}

.big-line em {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.25em;
  transform: rotate(-3deg);
}

.big-line small {
  display: block;
  font-size: 0.38em;
  line-height: 1.1;
  margin-top: 18px;
  max-width: 220px;
}

.story {
  font-family: var(--font-playful);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.55;
}

.story p {
  margin-bottom: 28px;
}

.story strong {
  font-weight: 700;
}

.story em {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.tiny-joke {
  display: block;
  font-size: 0.72em;
  margin-top: 10px;
  opacity: 0.6;
}

/* IDEOLOGY ------------------------------------------------ */

.ideology {
  border-top: 2px solid var(--black);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quote-card {
  position: relative;
  min-height: 310px;
  padding: 32px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: 0.25s ease;
}

.quote-card:nth-child(2) {
  transform: rotate(2deg);
}

.quote-card:nth-child(3) {
  transform: rotate(-1.5deg);
}

.quote-card:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-8px) rotate(0);
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.6;
}

.quote-card p {
  font-family: var(--font-playful);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
  max-width: 340px;
}

.quote-index {
  font-family: var(--font-display);
  font-size: 1.2rem;
  align-self: flex-end;
}

/* CONTACT ------------------------------------------------- */

.contact {
  width: 100%;
  max-width: none;
  margin-top: 100px;
  background: var(--black);
  color: var(--white);
  padding: 130px max(4%, calc((100% - 1180px) / 2));
}

.contact-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.contact .section-number {
  border-color: var(--white);
  margin-bottom: 45px;
}

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.contact h2 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}

.contact-sub {
  font-family: var(--font-playful);
  max-width: 550px;
  margin-top: 35px;
  font-size: 1.15rem;
  line-height: 1.45;
  opacity: 0.8;
}

.contact-buttons {
  display: flex;
  gap: 12px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.contact-button {
  min-width: 190px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border: 2px solid var(--white);
  border-radius: 999px;
  padding: 15px 18px 15px 22px;
  font-family: var(--font-playful);
  font-weight: 600;
  transition: 0.2s ease;
}

.contact-button b {
  font-size: 1.25rem;
}

.contact-button:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-4px) rotate(-1deg);
}

/* FOOTER -------------------------------------------------- */

footer {
  background: var(--black);
  color: var(--white);
  border-top: 1px solid #444;
  width: 100%;
  padding: 22px max(4%, calc((100% - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-playful);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

/* RESPONSIVE ---------------------------------------------- */

@media (max-width: 850px) {
  .topbar nav a:nth-child(2) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
    min-height: auto;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-note {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-wrap {
    min-height: 470px;
    margin-top: -10px;
  }

  .hero-image-wrap::before {
    width: min(82%, 400px);
  }

  .hero-stamp {
    right: 5%;
    bottom: 20px;
  }

  .who-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .big-line {
    position: static;
  }

  .quotes {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }

  .quote-card,
  .quote-card:nth-child(2),
  .quote-card:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    top: 10px;
    width: 94%;
  }

  .topbar nav a {
    font-size: 0.7rem;
    padding: 7px 9px;
  }

  .section {
    padding: 90px 0;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .hero {
    padding-top: 125px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 16vw, 5.4rem);
  }

  .hero-image-wrap {
    min-height: 390px;
  }

  .hero-image {
    width: 84%;
  }

  .scribble-one {
    right: 0;
  }

  .scribble-two {
    left: 0;
  }

  .hero-stamp {
    width: 88px;
    height: 88px;
    font-size: 0.45rem;
  }

  .hero-stamp strong {
    font-size: 0.65rem;
  }

  .contact {
    margin-top: 30px;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-button {
    width: 100%;
  }

  footer {
    flex-direction: column;
    font-size: 0.58rem;
  }

  .desktop-only {
    display: none;
  }
}

.contact-button span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-button i {
  font-size: 1.25rem;
}