/* =============================================================
   LOKESH JOSHI — EDITORIAL PORTFOLIO
   Change the colors and fonts in :root to personalize the site.
   Sections are grouped below and labeled for easy editing.
   ============================================================= */
:root {
  --paper: #f5f0e6;
  --paper-2: #eae2d4;
  --ink: #25251f;
  --muted: #726e64;
  --line: #cbc2b4;
  --accent: #a44b31;
  --card: #ede6da;
  --inverse: #25251f;
  --inverse-text: #f5f0e6;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-ui: 'Manrope', Arial, sans-serif;
}
body.dark {
  --paper: #201f1b;
  --paper-2: #2c2924;
  --ink: #f2ecdf;
  --muted: #aaa397;
  --line: #514b43;
  --accent: #e89a79;
  --card: #302d27;
  --inverse: #f2ecdf;
  --inverse-text: #201f1b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); overflow-x: hidden; transition: background .4s,color .4s; }
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: white; }
.grain { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.cursor-glow { width: 260px; height: 260px; position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(circle,rgba(164,75,49,.09),transparent 70%); transform: translate(-50%,-50%); opacity: 0; transition: opacity .4s; }
.progress { position: fixed; z-index: 120; height: 3px; width: 0; top: 0; left: 0; background: var(--accent); }
/* CINEMATIC INTRO */
.loader { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; background: #292721; color: #f8f2e8; transition: opacity .8s,visibility .8s; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { width: min(900px,85vw); position: relative; }
.loader-kicker,.loader-signature,.loader-count { font: 700 11px var(--font-ui); letter-spacing: .25em; }
.loader-kicker { color: #d8a993; }
.loader-title { display: block; font: 500 clamp(58px,10vw,160px)/1.08 var(--font-display); margin: 30px 0 55px; letter-spacing: -.055em; animation: introRise 1s both; }
.loader-title em { color: #d99d7c; font-weight: 500; }
.loader-signature { display: block; border-top: 1px solid #5a544b; padding-top: 22px; }
.loader-dot { color: #d99d7c; padding-left: 10px; }
.loader-count { position: absolute; bottom: 0; right: 0; font-size: 23px; }
.skip-intro { position: absolute; right: 6%; bottom: 6%; background: none; border: 1px solid #777067; padding: 12px 20px; color: white; font-size: 12px; }
@keyframes introRise { from { opacity: 0; transform: translateY(45px); } to { opacity: 1; transform: translateY(0); } }
/* NAVIGATION */
.site-header { position: fixed; z-index: 80; width: 100%; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px 5%; transition: background .3s,box-shadow .3s; }
.site-header.scrolled { background: color-mix(in srgb,var(--paper) 94%,transparent); backdrop-filter: blur(15px); box-shadow: 0 1px 0 var(--line); }
.brand,.footer-brand { font: 800 25px var(--font-ui); letter-spacing: -.09em; }
.brand-mark,.footer-brand span { color: var(--accent); margin-left: 3px; }
.desktop-nav { display: flex; gap: 33px; }
.desktop-nav a { font: 700 11px var(--font-ui); text-transform: uppercase; letter-spacing: .1em; transition: color .2s; }
.desktop-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle { border: 1px solid var(--line); background: transparent; color: var(--ink); width: 39px; height: 39px; border-radius: 50%; font-size: 23px; }
.nav-cta { background: var(--ink); color: var(--paper); padding: 14px 20px; font: 700 11px var(--font-ui); text-transform: uppercase; letter-spacing: .09em; }
.nav-cta span { margin-left: 15px; }
.menu-toggle { display: none; background: none; border: none; width: 35px; height: 35px; padding: 8px; }
.menu-toggle span { display: block; background: var(--ink); height: 2px; margin: 6px 0; }
.mobile-nav { display: none; }
/* GLOBAL LAYOUT & TYPOGRAPHY */
.section { position: relative; }
.pad-section { padding: 110px 7%; }
.section-meta { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 90px; font: 700 10px var(--font-ui); letter-spacing: .13em; }
.eyebrow { font: 700 11px var(--font-ui); letter-spacing: .17em; }
.display-heading { font: 500 clamp(64px,8.5vw,145px)/1.03 var(--font-display); letter-spacing: -.065em; margin: 20px 0 55px; }
.display-heading em,.numbers h2 em { color: var(--accent); font-weight: 500; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.section-aside { max-width: 320px; font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0 0 70px; }
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* HERO */
.hero { min-height: 100svh; padding: 125px 7% 35px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero-topline,.hero-footer { display: flex; justify-content: space-between; align-items: center; font: 700 10px var(--font-ui); letter-spacing: .15em; position: relative; z-index: 2; }
.hero-topline .eyebrow { display: flex; align-items: center; gap: 10px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #a7674b; box-shadow: 0 0 0 6px rgba(164,75,49,.12); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(164,75,49,0); } }
.hero-content { position: relative; z-index: 2; padding: 80px 0 50px; }
.hero-intro { font: 700 12px var(--font-ui); letter-spacing: .23em; margin: 0 0 20px; }
.asterisk { color: var(--accent); font-size: 20px; }
.hero-title { font: 500 clamp(72px,10.7vw,190px)/.98 var(--font-display); letter-spacing: -.075em; margin: 0; max-width: 1500px; }
.hero-title em { color: var(--accent); font-weight: 500; }
.underlined { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 15px; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; max-width: 1060px; margin-top: 45px; }
.hero-description { max-width: 500px; font-size: clamp(16px,1.7vw,21px); line-height: 1.65; color: var(--muted); }
.hero-description strong { color: var(--ink); font-weight: 600; }
.round-arrow { width: 92px; height: 92px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 38px; transition: background .3s,color .3s,transform .3s; }
.round-arrow:hover { background: var(--ink); color: var(--paper); transform: rotate(-35deg); }
.hero-orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; opacity: .5; pointer-events: none; }
.orbit-one { width: 630px; height: 630px; right: -240px; top: 15%; }
.orbit-two { width: 390px; height: 390px; right: -125px; top: 29%; }
.hero-side-text { position: absolute; right: 15px; top: 43%; writing-mode: vertical-rl; font: 700 9px var(--font-ui); letter-spacing: .22em; color: var(--muted); }
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle { position: absolute; width: 3px; height: 3px; background: var(--accent); border-radius: 50%; opacity: .3; animation: floatParticle linear infinite; }
@keyframes floatParticle { from { transform: translateY(50px); } to { transform: translateY(-110px); } }
/* MARQUEE */
.ticker { background: var(--accent); color: #fff8f0; overflow: hidden; padding: 24px 0; }
.ticker-track { width: max-content; white-space: nowrap; animation: marquee 32s linear infinite; font: 800 15px var(--font-ui); letter-spacing: .14em; }
.ticker-track span { margin: 0 30px; font-size: 23px; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* ABOUT */
.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10%; }
.about-copy { padding-top: 105px; }
.about-copy p { font-size: 16px; line-height: 1.95; color: var(--muted); margin: 0 0 27px; }
.about-copy .lead { font-size: clamp(21px,2vw,29px); line-height: 1.6; color: var(--ink); }
.about-copy .lead strong { color: var(--accent); }
.about-art { height: 420px; background: #c5aa91; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #392f28; }
.art-star { position: absolute; font-size: 470px; color: rgba(255,255,255,.18); top: -165px; left: -20px; animation: spin 45s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.art-text { font: 800 clamp(50px,6vw,100px)/.95 var(--font-ui); letter-spacing: -.09em; z-index: 1; }
.art-small { position: absolute; bottom: 20px; right: 25px; font: 700 10px var(--font-ui); letter-spacing: .2em; }
.text-link { display: inline-flex; justify-content: space-between; min-width: 200px; padding: 18px 0; border-bottom: 1px solid var(--ink); font: 800 12px var(--font-ui); letter-spacing: .12em; margin-top: 20px; }
.text-link span { font-size: 20px; }
/* MANIFESTO */
.manifesto { padding: 130px 7%; background: var(--inverse); color: var(--inverse-text); text-align: center; }
.manifesto-inner { max-width: 1150px; margin: auto; }
.manifesto p { font: 500 clamp(45px,6vw,100px)/1.2 var(--font-display); letter-spacing: -.05em; margin: 45px 0; }
.manifesto p em { color: #c99a7f; }
.manifesto-foot { font: 700 10px var(--font-ui); letter-spacing: .23em; }
/* SKILLS */
.skill-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; perspective: 1200px; }
.skill-card { min-height: 370px; padding: 27px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; transform-style: preserve-3d; transition: background .3s,border-color .3s,transform .2s; }
.skill-card:hover { border-color: var(--accent); }
.skill-number { font: 700 11px var(--font-ui); color: var(--muted); }
.skill-symbol { font: 500 68px var(--font-display); margin: 36px 0 25px; color: var(--accent); }
.skill-card h3 { font: 600 25px var(--font-display); margin: 0 0 12px; }
.skill-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 25px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.skill-tags span { font: 700 9px var(--font-ui); border: 1px solid var(--line); padding: 8px 10px; letter-spacing: .04em; }
.interest-strip { display: flex; gap: 45px; border-bottom: 1px solid var(--line); padding: 40px 0 20px; margin-top: 35px; }
.interest-strip > span { font: 700 10px var(--font-ui); letter-spacing: .15em; white-space: nowrap; }
.interest-strip div { display: flex; flex-wrap: wrap; gap: 10px; }
.interest-strip div span { font: 700 10px var(--font-ui); border: 1px solid var(--line); border-radius: 30px; padding: 11px 15px; }
/* PROJECTS */
.projects { background: var(--paper-2); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px 25px; perspective: 1500px; }
.project-card { transform-style: preserve-3d; }
.project-visual { height: 420px; position: relative; display: grid; place-items: center; overflow: hidden; }
.visual-one { background: #b7a78c; color: #382e26; }
.visual-two { background: #a5523c; color: #f7e4cf; }
.visual-three { background: #b8b9a0; color: #3b4332; }
.visual-four { background: #423e36; color: #e7d2ae; }
.visual-corner,.visual-bottom { position: absolute; z-index: 2; font: 800 10px var(--font-ui); letter-spacing: .18em; }
.visual-corner { top: 22px; left: 25px; }
.visual-bottom { bottom: 22px; right: 25px; }
.visual-shape { font: 500 240px var(--font-display); line-height: 1; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .visual-shape { transform: rotate(25deg) scale(1.16); }
.shape-two { font-size: 280px; }.shape-three { font-size: 320px; }.shape-four { font-size: 320px; }
.project-info { padding: 23px 0; border-bottom: 1px solid var(--line); }
.project-type { font: 700 10px var(--font-ui); letter-spacing: .13em; color: var(--muted); }
.project-info h3 { display: flex; justify-content: space-between; font: 500 34px var(--font-display); margin: 10px 0; }
.project-info h3 span { font: 300 25px var(--font-body); }
.project-info p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.projects-link { margin-top: 60px; }
/* TIMELINE */
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 120px 1fr 40px; padding: 36px 0; gap: 30px; border-bottom: 1px solid var(--line); }
.timeline-index { font: 500 27px var(--font-display); color: var(--accent); }
.timeline-label { font: 700 10px var(--font-ui); letter-spacing: .15em; color: var(--muted); }
.timeline-item h3 { font: 500 clamp(30px,3vw,50px) var(--font-display); margin: 10px 0; }
.timeline-item p { margin: 5px 0; line-height: 1.6; }
.timeline-item .timeline-detail { color: var(--muted); font-size: 14px; }
.timeline-icon { font-size: 25px; }
/* VALUES */
.numbers { background: #b9a48e; color: #302820; padding: 110px 7%; }
.numbers-heading h2 { font: 500 clamp(45px,6vw,95px)/1.1 var(--font-display); letter-spacing: -.05em; margin: 25px 0 85px; }
.numbers-heading h2 em { color: #f7eee4; }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.value-item { border-top: 1px solid rgba(48,40,32,.45); padding-top: 25px; }
.value-item > span { font: 700 11px var(--font-ui); }
.value-item h3 { font: 500 clamp(27px,3vw,47px) var(--font-display); margin: 45px 0 8px; }
.value-item p { font-size: 13px; }
/* JOURNAL */
.journal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.journal-art { height: 260px; padding: 25px; font: 700 11px var(--font-ui); position: relative; overflow: hidden; }
.journal-art span { position: absolute; font: 500 200px var(--font-display); right: 20px; bottom: -65px; }
.journal-art-one { background: #d3bca4; color: #5b3e32; }
.journal-art-two { background: #4b4c3e; color: #e3d6b9; }
.journal-art-three { background: #ad6c55; color: #f8e7d6; }
.journal-meta { font: 700 10px var(--font-ui); letter-spacing: .1em; color: var(--muted); margin-top: 25px; }
.journal-card h3 { font: 500 29px/1.25 var(--font-display); margin: 13px 0; }
.journal-card p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.journal-status { display: block; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; font: 700 10px var(--font-ui); letter-spacing: .12em; }
/* CONTACT */
.contact { background: var(--inverse); color: var(--inverse-text); }
.contact .section-meta { border-color: color-mix(in srgb,var(--inverse-text) 30%,transparent); }
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 9%; }
.contact-heading { font: 500 clamp(58px,7.5vw,125px)/1.08 var(--font-display); letter-spacing: -.07em; margin: 25px 0 35px; }
.contact-heading em { color: #c99579; }.contact-heading > span { color: #c99579; }
.contact-left > p { max-width: 430px; font-size: 17px; line-height: 1.7; opacity: .8; }
.contact-email { display: inline-block; font: 500 clamp(15px,1.7vw,24px) var(--font-display); border-bottom: 1px solid currentColor; padding: 10px 0; margin: 25px 0 45px; overflow-wrap: anywhere; }
.socials { display: flex; flex-wrap: wrap; gap: 18px; }
.socials a { border: 1px solid color-mix(in srgb,var(--inverse-text) 45%,transparent); padding: 13px 16px; font: 700 10px var(--font-ui); letter-spacing: .1em; transition: background .2s,color .2s; }
.socials a:hover { background: var(--inverse-text); color: var(--inverse); }
.contact-form-wrap { background: color-mix(in srgb,var(--inverse-text) 8%,transparent); padding: 35px; align-self: start; }
.form-top { display: flex; justify-content: space-between; border-bottom: 1px solid color-mix(in srgb,var(--inverse-text) 35%,transparent); padding-bottom: 20px; margin-bottom: 30px; font: 700 12px var(--font-ui); letter-spacing: .12em; }
.form-top span:last-child { font-size: 24px; color: #c99579; }
.contact form { display: flex; flex-direction: column; }
.contact label { font: 700 10px var(--font-ui); letter-spacing: .13em; margin: 12px 0; }
.contact input,.contact textarea { border: none; border-bottom: 1px solid color-mix(in srgb,var(--inverse-text) 30%,transparent); background: transparent; color: var(--inverse-text); padding: 13px 0 20px; outline: none; border-radius: 0; resize: vertical; margin-bottom: 25px; }
.contact input:focus,.contact textarea:focus { border-bottom-color: #d99d7c; }
.contact input::placeholder,.contact textarea::placeholder { color: color-mix(in srgb,var(--inverse-text) 55%,transparent); }
.submit-button { display: flex; align-items: center; justify-content: space-between; background: #d99d7c; border: none; color: #292721; padding: 20px; font: 800 12px var(--font-ui); letter-spacing: .12em; }
.submit-button span { font-size: 23px; }
.form-note { font-size: 11px; line-height: 1.6; opacity: .65; }
/* FOOTER */
.footer { padding: 45px 7% 25px; }
.footer-main,.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-main > span,.footer-main > a:last-child,.footer-bottom { font: 700 10px var(--font-ui); letter-spacing: .12em; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 45px; padding-top: 25px; color: var(--muted); font-size: 9px; }
.back-to-top { position: fixed; bottom: 25px; right: 25px; z-index: 50; width: 47px; height: 47px; background: var(--accent); color: white; border: none; border-radius: 50%; font-size: 24px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s; }
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
/* TABLET */
@media(max-width:1100px) { .desktop-nav { gap: 17px; } .skill-grid { grid-template-columns: repeat(2,1fr); } .contact-layout { gap: 5%; } .hero-title { font-size: clamp(70px,10vw,135px); } }
/* MOBILE */
@media(max-width:760px) {
  .site-header { padding: 17px 5%; }.desktop-nav,.nav-cta { display: none; }.menu-toggle { display: block; }
  .mobile-nav { display: flex; position: fixed; z-index: 75; top: 70px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 25px 7% 35px; gap: 22px; transform: translateY(-140%); transition: transform .35s; box-shadow: 0 12px 30px rgba(0,0,0,.1); }
  .mobile-nav.open { transform: translateY(0); }.mobile-nav a { font: 500 28px var(--font-display); }
  .hero { min-height: 790px; min-height: 100svh; padding: 120px 6% 30px; }.hero-coordinate,.hero-side-text { display: none; }
  .hero-content { padding: 50px 0; }.hero-title { font-size: clamp(58px,12vw,100px); }.hero-intro { font-size: 10px; }
  .hero-bottom { align-items: center; gap: 15px; }.hero-description { font-size: 15px; }.round-arrow { flex-shrink: 0; width: 65px; height: 65px; font-size: 27px; }
  .hero-footer { font-size: 9px; }.pad-section { padding: 80px 6%; }.section-meta { margin-bottom: 55px; font-size: 9px; }
  .display-heading { font-size: clamp(54px,11vw,85px); }.split-heading { display: block; }.section-aside { margin: 0 0 40px; }
  .about-layout,.contact-layout { grid-template-columns: 1fr; gap: 40px; }.about-copy { padding-top: 0; }.about-art { height: 300px; }
  .skill-grid,.project-grid { grid-template-columns: 1fr; }.project-grid { gap: 30px; }.project-visual { height: 330px; }.interest-strip { flex-direction: column; gap: 20px; }
  .timeline-item { grid-template-columns: 42px 1fr 20px; gap: 12px; }.timeline-item h3 { font-size: 30px; }
  .values-grid,.journal-grid { grid-template-columns: 1fr 1fr; }.journal-grid { gap: 35px 15px; }.journal-art { height: 190px; }.journal-art span { font-size: 140px; }
  .contact-heading { font-size: clamp(57px,10vw,90px); }.footer-main,.footer-bottom { flex-wrap: wrap; }.footer-bottom { line-height: 1.8; }
}
@media(max-width:480px) { .hero-title { font-size: clamp(52px,11.8vw,68px); }.hero-description { font-size: 14px; }.hero-bottom { margin-top: 30px; }.hero-orbit { opacity: .2; }.section-meta span:last-child { text-align: right; }.values-grid,.journal-grid { grid-template-columns: 1fr; }.value-item h3 { margin-top: 20px; }.journal-art { height: 240px; }.contact-form-wrap { padding: 23px; }.loader-title { font-size: 56px; }.footer-main > span { display: none; } }
/* ACCESSIBILITY */
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
