/* ==========================================================================
   arjunkhanna.in — Arjun Khanna, The Sea Buckthorn Guru
   ========================================================================== */

:root {
  --ink:        #14170F;
  --ink-2:      #1C2116;
  --ink-3:      #2A3021;
  --cream:      #F8F4EA;
  --cream-2:    #F1EAD9;
  --sand:       #E0D5BC;
  --berry:      #E2701A;
  --berry-lit:  #F5A63D;
  --sage:       #8B9A73;
  --body:       #3D4436;
  --muted:      #6E7563;

  --shell:      min(1180px, 100% - 3rem);
  --r:          14px;
  --ease:       cubic-bezier(.22,.61,.36,1);

  --f-display:  "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

.wrap { width: var(--shell); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: .75rem 1.25rem;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; border-radius: 3px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
h1 { font-size: clamp(3rem, 8.5vw, 6rem); line-height: .98; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.05rem); }
h3 { font-size: 1.24rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.kicker {
  font-family: var(--f-body);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--berry);
  margin: 0 0 1.1rem;
}

.lead {
  font-size: clamp(1.14rem, 1.6vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-3);
}
.lead-wide { max-width: 62ch; margin-bottom: 3.2rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-body);
  font-size: .95rem; font-weight: 500; letter-spacing: .01em;
  padding: .95em 1.7em;
  border-radius: 100px;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--berry); color: #fff; border: 1px solid var(--berry); }
.btn-primary:hover { background: #cb610f; border-color: #cb610f; }
.btn-ghost { border: 1px solid rgba(248,244,234,.42); color: var(--cream); }
.btn-ghost:hover { background: rgba(248,244,234,.1); border-color: rgba(248,244,234,.72); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Header ---------- */

.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1.15rem 0;
  background: linear-gradient(to bottom, rgba(20,23,15,.82) 0%, rgba(20,23,15,.45) 55%, transparent 100%);
  transition: background-color .3s var(--ease), padding .3s var(--ease),
              box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-head.is-stuck {
  background: rgba(20,23,15,.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding: .7rem 0;
  box-shadow: 0 1px 0 rgba(248,244,234,.1);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { text-decoration: none; display: grid; line-height: 1.15; }
.brand-name {
  font-family: var(--f-display); font-size: 1.16rem; font-weight: 500;
  color: var(--cream); letter-spacing: -0.01em;
}
.brand-tag {
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--berry-lit); font-weight: 500; margin-top: .18rem;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  text-decoration: none; font-size: .9rem; font-weight: 400;
  color: rgba(248,244,234,.8);
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--cream); }
.nav .nav-cta {
  border: 1px solid rgba(248,244,234,.34);
  padding: .55em 1.15em; border-radius: 100px; color: var(--cream);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.nav .nav-cta:hover { background: var(--berry); border-color: var(--berry); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 11px 9px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--cream); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(600px, 90vh, 900px);
  display: flex; align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 47%;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 64% center;
}
/* feather the photo into the ink field so the split reads as one image */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(20,23,15,.9) 14%, rgba(20,23,15,.28) 38%, transparent 62%),
    linear-gradient(0deg, rgba(20,23,15,.55) 0%, transparent 34%);
}
.hero-inner { position: relative; z-index: 2; padding: 9.5rem 0 5.5rem; max-width: 33rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--berry-lit); margin: 0 0 1.4rem;
}
.berry-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--berry); box-shadow: 0 0 0 4px rgba(226,112,26,.2);
}

.hero h1 { color: var(--cream); margin-bottom: .28em; }
.hero-role {
  font-size: 1.02rem; line-height: 1.6; color: rgba(248,244,234,.8);
  margin: 0 0 1.5rem; font-weight: 400;
}
.hero-lead {
  font-family: var(--f-display);
  font-size: clamp(1.18rem, 1.9vw, 1.46rem); line-height: 1.48;
  color: rgba(248,244,234,.94); font-weight: 400;
  max-width: 26ch; margin: 0 0 2.4rem;
}

/* ---------- Stats ---------- */

.stats { background: var(--ink-2); padding: 3.6rem 0; border-top: 1px solid rgba(248,244,234,.08); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.6rem;
}
.stat { display: grid; gap: .55rem; align-content: start; }
.stat + .stat { border-left: 1px solid rgba(248,244,234,.12); padding-left: 2.6rem; }
.stat-num {
  font-family: var(--f-display); font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  font-weight: 500; color: var(--berry-lit); line-height: 1; letter-spacing: -0.02em;
}
.stat-num .plus { font-size: .6em; vertical-align: .28em; }
.stat-label { font-size: .87rem; line-height: 1.55; color: rgba(248,244,234,.62); }

/* ---------- Sections ---------- */

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }

.grid-2 {
  display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.grid-2-alt { grid-template-columns: 1.1fr .95fr; align-items: center; }

/* Story */
.story { background: var(--cream); }
.col-quote { position: relative; padding-top: 2.6rem; }
.sprig { width: 74px; height: auto; color: var(--berry); opacity: .88; margin-bottom: 1.1rem; }
.sprig .berries { opacity: .92; }
.glance {
  border-left: 2px solid var(--berry); padding-left: 1.6rem;
}
.glance-head {
  font-family: var(--f-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.4rem;
}
.glance dl { margin: 0; display: grid; gap: 1.15rem; }
.glance dt {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--berry); font-weight: 600; margin-bottom: .3rem;
}
.glance dd {
  margin: 0; font-family: var(--f-display); font-size: 1.06rem;
  line-height: 1.4; color: var(--ink); letter-spacing: -0.01em;
}

/* The Berry */
.berry-sec { background: var(--cream-2); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r);
  padding: 2.1rem 1.75rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(226,112,26,.4);
  box-shadow: 0 14px 34px -20px rgba(20,23,15,.4);
}
.card-num {
  display: block; font-family: var(--f-display); font-size: .95rem;
  color: var(--berry); letter-spacing: .06em; margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .5em; }
.card p { font-size: .96rem; line-height: 1.65; margin: 0; }

/* Biosash */
.biosash { background: var(--ink); color: rgba(248,244,234,.76); }
.biosash h2, .biosash h3 { color: var(--cream); }
.biosash .lead { color: rgba(248,244,234,.9); }
.biosash .btn-primary { margin-top: 1.6rem; }
.list-head {
  font-family: var(--f-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--berry-lit);
  margin-bottom: 1.6rem;
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 4.2rem 1fr; gap: 1.2rem;
  padding: 1.05rem 0; border-top: 1px solid rgba(248,244,234,.13);
  font-size: .93rem; line-height: 1.5;
}
.timeline li:last-child { border-bottom: 1px solid rgba(248,244,234,.13); }
.yr { font-family: var(--f-display); color: var(--berry-lit); font-size: 1.02rem; }
.ev { color: rgba(248,244,234,.78); }

/* Media */
.media { background: var(--cream); }
.featured-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: -1.6rem 0 1rem;
}
.featured {
  list-style: none; margin: 0 0 3.4rem; padding: 0 0 2.2rem;
  display: flex; flex-wrap: wrap; gap: .7rem 2rem;
  border-bottom: 1px solid var(--sand);
}
.featured li {
  font-family: var(--f-display); font-size: 1.14rem; color: var(--ink);
  letter-spacing: -0.01em;
}

.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem 1.5rem;
}
.vid { text-decoration: none; display: grid; gap: 1rem; }
.vid-thumb {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r); background: var(--ink-2); aspect-ratio: 16 / 9;
  border: 1px solid var(--sand);
}
.vid-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .5s var(--ease), filter .4s var(--ease);
}
.vid:hover .vid-thumb img { transform: scale(1.05); filter: brightness(.82); }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(20,23,15,.55); backdrop-filter: blur(3px);
  border: 1px solid rgba(248,244,234,.5);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.play::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 0; height: 0; margin-left: 22px;
  border-left: 15px solid var(--cream);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.vid:hover .play { background: var(--berry); transform: scale(1.08); border-color: var(--berry); }
.vid-meta { display: grid; gap: .3rem; }
.vid-title {
  font-family: var(--f-display); font-size: 1.09rem; color: var(--ink);
  line-height: 1.32; letter-spacing: -0.01em;
}
.vid-sub { font-size: .85rem; color: var(--muted); }

.clips-head {
  font-family: var(--f-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--berry);
  margin: 4rem 0 1.4rem;
}
.clips { display: flex; flex-wrap: wrap; gap: .7rem; }
.clip {
  text-decoration: none; font-size: .89rem;
  border: 1px solid var(--sand); background: var(--cream-2);
  padding: .7em 1.25em; border-radius: 100px; color: var(--ink-3);
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.clip::before { content: "▶"; font-size: .62em; color: var(--berry); margin-right: .6em; vertical-align: .12em; }
.clip:hover { background: var(--berry); border-color: var(--berry); color: #fff; transform: translateY(-2px); }
.clip:hover::before { color: #fff; }

/* Speaking */
.speaking { background: var(--cream-2); }
.topics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.6rem 3rem;
}
.topic { border-top: 2px solid var(--berry); padding-top: 1.4rem; }
.topic h3 { margin-bottom: .55em; }
.topic p { font-size: .96rem; margin: 0; }
.cta-band {
  margin-top: 4.5rem; padding: 2.6rem clamp(1.75rem, 4vw, 3.2rem);
  background: var(--ink); border-radius: var(--r);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.cta-band p {
  margin: 0; font-family: var(--f-display);
  font-size: clamp(1.24rem, 2.2vw, 1.62rem); color: var(--cream); line-height: 1.35;
}

/* Contact */
.contact { background: var(--cream); }
.contact-inner .lead { max-width: 46ch; margin-bottom: 3rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.contact-card {
  text-decoration: none; display: grid; gap: .45rem;
  padding: 1.8rem; border: 1px solid var(--sand); border-radius: var(--r);
  background: var(--cream-2);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background-color .25s var(--ease);
}
.contact-card:hover { border-color: var(--berry); transform: translateY(-3px); background: #fff; }
.cc-label {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--berry); font-weight: 600;
}
.cc-value { font-family: var(--f-display); font-size: 1.1rem; color: var(--ink); word-break: break-word; }

/* ---------- Footer ---------- */

.site-foot { background: var(--ink); color: rgba(248,244,234,.55); padding: 3.6rem 0 2.8rem; }
.foot-inner { display: grid; gap: 2rem; }
.foot-name { font-family: var(--f-display); font-size: 1.28rem; color: var(--cream); margin: 0 0 .3rem; }
.foot-tag { font-size: .87rem; margin: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.foot-nav a { text-decoration: none; font-size: .88rem; transition: color .2s var(--ease); }
.foot-nav a:hover { color: var(--berry-lit); }
.foot-legal {
  font-size: .78rem; line-height: 1.65; margin: 0;
  padding-top: 1.8rem; border-top: 1px solid rgba(248,244,234,.12);
  color: rgba(248,244,234,.42);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(2n) { border-left: 1px solid rgba(248,244,234,.12); padding-left: 2.2rem; }
  .grid-2, .grid-2-alt { grid-template-columns: 1fr; gap: 3.4rem; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --shell: min(1180px, 100% - 2.5rem); }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 auto 0;
    background: rgba(20,23,15,.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 5.6rem 1.25rem 2rem;
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform .38s var(--ease), opacity .28s var(--ease);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a {
    padding: 1.05rem .25rem; font-size: 1.1rem;
    border-bottom: 1px solid rgba(248,244,234,.1);
  }
  .nav .nav-cta {
    border: 0; border-radius: 0; padding: 1.05rem .25rem; color: var(--berry-lit);
  }
  .nav .nav-cta:hover { background: none; }

  .hero { min-height: 0; display: block; }
  .hero-media {
    position: relative; width: 100%; height: clamp(280px, 46vh, 420px);
  }
  .hero-media img { object-position: 62% center; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(20,23,15,.72) 0%, rgba(20,23,15,.15) 34%,
                      rgba(20,23,15,.6) 76%, var(--ink) 100%);
  }
  .hero-inner { padding: 2.5rem 0 4rem; max-width: none; }
  .hero-lead { max-width: 34ch; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .stat:nth-child(2n) { border-left: 0; padding-left: 0; }
  .stat + .stat { border-top: 1px solid rgba(248,244,234,.12); padding-top: 1.9rem; }
  .featured-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: -1.6rem 0 1rem;
}
.featured {
  list-style: none; margin: 0 0 3.4rem; padding: 0 0 2.2rem;
  display: flex; flex-wrap: wrap; gap: .7rem 2rem;
  border-bottom: 1px solid var(--sand);
}
.featured li {
  font-family: var(--f-display); font-size: 1.14rem; color: var(--ink);
  letter-spacing: -0.01em;
}

.video-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 3.4rem 1fr; gap: .9rem; }
  .sprig { width: 66px; }
}
