/* ============================================================
   reshabh.cc — warm editorial palette (Butter / Cherry / Olive / Oat)
   Color-blocked sections, Fraunces display serif. Boldness is spent
   on the color blocks + the "watch" scrubber; type stays disciplined.
   ============================================================ */

:root {
  --butter: #FFEDAB;
  --cherry: #75070C;
  --olive:  #4F6815;
  --oat:    #F0E6DA;

  --ink:      #2A2012;            /* warm near-black for body text on light */
  --ink-soft: rgba(42, 32, 18, .66);

  --cherry-deep: #5C0508;        /* hover state for cherry */
  --olive-deep:  #3F520F;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 64px);
  --gutter: max(var(--pad), calc((100% - var(--maxw)) / 2));
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--oat);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-optical-sizing: auto;
  margin: 0;
  letter-spacing: -.015em;
  line-height: 1.02;
}

::selection { background: var(--cherry); color: var(--butter); }

:focus-visible {
  outline: 2.5px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--cherry);
  color: var(--butter);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

/* shared small label */
.eyebrow, .kicker, .card-kind, .scrubber-label, .status, .now-note {
  font-family: var(--font-body);
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(240, 230, 218, .82);
  border-bottom: 1px solid rgba(117, 7, 12, .14);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--cherry);
}
/* the four-color wheel, in miniature */
.wordmark-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: conic-gradient(
    var(--butter) 0 90deg, var(--cherry) 90deg 180deg,
    var(--olive) 180deg 270deg, var(--oat) 270deg 360deg);
  box-shadow: inset 0 0 0 1px rgba(42,32,18,.12);
}
.wordmark-dim { color: var(--olive); }
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
  color: var(--cherry);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--olive); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 13px;
  border: 1px solid rgba(79, 104, 21, .4);
  border-radius: 999px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 0 rgba(79,104,21,.5);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,104,21,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(79,104,21,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,104,21,0); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--butter);
  padding: clamp(104px, 15vh, 168px) var(--gutter) clamp(64px, 11vh, 120px);
  min-height: min(82vh, 720px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
/* signature motif: the four-color circle from the palette card */
.hero-wheel {
  position: absolute;
  top: -14%;
  right: -8%;
  width: 46vmin;
  height: 46vmin;
  border-radius: 50%;
  background: conic-gradient(
    var(--butter) 0 90deg, var(--cherry) 90deg 180deg,
    var(--olive) 180deg 270deg, var(--oat) 270deg 360deg);
  box-shadow: inset 0 0 0 2px rgba(42,32,18,.06);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--olive);
  margin: 0 0 24px;
  padding: 7px 15px 7px 13px;
  border: 1px solid rgba(79, 104, 21, .45);
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.hero-title {
  font-size: clamp(2.8rem, 7.2vw, 5.2rem);
  color: var(--cherry);
  margin-bottom: 26px;
}
.hl {
  color: var(--olive);
  font-style: italic;
  font-weight: 900;
}

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 34px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--cherry);
  color: var(--butter);
  box-shadow: 0 10px 26px -12px rgba(117,7,12,.6);
}
.btn-primary:hover { background: var(--cherry-deep); box-shadow: 0 16px 34px -12px rgba(117,7,12,.7); }

.btn-ghost {
  background: transparent;
  border-color: var(--olive);
  color: var(--olive);
}
.btn-ghost:hover { background: var(--olive); color: var(--butter); }

.btn-lg { font-size: 17px; padding: 16px 32px; }

/* "now playing" scrubber — the watch motif */
.scrubber {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin: 4px 0 30px;
}
.scrubber-icon { color: var(--cherry); font-size: 12px; }
.scrubber-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(117, 7, 12, .16);
}
.scrubber-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: var(--olive);
  animation: play 7s cubic-bezier(.4,0,.6,1) infinite;
}
.scrubber-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--cherry);
  box-shadow: 0 0 0 3px rgba(117,7,12,.18);
  transform: translate(-50%, -50%);
  animation: playknob 7s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes play     { 0% { width: 0; } 88% { width: 100%; } 100% { width: 100%; } }
@keyframes playknob { 0% { left: 0; } 88% { left: 100%; } 100% { left: 100%; } }
.scrubber-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive);
}

.now-note {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}
.now-note::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cherry);
}

/* ---------- DISCIPLINES MARQUEE ---------- */
.marquee {
  overflow: hidden;
  background: var(--cherry);
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll 32s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--butter);
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
}
.marquee-item::after {
  content: "✦";
  margin-left: 30px;
  color: var(--oat);
  font-size: .6em;
  font-style: normal;
  opacity: .8;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- SECTION SHELL ---------- */
.section { padding: clamp(72px, 11vh, 132px) var(--gutter); }
.work    { background: var(--oat); }
.about   { background: var(--olive); }

.section-head { margin-bottom: 50px; max-width: 760px; }
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 16px;
}
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  color: var(--cherry);
}

/* ---------- WORK CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  padding: 32px 30px 34px;
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -22px rgba(42,32,18,.4); }

.card-kind {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin: 0 0 16px;
  opacity: .85;
}
.card-title { font-size: 1.9rem; margin-bottom: 4px; }
.card-period {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 18px;
  opacity: .7;
}
.card-body { font-size: 15.5px; margin: 0 0 24px; opacity: .92; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags li {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: .8;
}

/* per-card color blocking — the Butter / Cherry / Olive / Oat grid */
.card[data-accent="cherry"] { background: var(--cherry); color: var(--oat); }
.card[data-accent="cherry"] .card-kind,
.card[data-accent="cherry"] .card-title { color: var(--butter); }

.card[data-accent="olive"] { background: var(--olive); color: var(--oat); }
.card[data-accent="olive"] .card-kind,
.card[data-accent="olive"] .card-title { color: var(--butter); }

.card[data-accent="butter"] { background: var(--butter); color: var(--ink); }
.card[data-accent="butter"] .card-kind,
.card[data-accent="butter"] .card-title { color: var(--cherry); }
.card[data-accent="butter"] .card-period { color: var(--olive); opacity: .85; }

.card[data-accent="oat"] {
  background: var(--oat);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--cherry);
}
.card[data-accent="oat"] .card-kind,
.card[data-accent="oat"] .card-title { color: var(--cherry); }
.card[data-accent="oat"] .card-period { color: var(--olive); opacity: .85; }

/* ---------- ABOUT (olive block) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-portrait {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--butter);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.5);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  display: block;
}
.about .kicker { color: var(--butter); }
.about .section-title { color: var(--oat); margin-bottom: 20px; }
.about-copy p { color: rgba(240, 230, 218, .85); max-width: 58ch; }
.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--butter);
  margin-top: 28px;
}
.about-meta span[aria-hidden] { opacity: .5; }

/* ---------- CONTACT (brutalist statement block) ---------- */
.contact {
  background: var(--oat);
  color: var(--ink);
  min-height: 100vh;
  padding: clamp(28px, 5vh, 56px) var(--gutter) clamp(24px, 4vh, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 8vh, 90px);
}

/* top meta row */
.contact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(42, 32, 18, .2);
}
.c-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.c-wheel {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: conic-gradient(
    var(--butter) 0 90deg, var(--cherry) 90deg 180deg,
    var(--olive) 180deg 270deg, var(--oat) 270deg 360deg);
  box-shadow: inset 0 0 0 1px rgba(42,32,18,.18);
}
.c-loc {
  margin: 0;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.c-loc span { color: var(--olive); }

/* center: the statement + links */
.contact-mid {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}
.c-intro {
  margin: 0 0 18px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
}
.c-statement {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(3rem, 12.5vw, 11rem);
  line-height: .88;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 clamp(28px, 5vh, 56px);
}
.c-dot { color: var(--cherry); }

.c-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(42, 32, 18, .2);
  border-bottom: 1px solid rgba(42, 32, 18, .2);
}
.c-links a {
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .15s;
}
.c-links a:hover { color: var(--cherry); }

/* bottom: heavy brand marquee (filled + outlined) */
.contact-marquee { overflow: hidden; }
.c-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll 34s linear infinite;
}
.c-track span {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 6rem);
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 26px;
}
.c-track span.o {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
}
.c-track .c-star {
  color: var(--cherry);
  -webkit-text-stroke: 0;
  font-size: clamp(1.4rem, 4vw, 3rem);
  padding: 0 8px;
}

/* ---------- FOOTER (cherry block) ---------- */
.footer {
  background: var(--cherry);
  color: var(--oat);
  padding: 30px var(--gutter) 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  font-size: 13.5px;
}
.footer-dim { color: rgba(240, 230, 218, .6); }
.footer-top { margin-left: auto; color: var(--butter); font-weight: 500; }
.footer-top:hover { color: var(--oat); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero-wheel { width: 60vmin; height: 60vmin; top: auto; bottom: -18%; right: -22%; opacity: .9; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot, .marquee-track, .c-track { animation: none; }
  .scrubber-fill { width: 62%; animation: none; }
  .scrubber-knob { left: 62%; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
