/* ============================================================
   TalkToMilind — coming soon
   Warm, quiet, Indian. Light and dark, both intentional.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bone:      #faf6ef;
  --bone-2:    #f2ebe0;
  --bone-3:    #e8dece;
  --ink:       #1e1813;
  --ink-2:     #574c43;
  --ink-3:     #8b7d6d;
  --terracotta:#b4532a;
  --marigold:  #c8862b;
  --line:      rgba(30, 24, 19, .13);
  --line-soft: rgba(30, 24, 19, .07);
  --deep:      #221a15;
  --deep-ink:  #f6efe5;

  --shadow-portrait: 0 2px 4px rgba(45,32,22,.05),
                     0 12px 28px rgba(45,32,22,.09),
                     0 40px 80px rgba(45,32,22,.10);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --ease: cubic-bezier(.22, .68, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bone:      #17120f;
    --bone-2:    #1f1915;
    --bone-3:    #2a221c;
    --ink:       #f5efe7;
    --ink-2:     #c2b5a6;
    --ink-3:     #8d8074;
    --terracotta:#e08a5c;
    --marigold:  #dda352;
    --line:      rgba(245, 239, 231, .15);
    --line-soft: rgba(245, 239, 231, .08);
    --deep:      #100c0a;
    --deep-ink:  #f6efe5;
    --shadow-portrait: 0 2px 4px rgba(0,0,0,.3),
                       0 16px 36px rgba(0,0,0,.42),
                       0 50px 90px rgba(0,0,0,.34);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, blockquote, ol { margin: 0; }
ol { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }

/* Warm paper grain — keeps large flat areas from looking synthetic. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body::before { mix-blend-mode: screen; opacity: .3; }
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bone);
  padding: .75rem 1.25rem; z-index: 200; border-radius: 0 0 .5rem 0;
  font-size: .9rem;
}
.skip-link:focus { left: 0; top: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- masthead ---------- */
.masthead { padding: clamp(1.25rem, 3vw, 2rem) 0; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.015em;
  color: var(--ink);
}
.wordmark__accent { color: var(--terracotta); }
.wordmark--sm { font-size: .95rem; }

/* ---------- badge ---------- */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid color-mix(in srgb, var(--terracotta) 30%, transparent);
  background: color-mix(in srgb, var(--terracotta) 7%, transparent);
  padding: .4rem .75rem;
  border-radius: 100px;
  white-space: nowrap;
}
.badge--sm { font-size: .625rem; padding: .3rem .6rem; letter-spacing: .14em; }

/* ---------- hero ---------- */
.hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(4rem, 9vw, 7rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.75rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 861px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero__copy > * { max-width: 100%; }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 8.2vw, 4.05rem);
  line-height: 1.06;
  letter-spacing: -.028em;
  font-variation-settings: "opsz" 96, "SOFT" 20;
  display: flex; flex-direction: column; gap: .28em;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__line--accent {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 500;
}

.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -.012em;
  max-width: 38ch;
}
.hero__lede span { display: block; text-wrap: pretty; }

.hero__sub {
  font-size: clamp(1rem, 2.1vw, 1.0625rem);
  color: var(--ink-2);
  max-width: 44ch;
  line-height: 1.66;
}

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  padding-top: .35rem;
}
.hero__meta i { color: var(--terracotta); opacity: .55; font-style: normal; }

/* ---------- portrait ---------- */
.portrait {
  position: relative;
  justify-self: center;
  width: min(78vw, 420px);
  margin: 0;
}
@media (min-width: 861px) { .portrait { justify-self: end; width: min(100%, 420px); } }

.portrait__stage { position: relative; }

/* Offset sand block — gives the photo an intentional, editorial mount.
   Scoped to the stage so it never runs under the caption. */
.portrait__stage::before {
  content: "";
  position: absolute;
  inset: 1.75rem -1.25rem -1.5rem 1.25rem;
  background: linear-gradient(150deg, var(--bone-2), var(--bone-3));
  border-radius: 220px 220px 22px 22px;
  z-index: 0;
}

.portrait__frame {
  position: relative;
  z-index: 1;
  border-radius: 220px 220px 20px 20px;
  overflow: hidden;
  box-shadow: var(--shadow-portrait);
  background: var(--bone-2);
  aspect-ratio: 4 / 5;
}
.portrait__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
/* Warm scrim: settles the photo into the page instead of sitting on top of it. */
.portrait__frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    /* gentle base fade - the photo already carries its own vignette */
    linear-gradient(to top, color-mix(in srgb, var(--bone) 38%, transparent) 0%,
                            transparent 26%),
    /* knocks back the venue slide behind his head */
    linear-gradient(200deg, color-mix(in srgb, var(--deep) 34%, transparent) 0%,
                            transparent 42%),
    radial-gradient(115% 78% at 50% 30%,
                    transparent 44%,
                    color-mix(in srgb, var(--deep) 20%, transparent) 100%);
  pointer-events: none;
}

.portrait__caption {
  position: relative;
  z-index: 2;
  margin-top: 2.6rem;
  padding-left: .15rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.portrait__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.portrait__role { font-size: .875rem; color: var(--ink-3); line-height: 1.5; }

/* ---------- section label ---------- */
.section-label {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

/* ---------- ideas ---------- */
.ideas {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bone-2) 55%, transparent), transparent 70%);
}

.ideas__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 4vw, 2.75rem);
}
@media (min-width: 720px) {
  .ideas__list { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.25rem); }
}

.idea { display: flex; flex-direction: column; gap: .7rem; position: relative; }
@media (min-width: 720px) {
  .idea + .idea { padding-left: clamp(2rem, 4vw, 3.25rem); }
  .idea + .idea::before {
    content: "";
    position: absolute; left: 0; top: .3rem; bottom: .3rem;
    width: 1px; background: var(--line);
  }
}

.idea__index {
  font-family: var(--serif);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--terracotta);
  opacity: .8;
}
.idea__title {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 3.4vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.2;
}
.idea__body { color: var(--ink-2); font-size: 1rem; line-height: 1.66; max-width: 34ch; }

/* ---------- voice ---------- */
.voice {
  background: var(--deep);
  color: var(--deep-ink);
  padding: clamp(4.5rem, 12vw, 9rem) 0;
}
.voice__inner { display: flex; justify-content: center; }
.voice__quote {
  margin: 0;
  max-width: 24ch;
  display: flex; flex-direction: column; gap: 1.5rem;
}

.voice__line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 11vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #e9a05f;
  text-wrap: balance;
}
.voice__body {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--deep-ink) 66%, transparent);
  max-width: 26ch;
}
.voice__body--strong {
  font-family: var(--serif);
  color: var(--deep-ink);
  font-size: clamp(1.3rem, 3.6vw, 1.85rem);
  line-height: 1.34;
  letter-spacing: -.018em;
}

/* ---------- cta ---------- */
.cta { padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem); }
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.75rem; }

.cta__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 7.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.cta__meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .55rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  max-width: 34ch;
}
.cta__meta i { color: var(--terracotta); opacity: .55; font-style: normal; }

.cta__slot { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding-top: .5rem; }

.cta__pill {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bone-2) 70%, transparent);
  padding: .95rem 1.75rem;
  border-radius: 100px;
}
.cta__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--terracotta);
  animation: pulse 2.8s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%      { opacity: .35; transform: scale(.82); }
}
.cta__note { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-3); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(2.25rem, 5vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.footer__inner { display: flex; flex-direction: column; gap: 1.75rem; }
.footer__disclaimer {
  font-size: .8125rem;
  line-height: 1.62;
  color: var(--ink-3);
  max-width: 62ch;
}
.footer__legal {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-top: .25rem;
  border-top: 1px solid var(--line-soft);
}
.footer__copy { font-size: .8125rem; color: var(--ink-3); }

/* ---------- reveal ---------- */
/* Hidden only when JS is confirmed running, so a script failure can never
   leave the page blank. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cta__dot { animation: none; }
}
