/* PORTFOLIO page — Navjot ---------------------------------- */

html { overflow-x: clip; }

/* MANDALA SPINNER — section navigator ---------------------- */
.spinner-section {
  border-bottom: 2px solid var(--ink);
  padding: 26px 24px 30px;
  position: relative;
  overflow: hidden;
  background-color: var(--white);
  background-image: linear-gradient(rgba(255,251,240,0.87), rgba(255,251,240,0.87)), url("../assets/tex-paper.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, multiply;
}
@media (min-width: 900px) { .spinner-section { padding: 30px 40px 34px; } }

.spinner-eyebrow {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.spinner-eyebrow .hindi {
  font-family: var(--deva);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.06em;
}

/* The stage centers the wheel and holds labels around it */
.spinner-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  aspect-ratio: 1;
}

/* The rotating wheel itself */
.wheel-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel {
  width: 78%;
  height: 78%;
  position: relative;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.9s cubic-bezier(.5, .05, .2, 1);
}
/* Soft warm-white backdrop — extends past the mandala, fades out */
.wheel::before {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255, 251, 240, 0.95) 0%,
    rgba(255, 251, 240, 0.92) 35%,
    rgba(255, 251, 240, 0.7) 55%,
    rgba(255, 251, 240, 0.35) 70%,
    rgba(255, 251, 240, 0.12) 85%,
    rgba(255, 251, 240, 0) 100%);
  z-index: -1;
  pointer-events: none;
  filter: blur(6px);
}

.wheel-img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  /* Warm lac tint so the mandala sits in the tan/red scheme */
  filter: sepia(0.25) hue-rotate(-14deg) saturate(1.5) brightness(0.82) contrast(1.18)
    drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Arrow lives at the center of the mandala, rotates to the active label */
.wheel-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(90px, 14vw, 150px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.9s cubic-bezier(.5, .05, .2, 1);
  z-index: 7;
  pointer-events: none;
}
.wheel-marker svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.35));
}

/* Center hub — pivot disc under the arrow */
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14%;
  aspect-ratio: 1;
  z-index: 5;
  background-color: var(--white);
  background-image: linear-gradient(rgba(255,251,240,0.87), rgba(255,251,240,0.87)), url("../assets/tex-paper.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, multiply;
  border-radius: 50%;
  border: 3px solid var(--ink);
  pointer-events: none;
}

/* Section labels at cardinal points around the wheel */
.wheel-label {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
  transition: all .4s var(--ease);
  z-index: 5;
  cursor: pointer;
  padding: 4px 8px;
  max-width: 30%;

  /* Outlined by default */
  color: transparent;
  -webkit-text-stroke: 0.8px var(--ink);
}
.wheel-label:hover {
  -webkit-text-stroke-color: var(--red);
}
/* Active: filled sindoor with warm-white halo + soft ink offset */
.wheel-label.active {
  color: var(--red);
  -webkit-text-stroke: 0.8px var(--ink);
  text-shadow:
    -1px -1px 0 var(--white),
     1px -1px 0 var(--white),
    -1px  1px 0 var(--white),
     1px  1px 0 var(--white),
     2px 2px 0 var(--ink);
}
.wheel-label.pos-top {
  top: 9%;
  left: 50%;
  transform: translate(-50%, 0);
}
.wheel-label.pos-right {
  top: 50%;
  right: -6%;
  transform: translate(0, -50%);
  text-align: left;
}
.wheel-label.pos-bottom {
  bottom: 9%;
  left: 50%;
  transform: translate(-50%, 0);
}
.wheel-label.pos-left {
  top: 50%;
  left: -6%;
  transform: translate(0, -50%);
  text-align: right;
}
.wheel-label.pos-top.active,
.wheel-label.pos-bottom.active { transform: translate(-50%, 0) scale(1.15); }
.wheel-label.pos-right.active,
.wheel-label.pos-left.active   { transform: translate(0, -50%) scale(1.15); }

@media (max-width: 640px) {
  .wheel-label { max-width: 26%; }
}

/* PANEL — content that swaps on switch --------------------- */
.panel {
  display: none;
  padding: 40px 24px 60px;
}
@media (min-width: 900px) { .panel { padding: 60px 40px 100px; } }
.panel.active { display: block; }

.panel-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  align-items: end;
  position: relative;
}
@media (min-width: 900px) {
  .panel-head { grid-template-columns: 2fr 1fr; gap: 40px; }
}
/* Ornamental dashed rule + bandhani dots under the panel head */
.panel-head::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background-image:
    linear-gradient(to right, var(--ink) 60%, transparent 60%),
    radial-gradient(circle at center, var(--red) 3px, transparent 4px);
  background-size: 12px 1.5px, 100% 3px;
  background-position: left top, center center;
  background-repeat: repeat-x, no-repeat;
}
.panel-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel-eyebrow .hindi {
  font-family: var(--deva);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.06em;
}
.panel-eyebrow::before,
.panel-eyebrow::after {
  content: '';
  height: 1px;
  background: var(--red);
  flex: 0 0 32px;
}
.panel-eyebrow::after { flex: 1; }
.panel-head h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(56px, 9vw, 130px);
  line-height: 0.85;
  color: var(--ink);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.panel-head h2 .blood { color: var(--red); font-style: normal; }
.panel-head h2 .iodine {
  display: inline-block;
  line-height: 1.1;
  background-color: var(--white);
  background-image: linear-gradient(rgba(255,251,240,0.87), rgba(255,251,240,0.87)), url("../assets/tex-paper.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, multiply;
  color: var(--red);
  font-style: normal;
  padding: 4px 12px;
}
.panel-head h2 .underline {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 6px;
  text-underline-offset: 10px;
}
/* Longer sentence-length headline (Bio's mission statement) — same voice,
   sized down from the one-word display treatment so it doesn't overwhelm. */
.panel-head h2.statement {
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.panel-head .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 380px;
  text-align: left;
  text-wrap: pretty;
}
@media (min-width: 900px) { .panel-head .lead { text-align: right; } }
.panel-head .lead em { color: var(--red); font-style: italic; font-weight: 400; }

/* Panel pattern: rows of arch-framed image + caption -------- */
.pat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.bio-map + .pat { margin-top: 50px; }
@media (min-width: 700px) {
  .pat { grid-template-columns: 1fr 1fr; gap: 30px; }
}
.pat + .pat { margin-top: 30px; }
/* Bio's pat row only ever holds one image — center it instead of
   leaving it stuck in the left grid column. */
#panel-bio .pat { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
.pat-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pat-tile {
  aspect-ratio: 4/5;
  position: relative;
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.pat-tile .arch-frame { width: 100%; height: 100%; }
.pat-tile .arch-inner { background: var(--tan-2); }
/* Real-hover-only — iOS simulates :hover on tap, which would otherwise
   trigger this transform on every tap on mobile. */
@media (hover: hover) and (pointer: fine) {
  .pat-tile:hover { transform: translate(-4px, -4px); filter: drop-shadow(6px 6px 0 var(--red)); }
}
.pat-tile image-slot { width: 100%; height: 100%; display: block; }

/* Caption under each image — white paper, buta ticks */
.pat-desc {
  background-color: var(--white);
  background-image: linear-gradient(rgba(255,251,240,0.87), rgba(255,251,240,0.87)), url("../assets/tex-paper.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, multiply;
  border: 1.5px solid var(--ink);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  position: relative;
}
.pat-desc::before,
.pat-desc::after {
  content: '✦';
  color: var(--red);
  font-size: 9px;
  margin: 0 8px;
  vertical-align: 1px;
}

/* BIO — "why" flowchart: hub → reason → reason → reason, left to right,
   wrapping to a top-to-bottom chart on narrow screens. */
.bio-map {
  margin-top: 50px;
  padding-top: 10px;
  padding-bottom: 8px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* At in-between widths the row would rather scroll than wrap mid-chart —
     wrapping breaks the arrow connectors, a contained scroll doesn't. */
  overflow-x: auto;
}
@media (max-width: 699px) {
  .bio-map { flex-direction: column; overflow-x: visible; }
}

.flow-arrow {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--red);
}
@media (max-width: 699px) {
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

.flow-node {
  flex: 0 1 190px;
  max-width: 210px;
  padding: 18px 16px;
  background-color: var(--white);
  background-image: linear-gradient(rgba(255,251,240,0.87), rgba(255,251,240,0.87)), url("../assets/tex-paper.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, multiply;
  border: 1.5px solid var(--ink);
  text-align: center;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
/* Real-hover-only — iOS simulates :hover on tap, which would otherwise
   trigger this transform on every tap on mobile. */
@media (hover: hover) and (pointer: fine) {
  .flow-node:hover { transform: translate(-3px, -3px); filter: drop-shadow(4px 4px 0 var(--red)); }
}
.flow-node .num {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 8px;
}
.flow-node p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  margin: 0;
}
.flow-node.hub {
  background-color: var(--red);
  background-image: url("../assets/tex-blood.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  border: 2px solid var(--ink);
  color: var(--white);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
}
.flow-node.hub .hindi {
  font-family: var(--deva);
  font-style: normal;
  font-size: 0.6em;
  color: var(--tan);
  margin-right: 8px;
}
.flow-node.hub .blood { color: var(--tan); font-style: normal; }

/* MANIFESTO — sindoor band ---------------------------------- */
.manifesto {
  padding: 100px 24px;
  background-color: var(--red);
  /* paisley block-print over the lac-dye texture */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'><g fill='none' stroke='%23FFFBF0' stroke-opacity='0.12' stroke-width='1.3'><path d='M42 10c16 5 23 21 18 37-4 13-17 22-29 18-11-3-16-17-10-27 5-9 17-10 22-2 3 7-2 15-9 13'/><path d='M60 14c3-4 9-5 13-2'/><circle cx='35' cy='45' r='2.2'/></g></svg>"),
    url("../assets/tex-blood.jpg");
  background-size: 84px 84px, cover;
  background-position: top left, center;
  background-blend-mode: normal, multiply;
  color: var(--white);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .manifesto { padding: 140px 60px; } }
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0 2px,
      rgba(0,0,0,0.06) 2px 3px
    );
  pointer-events: none;
}
.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.manifesto .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.manifesto .eyebrow .hindi { font-family: var(--deva); font-size: 15px; text-transform: none; }
.manifesto .eyebrow::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--tan);
  border-radius: 50%;
}
.manifesto p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4.5vw, 62px);
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.manifesto p .hindi { font-family: var(--deva); font-style: normal; color: var(--tan); }
.manifesto p .u {
  border-bottom: 4px solid var(--tan);
  padding-bottom: 2px;
}
.manifesto-sig {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(231, 211, 174, 0.35);
  padding-top: 16px;
}

/* CONTACT — white paper band -------------------------------- */
.contact {
  padding: 80px 24px;
  background-color: var(--white);
  background-image: linear-gradient(rgba(255,251,240,0.87), rgba(255,251,240,0.87)), url("../assets/tex-paper.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, multiply;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .contact { padding: 100px 40px; } }
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
  position: relative;
  z-index: 2;
}
@media (min-width: 900px) { .contact-inner { grid-template-columns: 1.5fr 1fr; } }

.contact h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  color: var(--ink);
  text-wrap: pretty;
}
.contact h2 .blood { color: var(--red); font-style: normal; }
.contact h2 .hindi { font-family: var(--deva); font-style: normal; color: var(--red); }
.contact .details {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.9;
}
.contact .details .lbl {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 2px;
  margin-top: 12px;
}
.contact .details a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.contact .details a:hover { color: var(--red); }
.contact-cta { margin-top: 30px; }

/* START A PROJECT — modal ------------------------------------ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(52, 32, 14, 0.7);
  z-index: 100;
  padding: 24px;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
body.modal-open { overflow: hidden; }

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 36px 28px;
  background-color: var(--white);
  background-image: linear-gradient(rgba(255,251,240,0.92), rgba(255,251,240,0.92)), url("../assets/tex-paper.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, multiply;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(52, 32, 14, 0.25);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.modal-close:hover { background: var(--ink); color: var(--white); }
.modal h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 24px;
}
.modal h3 .blood { color: var(--red); font-style: normal; }
.modal form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: -10px;
}
.modal input,
.modal textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 8px 2px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  resize: vertical;
}
.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
}
.modal button[type="submit"] {
  margin-top: 8px;
  align-self: flex-start;
}
