/*
Theme Name: DK Bibash
Theme URI: https://dkbibash.com
Author: Bibash Dallakoti
Description: Personal brand theme for DK Bibash. Exact replication of v31 mockup.
Version: 9.9.23
License: Private
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Mono:ital,wght@0,300;0,400;1,300&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');


    :root {
      --ink: #0A0A0A;
      --ink-soft: #1A1A1A;
      --paper: #F5F0E8;
      --paper-warm: #EDE8DC;
      --ash: #2C2C2C;
      --dust: #6B6560;
      --gold: #C9A84C;
      --gold-muted: #A8893E;
      --ivory: #FAF7F2;
      --rule: rgba(201, 168, 76, 0.3);
      --font-display: 'Cormorant Garamond', Georgia, serif;
      --font-body: 'Libre Baskerville', Georgia, serif;
      --font-mono: 'DM Mono', monospace;
    }

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

    html { scroll-behavior: smooth; }

    body {
      background: var(--ink);
      color: var(--paper);
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.7;
      overflow-x: hidden;
      transition: background 0.4s, color 0.4s;
    }

    /* ─── NAV ─── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.5rem 4rem;
      background: rgba(10,10,10,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(201,168,76,0.12);
    }

    .nav-logo {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
    }

    .nav-logo img {
      height: 64px;
      width: auto;
      display: block;
    }

    .nav-links {
      display: flex;
      gap: 2.2rem;
      list-style: none;
      align-items: center;
    }

    .nav-links > li {
      position: relative;
    }

    .nav-links a {
      font-family: var(--font-mono);
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--ivory);
      text-decoration: none;
      transition: color 0.3s, background 0.3s;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.5rem 0.9rem;
      border-radius: 4px;
    }

    .nav-links a:hover {
      color: var(--gold);
      background: rgba(201, 168, 76, 0.12);
    }

    .nav-links .has-dropdown > a::after {
      content: '▾';
      font-size: 0.55rem;
      opacity: 0.6;
    }

    .dropdown {
      display: none;
      position: absolute;
      top: calc(100% + 1rem);
      left: 0;
      background: #111;
      border: 1px solid rgba(201,168,76,0.15);
      border-top: 2px solid var(--gold);
      min-width: 140px;
      padding: 0.5rem 0;
      list-style: none;
    }

    /* Invisible hover bridge so cursor can travel from nav link to dropdown without closing it */
    .has-dropdown::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      height: 1.2rem;
      background: transparent;
      pointer-events: auto;
    }

    .has-dropdown:hover .dropdown { display: block; }
    .has-dropdown.open .dropdown { display: block; }

    .dropdown li a {
      display: block;
      padding: 0.65rem 1.4rem;
      font-size: 0.75rem;
      letter-spacing: 0.15em;
      color: var(--dust);
      text-transform: uppercase;
      white-space: nowrap;
    }

    .dropdown li a:hover {
      color: var(--gold);
      background: rgba(201,168,76,0.05);
    }

    /* ─── HERO ─── */
    .hero {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      padding: 14rem 4rem 5rem;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: -20%; right: -10%;
      width: 55%;
      height: 120%;
      background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-bg-text {
      position: absolute;
      top: 50%;
      right: -2%;
      transform: translateY(-50%);
      pointer-events: none;
      user-select: none;
      opacity: 0.04;
      width: clamp(300px, 40vw, 600px);
    }
    .hero-bg-text img {
      width: 100%;
      height: auto;
      display: block;
    }

    .hero-left { position: relative; z-index: 2; }

    .hero-eyebrow {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.8rem;
    }

    .hero-eyebrow::before {
      content: none;
    }

    .hero-name {
      font-family: var(--font-display);
      font-size: clamp(3.5rem, 7vw, 6.5rem);
      font-weight: 300;
      line-height: 1.05;
      letter-spacing: -0.02em;
      color: var(--ivory);
      margin-bottom: 0.3rem;
    }

    .hero-name em {
      font-style: italic;
      color: var(--gold);
    }

    .hero-tagline {
      font-family: var(--font-display);
      font-size: clamp(1rem, 2vw, 1.4rem);
      font-weight: 300;
      font-style: italic;
      color: var(--dust);
      margin-bottom: 3rem;
      letter-spacing: 0.02em;
    }

    .hero-descriptor {
      font-size: 0.9rem;
      color: var(--dust);
      line-height: 1.8;
      max-width: 38ch;
      margin-bottom: 3rem;
      font-family: var(--font-body);
    }

    .hero-roles {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-bottom: 3rem;
    }

    .role-tag {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      padding: 0.4rem 0.9rem;
      border: 1px solid rgba(201,168,76,0.3);
      color: var(--gold);
      border-radius: 0;
    }

    .hero-cta {
      display: flex;
      gap: 1.5rem;
      align-items: center;
    }

    .btn-primary {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      padding: 1rem 2.2rem;
      background: var(--gold);
      color: var(--ink);
      border: none;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      transition: background 0.3s;
      font-weight: 400;
    }

    .btn-primary:hover { background: var(--gold-muted); }

    .btn-ghost {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--dust);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: color 0.3s;
    }

    .btn-ghost:hover { color: var(--paper); }

    .hero-right {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
    }

    .hero-quote-block {
      max-width: 42ch;
      text-align: right;
    }

    .hero-quote {
      font-family: var(--font-display);
      font-size: 1.6rem;
      font-style: italic;
      font-weight: 300;
      color: var(--dust);
      line-height: 1.5;
      margin-bottom: 1.5rem;
    }

    .hero-quote-attr {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
    }

    .hero-divider {
      width: 1px;
      height: 6rem;
      background: linear-gradient(to bottom, transparent, var(--gold), transparent);
      margin: 3rem auto 0;
    }

    /* ─── BRAND IDENTITY SECTION ─── */
    .section {
      padding: 4.5rem 4rem;
      max-width: 1300px;
      margin: 0 auto;
    }

    .section-label {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .section-label::after {
      content: '';
      flex: 0 0 3rem;
      height: 1px;
      background: var(--gold);
      opacity: 0.4;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 3.5rem);
      font-weight: 300;
      letter-spacing: -0.02em;
      color: var(--ivory);
      margin-bottom: 3rem;
      line-height: 1.2;
    }

    /* ─── COLOUR PALETTE ─── */
    .palette-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 1rem;
      margin-bottom: 4rem;
    }

    .swatch {
      aspect-ratio: 1;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 1rem;
      position: relative;
      overflow: hidden;
    }

    .swatch-name {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      margin-bottom: 0.2rem;
    }

    .swatch-hex {
      font-family: var(--font-mono);
      font-size: 0.55rem;
      opacity: 0.6;
    }

    .swatch-role {
      font-family: var(--font-body);
      font-size: 0.7rem;
      font-style: italic;
      margin-top: 0.3rem;
      opacity: 0.7;
    }

    /* ─── TYPOGRAPHY ─── */
    .type-showcase {
      border-top: 1px solid rgba(255,255,255,0.06);
      padding-top: 3rem;
      margin-bottom: 4rem;
    }

    .type-row {
      display: grid;
      grid-template-columns: 180px 1fr;
      gap: 2rem;
      align-items: baseline;
      padding: 1.5rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .type-label {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.2em;
      color: var(--dust);
      text-transform: uppercase;
    }

    /* ─── CONTENT SECTION ─── */
    .content-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1.5px;
      margin-bottom: 2rem;
    }

    .content-card {
      background: var(--ink-soft);
      padding: 2.5rem;
      position: relative;
      overflow: hidden;
      transition: background 0.4s;
      cursor: pointer;
    }

    .content-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 2px;
      background: var(--gold);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.4s;
    }

    .content-card:hover { background: #1E1E1E; }
    .content-card:hover::before { transform: scaleX(1); }

    .card-category {
      font-family: var(--font-mono);
      font-size: 0.55rem;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1.2rem;
    }

    .card-title {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 400;
      line-height: 1.3;
      color: var(--ivory);
      margin-bottom: 0.8rem;
    }

    .card-excerpt {
      font-size: 0.8rem;
      color: var(--dust);
      line-height: 1.8;
      margin-bottom: 1.5rem;
    }

    .card-date {
      font-family: var(--font-mono);
      font-size: 0.55rem;
      letter-spacing: 0.15em;
      color: rgba(107,101,96,0.6);
    }

    /* ─── BIO SECTION ─── */
    .bio-grid {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 6rem;
      align-items: start;
    }

    .bio-left {
      position: sticky;
      top: 8rem;
    }

    .bio-monogram {
      width: 180px;
      height: 180px;
      border: 1px solid rgba(201,168,76,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 2rem;
      position: relative;
    }

    .bio-monogram::before {
      content: '';
      position: absolute;
      top: 8px; left: 8px; right: -8px; bottom: -8px;
      border: 1px solid rgba(201,168,76,0.08);
    }

    .monogram-text {
      display: none;
    }
    .bio-monogram img {
      width: 130px;
      height: auto;
      display: block;
    }

    .bio-stats {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .stat-item {
      border-left: 1px solid rgba(201,168,76,0.25);
      padding-left: 1rem;
    }

    .stat-number {
      font-family: var(--font-display);
      font-size: 2rem;
      font-weight: 300;
      color: var(--gold);
      line-height: 1;
    }

    .stat-label {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--dust);
      margin-top: 0.2rem;
    }

    .bio-right { }

    .bio-headline {
      font-family: var(--font-display);
      font-size: clamp(1.8rem, 3vw, 2.8rem);
      font-weight: 300;
      line-height: 1.3;
      color: var(--ivory);
      margin-bottom: 2rem;
    }

    .bio-headline em {
      font-style: italic;
      color: var(--gold);
    }

    .bio-body {
      font-size: 0.9rem;
      line-height: 2;
      color: rgba(245,240,232,0.6);
      margin-bottom: 1.5rem;
    }

    .bio-pillars {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-top: 2.5rem;
    }

    .pillar {
      padding: 1.5rem;
      border: 1px solid rgba(255,255,255,0.06);
    }

    .pillar-icon {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      color: var(--gold);
      letter-spacing: 0.2em;
      text-transform: uppercase;
      margin-bottom: 0.5rem;
    }

    .pillar-title {
      font-family: var(--font-display);
      font-size: 1.1rem;
      font-weight: 400;
      color: var(--ivory);
      margin-bottom: 0.3rem;
    }

    .pillar-desc {
      font-size: 0.75rem;
      color: var(--dust);
      line-height: 1.6;
    }

    /* ─── SOCIAL SECTION ─── */
    .social-section {
      background: var(--ink-soft);
      padding: 6rem 4rem;
      border-top: 1px solid rgba(201,168,76,0.1);
      border-bottom: 1px solid rgba(201,168,76,0.1);
    }

    .social-inner {
      max-width: 700px;
      margin: 0 auto;
    }

    .socials-grid {
      display: flex;
      flex-direction: column;
      gap: 1.5px;
    }

    .social-link {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      padding: 1.4rem 2rem;
      background: var(--ink);
      text-decoration: none;
      transition: background 0.3s;
      border-left: 2px solid transparent;
    }

    .social-link:hover {
      background: #141414;
      border-left: 2px solid var(--gold);
    }

    .social-icon {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--gold);
    }

    .social-icon svg {
      width: 22px;
      height: 22px;
    }

    .social-info {
      flex: 1;
    }

    .social-name {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--paper);
      margin-bottom: 0.2rem;
    }

    .social-handle {
      font-family: var(--font-mono);
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      color: var(--gold);
    }

    .social-arrow {
      font-family: var(--font-display);
      font-size: 1.5rem;
      color: var(--dust);
      transition: color 0.3s, transform 0.3s;
    }

    .social-link:hover .social-arrow {
      color: var(--gold);
      transform: translateX(4px);
    }

    /* ─── MESSAGING ─── */
    .messaging-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: start;
    }

    .message-block {
      padding: 2.5rem;
      border: 1px solid rgba(255,255,255,0.05);
      position: relative;
    }

    .message-block::before {
      content: attr(data-num);
      position: absolute;
      top: -1rem;
      left: 1.5rem;
      font-family: var(--font-display);
      font-size: 3.5rem;
      font-weight: 300;
      color: var(--gold);
      opacity: 0.15;
      line-height: 1;
    }

    .message-type {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1rem;
    }

    .message-text {
      font-family: var(--font-display);
      font-size: 1.1rem;
      font-style: italic;
      color: var(--ivory);
      line-height: 1.6;
      margin-bottom: 0.8rem;
    }

    .message-note {
      font-size: 0.75rem;
      color: var(--dust);
      line-height: 1.7;
    }

    /* ─── FOOTER ─── */
    footer {
      padding: 4rem;
      max-width: 1300px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid rgba(255,255,255,0.05);
    }

    .footer-logo img {
      height: 70px;
      width: auto;
      display: block;
    }

    .footer-copy {
      font-family: var(--font-mono);
      font-size: 0.55rem;
      letter-spacing: 0.2em;
      color: var(--dust);
    }

    /* ─── DIVIDER ─── */
    .section-rule {
      border: none;
      border-top: 1px solid rgba(255,255,255,0.05);
      margin: 0 4rem;
    }

    /* ─── ANIMATIONS ─── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .hero-eyebrow { animation: fadeUp 0.8s ease 0.1s both; }
    .hero-name { animation: fadeUp 0.8s ease 0.25s both; }
    .hero-tagline { animation: fadeUp 0.8s ease 0.35s both; }
    .hero-descriptor { animation: fadeUp 0.8s ease 0.45s both; }
    .hero-roles { animation: fadeUp 0.8s ease 0.55s both; }
    .hero-cta { animation: fadeUp 0.8s ease 0.65s both; }
    .hero-quote-block { animation: fadeUp 0.8s ease 0.5s both; }

    @media (max-width: 900px) {
      nav { padding: 1.2rem 2rem; }
      /* nav-links display handled by mobile UX overhaul section */
      .hero { grid-template-columns: 1fr; padding: 7rem 2rem 3rem; }
      body.home .hero-right { display: none; }
      .section { padding: 4rem 2rem; }
      .palette-grid { grid-template-columns: repeat(3, 1fr); }
      .content-grid { grid-template-columns: 1fr; }
      .bio-grid { grid-template-columns: 1fr; gap: 3rem; }
      .bio-left { position: static; }
      .platform-grid { grid-template-columns: 1fr 1fr; }
      .messaging-grid { grid-template-columns: 1fr; }
      footer { flex-direction: column; gap: 1rem; text-align: center; }
    }

    body.light-mode {
      --ink: #F5F0E8;
      --ink-soft: #EDE8DC;
      --paper: #1A1A1A;
      --paper-warm: #2C2C2C;
      --ash: #D5CEBC;
      --dust: #5a5550;
      --ivory: #0A0A0A;
      --rule: rgba(201, 168, 76, 0.3);
    }

    body.light-mode .hero-name { color: #1A1A1A; }
    body.light-mode .hero-tagline { color: #6B6560; }
    body.light-mode .hero-descriptor { color: #5a5550; }
    body.light-mode .hero-eyebrow { color: var(--gold); }
    body.light-mode .btn-ghost { color: #5a5550; }
    body.light-mode .hero-quote { color: #6B6560; }
    body.light-mode .section-title { color: #1A1A1A; }
    body.light-mode .card-title { color: #1A1A1A; }
    body.light-mode .bio-headline { color: #1A1A1A; }
    body.light-mode .bio-body { color: #5a5550; }
    body.light-mode .pillar-title { color: #1A1A1A; }
    body.light-mode .message-text { color: #1A1A1A; }
    body.light-mode .platform-name { color: #1A1A1A; }

    body.light-mode nav {
      background: rgba(245,240,232,0.95);
      border-bottom: 1px solid rgba(201,168,76,0.2);
    }

    body.light-mode .dropdown {
      background: #F5F0E8;
      border: 1px solid rgba(201,168,76,0.2);
    }

    body.light-mode .content-card {
      background: #EDE8DC;
    }

    body.light-mode .content-card:hover {
      background: #E4DED0;
    }

    body.light-mode .social-section {
      background: #EDE8DC;
    }

    body.light-mode .platform-card {
      background: #F5F0E8;
    }

    body.light-mode .platform-card:hover {
      background: #EAE4D6;
    }

    body.light-mode .message-block {
      border: 1px solid rgba(0,0,0,0.08);
    }

    body.light-mode .pillar {
      border: 1px solid rgba(0,0,0,0.08);
    }

    /* Toggle Button */
    /* ── PILL TOGGLE ── */
    .theme-toggle {
      position: fixed;
      top: 7.35rem;
      right: 4rem;
      z-index: 200;
      width: 42px;
      height: 20px;
      border-radius: 999px;
      border: none;
      cursor: pointer;
      padding: 0;
      overflow: hidden;
      background: #333333;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.4);
      transition: background 0.6s ease;
    }

    body.light-mode .theme-toggle {
      background: #7eaed4;
    }

    .toggle-track {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
      border-radius: 999px;
    }

    /* Stars (dark mode bg) */
    .toggle-stars {
      position: absolute;
      inset: 0;
      opacity: 1;
      transition: opacity 0.5s;
    }
    body.light-mode .toggle-stars { opacity: 0; }

    /* 4-pointed star shapes */
    .star {
      position: absolute;
      background: white;
      clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
      animation: starshine 2s ease-in-out infinite alternate;
    }
    .star:nth-child(1)  { width:4px; height:4px; top:15%; left:58%; animation-delay:0s; }
    .star:nth-child(2)  { width:3px; height:3px; top:55%; left:66%; animation-delay:0.5s; }
    .star:nth-child(3)  { width:5px; height:5px; top:72%; left:74%; animation-delay:1.0s; }
    .star:nth-child(4)  { width:3px; height:3px; top:25%; left:76%; animation-delay:0.3s; }
    .star:nth-child(5)  { width:4px; height:4px; top:60%; left:60%; animation-delay:0.8s; }
    .star:nth-child(6)  { width:5px; height:5px; top:12%; left:82%; animation-delay:1.3s; }
    .star:nth-child(7)  { width:3px; height:3px; top:80%; left:78%; animation-delay:0.6s; }
    .star:nth-child(8)  { width:4px; height:4px; top:38%; left:84%; animation-delay:1.1s; }
    .star:nth-child(9)  { width:4px; height:4px; top:50%; left:90%; animation-delay:0.4s; }
    .star:nth-child(10) { width:3px; height:3px; top:8%;  left:70%; animation-delay:0.9s; }

    @keyframes starshine {
      from { opacity: 0.4; transform: scale(0.85) rotate(0deg); }
      to   { opacity: 1;   transform: scale(1.15) rotate(20deg); }
    }





    /* Clouds (light mode bg) */
    .toggle-clouds {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.5s;
    }
    body.light-mode .toggle-clouds { opacity: 1; }

    .cloud {
      position: absolute;
      background: white;
      border-radius: 50px;
    }
    .cloud::before, .cloud::after {
      content: '';
      position: absolute;
      background: white;
      border-radius: 50%;
    }
    .cloud-1 {
      width: 18px; height: 5px;
      bottom: 14%; left: 3%;
      opacity: 0.95;
    }
    .cloud-1::before {
      width: 8px; height: 8px;
      top: -4px; left: 3px;
    }
    .cloud-1::after {
      width: 6px; height: 6px;
      top: -3px; left: 10px;
    }
    .cloud-2 {
      width: 13px; height: 4px;
      bottom: 58%; left: 6%;
      opacity: 0.7;
    }
    .cloud-2::before {
      width: 6px; height: 6px;
      top: -3px; left: 2px;
    }

    /* Knob */
    .toggle-knob {
      position: absolute;
      top: 2px;
      left: 2px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #e8e8e8;
      box-shadow: 0 2px 4px rgba(0,0,0,0.4);
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s;
      overflow: hidden;
    }

    body.light-mode .toggle-knob {
      background: #F5C518;
      transform: translateX(22px);
      box-shadow: 0 2px 8px rgba(245,197,24,0.5);
    }

    /* Moon craters */
    .crater {
      position: absolute;
      background: rgba(0,0,0,0.12);
      border-radius: 50%;
      transition: opacity 0.4s;
    }
    .crater-1 { width:5px; height:5px; top:2px;  left:8px; }
    .crater-2 { width:3px; height:3px; top:9px; left:5px; }
    .crater-3 { width:2px; height:2px; top:7px;  left:11px; }

    body.light-mode .crater { opacity: 0; }

    /* Moon glow ring */
    .moon-glow {
      position: absolute;
      inset: -2px;
      border-radius: 50%;
      border: 1px solid rgba(201,168,76,0.5);
      opacity: 1;
      transition: opacity 0.4s;
    }
    body.light-mode .moon-glow { opacity: 0; }

    .theme-toggle {
      transition: background 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease, outline 0.3s ease;
      transform: scale(1.12);
      transform-origin: top right;
      outline: 2px solid transparent;
      outline-offset: 2px;
    }

    .theme-toggle:hover {
      transform: scale(1.24);
      outline: 2px solid var(--gold);
      box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.5),
        0 2px 6px rgba(0,0,0,0.4),
        0 0 18px rgba(201,168,76,0.55);
    }

    body.light-mode .theme-toggle:hover {
      outline: 2px solid var(--gold);
      box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.15),
        0 2px 6px rgba(0,0,0,0.15),
        0 0 18px rgba(201,168,76,0.6);
    }

    .theme-toggle svg {
      width: 16px;
      height: 16px;
      fill: var(--gold);
      transition: opacity 0.3s;
    }



  

/* ============================================
   WordPress-specific overrides (appended)
   ============================================ */

/* Strip WordPress wrapper padding/margins */
#page, #content, #primary, #main, .site, .site-content,
.wp-site-blocks, main, .entry-content, .site-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
}

/* Kill WordPress default blue links globally - inherit colour from parent */
body a,
body a:link,
body a:visited,
body a:active {
  color: inherit !important;
  text-decoration: none !important;
}
body a:hover {
  color: inherit;
}

/* Restore intended hover colours per element */
.nav-links a:hover,
.dropdown li a:hover,
.btn-ghost:hover,
.social-link:hover .social-arrow,
.card-title a:hover {
  color: var(--gold) !important;
}

/* Card title links: white in dark mode */
.card-title a,
.card-title a:link,
.card-title a:visited {
  color: var(--ivory) !important;
}
body.light-mode .card-title a,
body.light-mode .card-title a:link,
body.light-mode .card-title a:visited {
  color: #1A1A1A !important;
}

/* Nav link colour */
.nav-links a,
.nav-links a:link,
.nav-links a:visited {
  color: var(--ivory) !important;
}

/* Nav links in light mode - dark text on cream */
body.light-mode .nav-links a,
body.light-mode .nav-links a:link,
body.light-mode .nav-links a:visited {
  color: #1A1A1A !important;
}
body.light-mode .nav-links a:hover {
  color: var(--gold) !important;
}

/* Admin bar compensation when logged in */
.admin-bar nav { top: 32px; }
.admin-bar .theme-toggle { top: calc(7.35rem + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar nav { top: 46px; }
  .admin-bar .theme-toggle { top: calc(7.35rem + 46px); }
}

/* परिचय nav link - Devanagari script needs slight size and family adjustment to match Latin items visually */
.nav-link-devanagari {
  font-family: 'Noto Sans Devanagari', 'Mukta', system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: none !important;
}

/* Whole-card click target — make anchor render like a block card */
a.content-card-link,
a.content-card-link:link,
a.content-card-link:visited {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

a.content-card-link:hover .card-title {
  color: var(--gold) !important;
}

a.content-card-link:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* Eyebrow Devanagari sizing - match the Latin uppercase mono visually */
.eyebrow-devanagari {
  font-family: 'Noto Sans Devanagari', 'Mukta', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.4em;
  letter-spacing: 0.05em;
  text-transform: none;
  vertical-align: -0.15em;
  line-height: 1;
  display: inline-block;
}

/* Single post content - proper paragraph spacing for essays/poems */
.post-content {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 2;
  color: rgba(245, 240, 232, 0.78);
  max-width: 68ch;
}

.post-content p {
  margin-bottom: 1.6rem;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content h2,
.post-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ivory);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.5rem; }

.post-content blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--ivory);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.post-content em {
  font-style: italic;
}

.post-content strong {
  color: var(--ivory);
  font-weight: 600;
}

.post-content a {
  color: var(--gold) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  transition: border-color 0.3s;
}

.post-content a:hover {
  border-bottom-color: var(--gold);
}

/* Light mode adjustments */
body.light-mode .post-content {
  color: #2a2520;
}

body.light-mode .post-content h2,
body.light-mode .post-content h3,
body.light-mode .post-content blockquote,
body.light-mode .post-content strong {
  color: #1A1A1A;
}

/* Force visible spacing on br tags (when paragraphs are imported as one block with line breaks) */
.post-content br + br {
  display: block;
  margin-top: 1.6rem;
  content: "";
}

/* Add gap after every br tag to simulate paragraph breaks */
.post-content br {
  display: block;
  content: "";
  margin-bottom: 1rem;
}

/* About page portrait */
.about-portrait {
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-bottom: 2rem;
  position: relative;
}

.about-portrait::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: 8px;
  left: 8px;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: 1;
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.5s ease;
}

.about-portrait:hover img {
  filter: grayscale(0%) contrast(1);
}

.about-quote-below {
  max-width: 380px;
  margin-left: auto;
  text-align: right;
}

.about-quote-below .hero-quote {
  font-size: 1.3rem;
}

@media (max-width: 900px) {
  .about-portrait,
  .about-quote-below {
    max-width: 100%;
    margin: 2rem 0 1.5rem;
  }
}

/* ─── NEWSLETTER + CURRENTLY block ─── */
.newsletter-currently-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .newsletter-currently-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Newsletter block */
.newsletter-block {
  padding: 2.5rem 2.5rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, rgba(201, 168, 76, 0.02) 100%);
  border: 1px solid rgba(201, 168, 76, 0.2);
  position: relative;
}

.newsletter-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
}

.newsletter-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ivory);
  margin: 1rem 0 1.2rem;
}

.newsletter-headline em {
  color: var(--gold);
  font-style: italic;
}

.newsletter-intro {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--dust);
  margin-bottom: 1.8rem;
  max-width: 38ch;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  transition: border-color 0.3s, background 0.3s;
}

.newsletter-input::placeholder {
  color: rgba(107, 101, 96, 0.7);
  font-family: var(--font-mono);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.5);
}

.newsletter-submit {
  padding: 0.85rem 1.6rem;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.newsletter-submit:hover {
  background: transparent;
  color: var(--gold);
}

.newsletter-fineprint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(107, 101, 96, 0.7);
  margin-top: 0.5rem;
}

/* Currently block */
.currently-block {
  padding: 2.5rem 0;
}

.currently-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ivory);
  margin: 1rem 0 1.8rem;
}

.currently-headline em {
  color: var(--gold);
  font-style: italic;
}

.currently-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.currently-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  align-items: baseline;
}

.currently-list li:last-child {
  border-bottom: none;
}

.currently-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.currently-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--paper);
}

.currently-updated {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(107, 101, 96, 0.6);
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .currently-list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

/* Light mode adjustments for newsletter + currently */
body.light-mode .newsletter-block {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1) 0%, rgba(201, 168, 76, 0.04) 100%);
  border-color: rgba(201, 168, 76, 0.3);
}

body.light-mode .newsletter-headline,
body.light-mode .currently-headline {
  color: #1A1A1A;
}

body.light-mode .newsletter-intro,
body.light-mode .currently-text {
  color: #4a4540;
}

body.light-mode .newsletter-input {
  background: rgba(255, 255, 255, 0.5);
  color: #1A1A1A;
}

body.light-mode .currently-list li {
  border-bottom-color: rgba(201, 168, 76, 0.2);
}

/* ─── FEATURED ESSAY block ─── */
.featured-essay {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
  position: relative;
}

.featured-essay .section-label {
  margin-bottom: 1.5rem;
}

.featured-essay-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ivory);
  margin: 0 0 2.5rem;
  letter-spacing: -0.02em;
}

.featured-essay-quote {
  position: relative;
  margin: 2.5rem auto;
  max-width: 720px;
  padding: 0 3rem;
  border: none;
}

.featured-essay-quote::before,
.featured-essay-quote::after {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0;
  color: var(--gold);
  position: absolute;
  font-style: normal;
  font-weight: 400;
}

.featured-essay-quote::before {
  content: '\201C';
  top: 1.4rem;
  left: 0;
}

.featured-essay-quote::after {
  content: '\201D';
  bottom: -0.6rem;
  right: 0;
}

.featured-essay-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  font-style: italic;
  font-weight: 300;
  color: var(--paper);
  margin: 0;
}

.featured-essay-summary {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dust);
  max-width: 580px;
  margin: 2rem auto 2.5rem;
}

.featured-essay-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold) !important;
  padding: 0.9rem 2rem;
  border: 1px solid var(--gold);
  transition: background 0.3s, color 0.3s;
  text-decoration: none !important;
}

.featured-essay-cta:hover {
  background: var(--gold);
  color: var(--ink) !important;
}

/* Light mode */
body.light-mode .featured-essay-title {
  color: #1A1A1A;
}

body.light-mode .featured-essay-quote p {
  color: #2a2520;
}

body.light-mode .featured-essay-summary {
  color: #5a5550;
}

body.light-mode .featured-essay-cta:hover {
  color: #F5F0E8 !important;
}

@media (max-width: 600px) {
  .featured-essay-quote {
    padding: 0 2rem;
  }

  .featured-essay-quote::before {
    font-size: 3rem;
  }

  .featured-essay-quote::after {
    font-size: 3rem;
  }
}

/* Featured Essay when placed in bio-grid right column */
.featured-essay-side {
  max-width: none;
  margin: 0;
  text-align: left;
  padding: 0;
}

.featured-essay-side .featured-essay-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

.featured-essay-side .featured-essay-quote {
  margin: 2rem 0;
  padding: 0 0 0 2.5rem;
  max-width: none;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

.featured-essay-side .featured-essay-quote::before,
.featured-essay-side .featured-essay-quote::after {
  display: none;
}

.featured-essay-side .featured-essay-quote p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  text-align: left;
}

.featured-essay-side .featured-essay-summary {
  margin: 1.8rem 0 2rem;
  max-width: none;
  text-align: left;
}

/* ========================================
   MOBILE UX OVERHAUL · v9.9.18
   ======================================== */

/* Hamburger button - hidden on desktop */
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ivory);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.light-mode .nav-hamburger span {
  background: #1A1A1A;
}

.nav-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Lock body scroll when menu is open */
body.nav-locked {
  overflow: hidden;
}

/* ────────────────────────────────────────
   Mobile breakpoint · 900px and below
   ──────────────────────────────────────── */
@media (max-width: 900px) {

  /* Show hamburger, hide desktop nav-links */
  .nav-hamburger {
    display: flex !important;
  }

  /* Mobile menu - slide in from right */
  .nav-links {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background: var(--ink);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 6rem 2rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none;
    margin: 0;
  }

  body.light-mode .nav-links {
    background: var(--paper);
  }

  .nav-links.mobile-open {
    transform: translateX(0);
  }

  .nav-links > li {
    width: 100%;
    margin: 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    display: block !important;
    list-style: none;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-links > li:last-child {
    border-bottom: none;
  }

  .nav-links a,
  .nav-links a:link,
  .nav-links a:visited {
    font-size: 0.95rem !important;
    padding: 0.75rem 0 !important;
    display: block !important;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--ivory) !important;
  }

  body.light-mode .nav-links a,
  body.light-mode .nav-links a:link,
  body.light-mode .nav-links a:visited {
    color: #1A1A1A !important;
  }

  /* Mobile dropdown - inline reveal under Creative */
  .has-dropdown > a::after {
    content: '+';
    margin-left: auto;
    font-size: 1.2rem;
    transition: transform 0.3s;
  }

  .has-dropdown.open > a::after {
    content: '−';
  }

  .dropdown {
    display: none !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    padding: 0.5rem 0 0 1rem !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  .has-dropdown.open .dropdown {
    display: block !important;
  }

  .dropdown li a {
    font-size: 0.78rem !important;
    padding: 0.6rem 0 !important;
    color: var(--dust) !important;
  }

  /* Hero - tighter spacing on mobile, but enough top padding to clear fixed nav */
  .hero {
    grid-template-columns: 1fr;
    padding: 9rem 1.5rem 3rem !important;
    text-align: left;
  }

  .hero-name {
    font-size: clamp(3rem, 12vw, 5rem) !important;
    line-height: 0.95;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-roles {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .role-tag {
    font-size: 0.55rem;
    padding: 0.35rem 0.7rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .btn-primary, .btn-ghost {
    width: 100%;
    text-align: center;
  }

  /* Hide homepage hero-right on mobile (the quote block).
     But keep About page hero-right (the portrait + tagline) visible. */
  body.home .hero-right,
  body.blog .hero-right {
    display: none !important;
  }

  body.page-template-page-about .hero-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin-top: 2rem !important;
  }

  body.page-template-page-about .about-portrait {
    max-width: 100% !important;
    margin: 0 0 1.5rem 0 !important;
  }

  body.page-template-page-about .about-quote-below {
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Section padding tighter on mobile */
  .section {
    padding: 3rem 1.5rem !important;
  }

  /* Featured Essay */
  .featured-essay-side .featured-essay-title {
    font-size: clamp(2rem, 7vw, 3rem) !important;
  }

  .featured-essay-side .featured-essay-quote {
    padding-left: 1rem !important;
  }

  .featured-essay-side .featured-essay-quote p {
    font-size: 1.05rem !important;
  }

  /* Bio grid stacks */
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bio-left {
    position: static !important;
  }

  .bio-monogram {
    max-width: 200px;
    margin: 0 auto;
  }

  .bio-stats {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  /* Newsletter + Currently */
  .newsletter-currently-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .newsletter-block {
    padding: 1.8rem 1.5rem !important;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input {
    width: 100%;
    min-width: 0;
  }

  .newsletter-submit {
    width: 100%;
  }

  .newsletter-headline,
  .currently-headline {
    font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
  }

  .currently-list li {
    grid-template-columns: 1fr !important;
    gap: 0.3rem !important;
    padding: 0.8rem 0 !important;
  }

  /* Socials */
  .social-section {
    padding: 3rem 1.5rem !important;
  }

  .social-link {
    padding: 1rem !important;
    gap: 0.8rem !important;
  }

  /* About page portrait sizes properly */
  .about-portrait,
  .about-quote-below {
    max-width: 100% !important;
    margin: 1.5rem 0 !important;
  }

  /* Theme toggle - safer position */
  .theme-toggle {
    right: 1.5rem !important;
    top: 5.5rem !important;
    transform: scale(1) !important;
  }

  .theme-toggle:hover {
    transform: scale(1.1) !important;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  /* Single post / page */
  .post-content {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  /* Content cards in single column */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Section title smaller on mobile */
  .section-title {
    font-size: clamp(2rem, 7vw, 3rem) !important;
  }

  /* Hero eyebrow - keep readable on mobile */
  .hero-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    line-height: 1.6;
  }
}

/* Even smaller phones · 480px and below */
@media (max-width: 480px) {
  nav {
    padding: 1rem 1.25rem !important;
  }

  .nav-logo img {
    max-height: 36px;
  }

  .hero {
    padding: 8rem 1.25rem 2.5rem !important;
  }

  .section {
    padding: 2.5rem 1.25rem !important;
  }

  .hero-name {
    font-size: 2.6rem !important;
  }

  .featured-essay-side .featured-essay-title {
    font-size: 2rem !important;
  }
}

/* ========================================
   MOBILE EMERGENCY FIXES · v9.9.20
   Aggressive overrides for actual phone rendering
   ======================================== */
@media (max-width: 900px) {

  /* Eyebrow - force visible block layout */
  .hero-eyebrow {
    display: block !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.12em !important;
    line-height: 1.5 !important;
    color: #C9A84C !important;
    margin-bottom: 1.5rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: normal !important;
    word-spacing: 0.2em;
  }

  /* Mobile menu - completely override layout, force fullscreen panel */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 85vw !important;
    max-width: 340px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #0A0A0A !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 5rem 1.75rem 2rem !important;
    margin: 0 !important;
    gap: 0 !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s ease !important;
    z-index: 9999 !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5) !important;
    overflow-y: auto !important;
    list-style: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.light-mode .nav-links {
    background: #F5F0E8 !important;
  }

  .nav-links.mobile-open {
    transform: translateX(0) !important;
  }

  .nav-links li {
    display: block !important;
    width: 100% !important;
    padding: 1.1rem 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15) !important;
    list-style: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
  }

  .nav-links li:last-child {
    border-bottom: none !important;
  }

  .nav-links li a {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 0 !important;
    font-size: 1rem !important;
    font-family: var(--font-mono) !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #FAF7F2 !important;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
  }

  .nav-links li a.nav-link-devanagari {
    text-transform: none !important;
    font-family: 'Noto Sans Devanagari', system-ui, sans-serif !important;
    font-size: 1.4rem !important;
    letter-spacing: 0.05em !important;
  }

  body.light-mode .nav-links li a {
    color: #1A1A1A !important;
  }

  /* Mobile dropdown inline */
  .has-dropdown .dropdown {
    display: none !important;
    position: static !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    padding: 0.5rem 0 0 1rem !important;
    margin: 0.5rem 0 0 0 !important;
    box-shadow: none !important;
    list-style: none !important;
  }

  .has-dropdown.open .dropdown {
    display: block !important;
  }

  .dropdown li {
    border-bottom: none !important;
    padding: 0.5rem 0 !important;
  }

  .dropdown li a {
    font-size: 0.8rem !important;
    color: #6B6560 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
  }

  /* Hamburger - guaranteed visible */
  .nav-hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10000 !important;
    position: relative;
  }
}

/* ========================================
   v9.9.22 · Disable entrance animations on mobile
   The fadeUp animations were causing eyebrow + content to flash
   and disappear on iOS Safari. Animations are desktop-only now.
   ======================================== */
@media (max-width: 900px) {
  .hero-eyebrow,
  .hero-name,
  .hero-tagline,
  .hero-descriptor,
  .hero-roles,
  .hero-cta,
  .hero-quote-block,
  .about-portrait,
  .about-quote-below {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Force eyebrow visible always */
  .hero-eyebrow {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #C9A84C !important;
    font-family: 'DM Mono', monospace !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
    word-spacing: 0.2em;
    white-space: normal !important;
  }

  body.light-mode .hero-eyebrow {
    color: #C9A84C !important;
  }
}
