*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

:root {
  --bg: #ECEEF1;
  --card: #FFFFFF;
  --cb: rgba(255, 255, 255, .95);
  --sh: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
  --sh-h: 0 8px 32px rgba(0, 0, 0, .1), 0 2px 8px rgba(0, 0, 0, .06);
  --accent: #FF5722;
  --t1: #0A0A0A;
  --t2: #4B5563;
  --t3: #9CA3AF;
  --pb: #F3F4F6;
  --pbo: #E5E7EB;
  --gr: #22C55E;
  --rc: 18px;
  --gap: 10px;
  --p: 20px;
}

[data-theme="dark"] {
  --bg: #111111;
  --card: #1C1C1C;
  --cb: rgba(255, 255, 255, .05);
  --sh: 0 1px 3px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  --sh-h: 0 8px 32px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
  --accent: #FF693C;
  --t1: #F0F0F0;
  --t2: #A0A0A0;
  --t3: #5A5A5A;
  --pb: #282828;
  --pbo: rgba(255, 255, 255, .08);
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--t1);
  font-family: 'DM Sans', sans-serif;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}

/* Base Body (Fixes Desktop Overflow but Allows Mobile Scroll) */
body {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ORBS */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb-o {
  width: 450px;
  height: 450px;
  background: var(--accent);
  opacity: .055;
  top: -110px;
  left: -70px;
  filter: blur(88px);
  animation: da 14s ease-in-out infinite;
}

.orb-b {
  width: 350px;
  height: 350px;
  background: #60A5FA;
  opacity: .04;
  bottom: -60px;
  right: -50px;
  filter: blur(78px);
  animation: db 19s ease-in-out infinite;
}

@keyframes da {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(16px, -10px);
  }
}

@keyframes db {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-10px, 8px);
  }
}

/* CURSOR GLOW */
.cg {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 87, 34, .05) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* BASE BENTO GRID - Mobile First */
.bento {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: var(--p);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* BASE CARD */
.card {
  background: var(--card);
  border: 1px solid var(--cb);
  border-radius: var(--rc);
  box-shadow: var(--sh);
  overflow: hidden;
  position: relative;
  min-height: 0;
  min-width: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: transform .18s ease, box-shadow .18s ease, background .3s, border-color .3s;
  animation: cin .45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-h);
}

@keyframes cin {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base Animation Delays */
.card:nth-child(1) {
  animation-delay: 0ms;
}

.card:nth-child(2) {
  animation-delay: 45ms;
}

.card:nth-child(3) {
  animation-delay: 90ms;
}

.card:nth-child(4) {
  animation-delay: 135ms;
}

.card:nth-child(5) {
  animation-delay: 180ms;
}

.card:nth-child(6) {
  animation-delay: 225ms;
}

.card:nth-child(7) {
  animation-delay: 270ms;
}

.card:nth-child(8) {
  animation-delay: 315ms;
}

.card:nth-child(9) {
  animation-delay: 360ms;
}

.card:nth-child(10) {
  animation-delay: 405ms;
}

.card:nth-child(11) {
  animation-delay: 450ms;
}

/* ═══════ GRID BREAKPOINTS ═══════ */

/* TABLET */
@media (min-width: 768px) {
  .bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .c-hero {
    grid-column: 1 / 3;
  }

  .c-orange {
    grid-column: 1;
    grid-row: 2 / 4;
    min-height: 400px;
  }

  .c-gallery {
    grid-column: 2;
    grid-row: 2;
  }

  .c-core {
    grid-column: 2;
    grid-row: 3;
  }

  .c-kerala {
    grid-column: 1;
    grid-row: 4;
    min-height: 200px;
  }

  .c-letstalk {
    grid-column: 2;
    grid-row: 4;
  }

  /* Socials spread across a single row */
  .c-ig {
    grid-column: 1;
    grid-row: 5;
  }

  .c-tw {
    grid-column: 2;
    grid-row: 5;
  }

  .c-yt {
    grid-column: 1;
    grid-row: 6;
  }

  .c-li {
    grid-column: 2;
    grid-row: 6;
  }

  .c-gh {
    grid-column: 1 / 3;
    grid-row: 7;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  body {
    min-height: 100vh;
    align-items: center;
    padding: var(--p) 0;
  }

  .bento {
    display: grid;
    grid-template-columns: 1fr minmax(0, 21%) minmax(0, 21%);
    grid-template-rows: repeat(7, minmax(110px, auto));
  }

  .c-hero {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .c-orange {
    grid-column: 2;
    grid-row: 1 / 5;
    min-height: auto;
  }

  .c-ig {
    grid-column: 3;
    grid-row: 1;
  }

  .c-tw {
    grid-column: 3;
    grid-row: 2;
  }

  .c-yt {
    grid-column: 3;
    grid-row: 3;
  }

  .c-gallery {
    grid-column: 1;
    grid-row: 3 / 5;
  }

  .c-letstalk {
    grid-column: 2;
    grid-row: 5 / 8;
  }

  .c-li {
    grid-column: 3;
    grid-row: 4;
  }

  .c-gh {
    grid-column: 3;
    grid-row: 5;
  }

  .c-core {
    grid-column: 3;
    grid-row: 6 / 8;
  }

  .c-kerala {
    grid-column: 1;
    grid-row: 5 / 8;
    min-height: auto;
  }
}

/* ═══════ HERO ═══════ */
.c-hero {
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  order: 1;
}

.h-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t2);
  transition: color .3s;
}

.sdot {
  width: 7px;
  height: 7px;
  background: var(--gr);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.sdot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--gr);
  opacity: 0;
  animation: pr 2.4s ease-out infinite;
}

@keyframes pr {
  0% {
    transform: scale(.7);
    opacity: .8;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Theme toggle */
.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--pb);
  border: 1.5px solid var(--pbo);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t2);
  transition: background .15s, color .15s, border-color .15s, background .3s, border-color .3s;
}

.theme-btn:hover {
  background: var(--t1);
  border-color: var(--t1);
  color: var(--card);
}

[data-theme="dark"] .i-sun {
  display: none;
}

[data-theme="light"] .i-moon {
  display: none;
}

/* Color Picker */
.theme-color-picker {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s ease;
}

.theme-color-picker:hover {
  transform: scale(1.05);
}

.theme-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.theme-color-picker::-webkit-color-swatch {
  border: 1.5px solid var(--pbo);
  border-radius: 10px;
}

.theme-color-picker::-moz-color-swatch {
  border: 1.5px solid var(--pbo);
  border-radius: 10px;
}

.h-name {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -0.03em;
  color: var(--t1);
  transition: color .3s;
  margin-top: 20px;
}

.h-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--t2);
  margin-top: 6px;
  transition: color .3s;
}

.h-bio {
  font-size: 14.5px;
  color: var(--t3);
  line-height: 1.55;
  margin-top: 8px;
  overflow: hidden;
  transition: color .3s;
}

/* ═══════ ORANGE TALL ═══════ */
.c-orange {
  cursor: default;
  background: var(--accent);
  border-color: transparent;
  min-height: 250px;
  order: 2;
}

.c-orange::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 38%, rgba(255, 255, 255, .1) 50%, transparent 62%);
  background-size: 220% 100%;
  background-position: -100% 0;
  transition: background-position .6s ease;
}

.c-orange:hover::after {
  background-position: 100% 0;
}

.oc-portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center top;
  background-size: cover;
  opacity: .55;
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767px) {
  .oc-portrait {
    background-position: center;
  }
}

.c-orange:hover .oc-portrait {
  transform: scale(1.03);
}

.oc-halftone {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center top;
  opacity: .5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

[data-theme="dark"] .oc-halftone {
  opacity: .3;
  mix-blend-mode: screen;
}

.oc-darkgrad {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .4) 55%, rgba(0, 0, 0, .8) 100%);
}

.oc-inner {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 12px 14px;
}

.oc-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oc-num {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .12em;
}

.oc-pill {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  letter-spacing: .06em;
}

.oc-midrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oc-globe {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.oc-hline {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .22);
}

.oc-quote {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

/* ═══════ SOCIAL CARDS ═══════ */
.c-ig,
.c-tw,
.c-yt,
.c-li,
.c-gh {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 80px;
}

.soc-icon {
  color: var(--t1);
  transition: color .15s, transform .18s ease, color .3s;
}

.c-ig:hover .soc-icon,
.c-tw:hover .soc-icon,
.c-li:hover .soc-icon,
.c-gh:hover .soc-icon {
  color: var(--accent);
  transform: scale(1.16);
}

/* YouTube */
.c-yt {
  background: #0F0F0F;
  border-color: transparent;
}

[data-theme="dark"] .c-yt {
  background: #000;
}

.c-yt .soc-icon {
  color: #fff;
}

.c-yt:hover .soc-icon {
  color: #FF0000;
  transform: scale(1.16);
}

/* ═══════ GALLERY ═══════ */
.c-gallery {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  order: 7;
}

.gal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.gal-ttl {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t2);
  transition: color .3s;
}

.gal-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.gal-arrow:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.tile {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  min-height: 100px;
}

/* FIX IMAGES OBJECT FIT/POSITION */
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Adjusts image focal point avoiding 'ulta-pulta' mostly */
  display: block;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile:hover img {
  transform: scale(1.07);
}

.tile::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent);
  pointer-events: none;
}

.tile-num {
  position: absolute;
  bottom: 20px;
  left: 9px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
  z-index: 1;
}

.tile-name {
  position: absolute;
  bottom: 8px;
  left: 9px;
  right: 6px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* ═══════ LET'S TALK ═══════ */
.c-letstalk {
  cursor: pointer;
  background: var(--accent);
  border-color: transparent;
  min-height: 200px;
  order: 6;
  display: flex;
  flex-direction: column;
}

.c-letstalk::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 38%, rgba(255, 255, 255, .12) 50%, transparent 62%);
  background-size: 220% 100%;
  background-position: -100% 0;
  transition: background-position .6s ease;
}

.c-letstalk:hover::after {
  background-position: 100% 0;
}

.lt-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lt-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .2s ease, background .2s;
}

.c-letstalk:hover .lt-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, .25);
}

.lt-title {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.lt-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, .6);
}

/* ═══════ KERALA ═══════ */
.c-kerala {
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 200px;
  order: 5;
}

.bl-in {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bl-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.bl-city {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--t1);
  transition: color .3s;
  margin-top: 16px;
}

.bl-coords {
  font-size: 12px;
  color: var(--t3);
  margin-top: 8px;
  font-weight: 500;
  transition: color .3s;
}

/* ═══════ CORE ═══════ */
.c-core {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  min-height: 180px;
  order: 4;
}

.core-lbl {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t2);
  flex-shrink: 0;
  transition: color .3s;
}

.core-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  align-content: flex-start;
  overflow: visible;
}

.core-bottom {
  flex-shrink: 0;
}

.core-exp {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--t1);
  transition: color .3s;
}

.core-exp sup {
  font-size: .45em;
  color: var(--accent);
  font-weight: 700;
}

.core-explbl {
  font-size: 10.5px;
  color: var(--t3);
  margin-top: 4px;
  transition: color .3s;
}

/* MOBILE SOCIALS GROUP */
.mobile-socials-group {
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  order: 3;
}

@media (max-width: 767px) {
  .mobile-socials-group .card {
    flex: 1;
    min-height: 64px;
    border-radius: var(--rc);
  }
}

@media (min-width: 768px) {
  .mobile-socials-group {
    display: contents;
  }
}

/* PILLS */
.pill {
  display: inline-flex;
  align-items: center;
  background: var(--pb);
  border: 1px solid var(--pbo);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  color: var(--t2);
  cursor: default;
  white-space: nowrap;
  transition: background .13s, color .13s, border-color .13s, transform .13s, background .3s, color .3s, border-color .3s;
}

.pill:hover {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

/* TOOLTIPS */
[data-tip] {
  position: relative;
}

[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(.9);
  background: var(--t1);
  color: var(--card);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s, transform .12s;
  z-index: 200;
}

@media (hover: hover) and (pointer: fine) {
  [data-tip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}