/* =============================================
   KISHOR REGMI — ACCA | FINANCIAL EXPERT
   Stylesheet v2.0 | Mobile-First & SEO Ready
   ============================================= */

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --navy:      #0B1E3A;
  --navy-mid:  #132B52;
  --gold:      #C9A84C;
  --gold-lt:   #E6C97A;
  --cream:     #F5F0E8;
  --cream-dk:  #EDE5D5;
  --slate:     #6B7FA3;
  --white:     #FFFFFF;
  --ink:       #1A1A2E;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', sans-serif;
  --ff-mono:    'DM Mono', monospace;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- CUSTOM CURSOR ---- */
#cursor {
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s;
  mix-blend-mode: multiply;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .4s, height .4s, opacity .3s;
  opacity: .6;
}

/* ---- NOISE OVERLAY ---- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: .4;
}

/* ---- LOADER ---- */
#loader {
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity .8s ease, visibility .8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-initials {
  font-family: var(--ff-display); font-size: 5rem;
  color: var(--gold); font-weight: 300; letter-spacing: .1em;
  opacity: 0; animation: fade-up .7s .3s ease forwards;
}
.loader-text {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem,3vw,1.8rem);
  color: var(--cream); letter-spacing: .3em; font-weight: 300;
  opacity: 0; animation: fade-up .7s .6s ease forwards;
}
.loader-bar {
  width: 200px; height: 1px;
  background: var(--navy-mid);
  position: relative; overflow: hidden;
}
.loader-bar::after {
  content: ''; position: absolute;
  left: -100%; top: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg,transparent,var(--gold),transparent);
  animation: bar-slide 1.4s var(--ease-out-expo) forwards;
}

/* ---- KEYFRAMES ---- */
@keyframes bar-slide { to { left: 200%; } }
@keyframes fade-up   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fade-in   { from { opacity:0; } to { opacity:1; } }
@keyframes fade-in-left { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }
@keyframes scroll-anim {
  0%   { transform:scaleY(0); transform-origin:top; }
  50%  { transform:scaleY(1); transform-origin:top; }
  51%  { transform:scaleY(1); transform-origin:bottom; }
  100% { transform:scaleY(0); transform-origin:bottom; }
}

/* ---- NAVIGATION ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 800; padding: 24px 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, padding .4s, box-shadow .4s;
}
nav.scrolled {
  background: rgba(11,30,58,.96);
  backdrop-filter: blur(12px);
  padding: 14px 5%;
  box-shadow: 0 4px 40px rgba(0,0,0,.2);
}
.nav-logo {
  font-family: var(--ff-display); font-size: 1.5rem;
  color: var(--white); letter-spacing: .08em; font-weight: 300;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: .78rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold); transition: width .3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: .75rem; letter-spacing: .15em;
  text-transform: uppercase; font-weight: 500;
  padding: 10px 24px;
  border: 1px solid var(--gold); color: var(--gold);
  border-radius: 2px;
  transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--gold); color: var(--navy); }
.nav-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; cursor: pointer;
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid rgba(201,168,76,.45);
  border-radius: 8px;
  padding: 0;
  transition: border-color .3s, background .3s;
}
.nav-burger:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,.08);
}
.nav-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              opacity   .25s ease,
              width     .3s ease;
  transform-origin: center;
}

/* ---- Cross state when menu is open ---- */
body.menu-open .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .nav-burger span:nth-child(2) {
  opacity: 0;
  width: 0;
}
body.menu-open .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 65%, rgba(201,168,76,.06) 65%),
    linear-gradient(45deg, rgba(201,168,76,.04) 30%, transparent 30%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.07) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 50%, black 30%, transparent 80%);
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 10px 8% 100px 8%;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  font-family: var(--ff-mono); font-size: .7rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; animation: fade-in-left .8s 1.4s ease forwards;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.hero-name {
  font-family: var(--ff-display);
  font-size: clamp(3rem,5.5vw,5.5rem);
  color: var(--white); font-weight: 300;
  line-height: 1.05; letter-spacing: -.01em;
  margin-bottom: 10px;
  opacity: 0; animation: fade-in-left .9s 1.5s ease forwards;
}
.hero-name em { font-style: italic; color: var(--gold-lt); display: block; }
.hero-credentials {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 28px 0 36px;
  opacity: 0; animation: fade-in-left .8s 1.7s ease forwards;
}
.cred-tag {
  font-family: var(--ff-mono); font-size: .68rem;
  letter-spacing: .18em; padding: 6px 14px;
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-lt); border-radius: 2px;
  background: rgba(201,168,76,.07);
}
.hero-tagline {
  font-size: clamp(.95rem,1.3vw,1.1rem);
  color: rgba(255,255,255,.6); line-height: 1.75;
  max-width: 460px; font-weight: 300; margin-bottom: 52px;
  opacity: 0; animation: fade-in-left .8s 1.9s ease forwards;
}
.hero-actions {
  display: flex; gap: 18px; align-items: center;
  opacity: 0; animation: fade-in-left .8s 2.1s ease forwards;
}
.btn-primary {
  padding: 16px 38px;
  background: var(--gold); color: var(--navy);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  border-radius: 2px; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: inline-block;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%); transition: transform .4s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,.4); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-ghost {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 10px;
  transition: color .3s;
}
.btn-ghost::after { content: '→'; transition: transform .3s; }
.btn-ghost:hover { color: var(--white); }
.btn-ghost:hover::after { transform: translateX(6px); }

/* Hero right column (photo) */
.hero-right {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  padding: 10px 6% 80px 0;
}
.photo-frame {
  width: min(400px, 80%);
  aspect-ratio: 3/4;
  position: relative;
}
/* If an actual <img> is placed inside .photo-placeholder, it fills perfectly */
.photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, var(--navy-mid) 0%, #1a3a6e 100%);
  border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  border: 1px solid rgba(201,168,76,.2);
  overflow: hidden; position: relative;
}
.photo-placeholder img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 4px;
}
.photo-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,168,76,.08) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.photo-placeholder > svg,
.photo-placeholder > p { opacity: .25; }
.photo-frame::before, .photo-frame::after,
.photo-frame .br::before, .photo-frame .br::after {
  content: ''; position: absolute;
  width: 28px; height: 28px;
  border-color: var(--gold); border-style: solid;
}
.photo-frame::before  { top: -8px;    left: -8px;  border-width: 2px 0 0 2px; }
.photo-frame::after   { top: -8px;    right: -8px; border-width: 2px 2px 0 0; }
.photo-frame .br::before { bottom: -8px; left: -8px;  border-width: 0 0 2px 2px; }
.photo-frame .br::after  { bottom: -8px; right: -8px; border-width: 0 2px 2px 0; }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 3; opacity: 0; animation: fade-in 1s 2.5s ease forwards;
}
.scroll-hint span {
  font-family: var(--ff-mono); font-size: .6rem;
  letter-spacing: .25em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(201,168,76,.6), transparent);
  animation: scroll-anim 1.8s ease infinite;
}

/* ---- STATS ---- */
#stats {
  background: var(--gold);
  padding: 32px 5%;
  display: flex; justify-content: space-around;
  align-items: center; flex-wrap: wrap; gap: 20px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(2rem,4vw,3rem);
  color: var(--navy); font-weight: 600; line-height: 1;
}
.stat-label {
  font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--navy-mid);
  margin-top: 6px; font-weight: 500;
}
.stat-divider { width: 1px; height: 48px; background: rgba(11,30,58,.2); }

/* ---- SHARED SECTION ---- */
section { padding: 120px 5%; }
.section-label {
  font-family: var(--ff-mono); font-size: .68rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::after { content: ''; flex: 1; max-width: 60px; height: 1px; background: var(--gold); opacity: .5; }
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem,4vw,3.8rem);
  font-weight: 300; color: var(--navy);
  line-height: 1.1; margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--slate); }
.section-intro { font-size: 1rem; color: #586f95; line-height: 1.8; max-width: 560px; font-weight: 300; }

/* ---- ABOUT ---- */
#about {
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-img-wrap {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  border: 1px solid rgba(11,30,58,.1);
  overflow: hidden; position: relative;
}
/* Actual photo support for about section */
.about-img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.about-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 80%, rgba(201,168,76,.15) 0%, transparent 60%);
  pointer-events: none;
}
.about-img-wrap > svg  { opacity: .2; z-index: 1; }
.about-img-wrap > p { font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .2em; color: rgba(255,255,255,.25); text-transform: uppercase; z-index: 1; }
.about-visual { position: relative; }
.about-accent-box {
  position: absolute; bottom: -24px; right: -24px;
  width: 190px; padding: 24px;
  background: var(--gold); border-radius: 3px; z-index: 2;
}
.about-accent-box .num { font-family: var(--ff-display); font-size: 2rem; color: var(--navy); font-weight: 600; line-height: 1.2; }
.about-accent-box .lbl { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-mid); margin-top: 4px; }
.about-bio { font-size: 1rem; line-height: 1.9; color: #4A5568; font-weight: 300; margin: 28px 0 40px; }
.about-bio strong { color: var(--navy); font-weight: 500; }
.qualifications { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qual-item {
  padding: 16px 20px;
  border-left: 2px solid var(--gold);
  background: var(--cream-dk);
  border-radius: 0 3px 3px 0;
}
.qual-item .q-title { font-family: var(--ff-mono); font-size: .75rem; font-weight: 400; color: var(--navy); letter-spacing: .05em; }
.qual-item .q-sub { font-size: .7rem; color: var(--slate); margin-top: 3px; line-height: 1.4; }

/* ---- SERVICES ---- */
#services { background: var(--navy); }
#services .section-title { color: var(--white); }
#services .section-intro { color: rgba(255,255,255,.5); }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; margin-top: 72px;
}
.service-card {
  background: rgba(255,255,255,.04);
  padding: 48px 36px;
  border: 1px solid rgba(255,255,255,.06);
  position: relative; overflow: hidden;
  cursor: default;
  transition: background .4s, transform .4s;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.service-card:hover { background: rgba(201,168,76,.06); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(201,168,76,.3); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; color: var(--gold);
}
.service-num { font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .2em; color: rgba(201,168,76,.4); margin-bottom: 14px; }
.service-name { font-family: var(--ff-display); font-size: 1.5rem; color: var(--white); font-weight: 400; margin-bottom: 16px; line-height: 1.2; }
.service-desc { font-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.75; font-weight: 300; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: .65rem;
  letter-spacing: .2em; color: var(--gold);
  text-transform: uppercase; margin-top: 28px;
  transition: gap .3s;
}
.service-link:hover { gap: 14px; }

/* ---- EXPERTISE ---- */
#expertise { background: var(--cream-dk); }
.expertise-layout {
  display: grid; grid-template-columns: 5fr 4fr;
  gap: 80px; margin-top: 72px; align-items: start;
}
.skills-list { display: flex; flex-direction: column; gap: 24px; }
.skill-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.skill-name { font-size: .88rem; font-weight: 500; color: var(--navy); letter-spacing: .02em; }
.skill-pct { font-family: var(--ff-mono); font-size: .7rem; color: var(--slate); }
.skill-bar { height: 3px; background: rgba(11,30,58,.1); border-radius: 2px; overflow: hidden; }
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-out-expo);
}
.skill-fill.animated { transform: scaleX(1); }
.industries-title, .tools-title { font-family: var(--ff-display); font-size: 1.4rem; color: var(--navy); margin-bottom: 24px; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.industry-tag {
  padding: 10px 18px;
  border: 1px solid rgba(11,30,58,.18);
  font-size: .78rem; color: var(--navy-mid);
  border-radius: 2px;
  transition: background .3s, border-color .3s, color .3s;
}
.industry-tag:hover { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.tools-wrap { margin-top: 48px; }
.tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.tool-chip {
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid rgba(11,30,58,.08);
  font-family: var(--ff-mono); font-size: .68rem;
  letter-spacing: .08em; color: var(--navy-mid);
  border-radius: 2px; text-align: center;
  transition: background .3s, color .3s, border-color .3s;
}
.tool-chip:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ---- EXPERIENCE ---- */
#experience { background: var(--white); }
.timeline { position: relative; margin-top: 72px; }
.timeline::before {
  content: ''; position: absolute;
  left: 32px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 36px; margin-bottom: 56px; position: relative;
}
.tl-left { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tl-dot {
  width: 14px; height: 14px;
  border: 2px solid var(--gold); border-radius: 50%;
  background: var(--white);
  position: relative; z-index: 1; flex-shrink: 0;
  transition: background .3s;
}
.timeline-item:hover .tl-dot { background: var(--gold); }
.tl-year {
  font-family: var(--ff-mono); font-size: .6rem;
  letter-spacing: .1em; color: var(--slate);
  text-align: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.tl-content {
  padding: 32px 36px;
  background: var(--cream); border-radius: 4px;
  border: 1px solid rgba(11,30,58,.07);
  transition: box-shadow .3s, transform .3s;
}
.timeline-item:hover .tl-content { box-shadow: 0 8px 40px rgba(11,30,58,.08); transform: translateX(4px); }
.tl-role { font-family: var(--ff-display); font-size: 1.5rem; color: var(--navy); font-weight: 400; margin-bottom: 4px; }
.tl-company { font-size: .82rem; color: var(--gold); letter-spacing: .08em; font-weight: 500; margin-bottom: 16px; }
.tl-period { font-family: var(--ff-mono); font-size: .65rem; color: var(--slate); margin-bottom: 16px; letter-spacing: .1em; }
.tl-desc { font-size: .9rem; color: #5A6478; line-height: 1.8; font-weight: 300; }
.tl-desc ul { padding-left: 18px; margin-top: 8px; }
.tl-desc ul li { margin-bottom: 6px; }
.tl-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tl-tag {
  font-family: var(--ff-mono); font-size: .6rem;
  letter-spacing: .12em; padding: 4px 10px;
  background: var(--cream-dk); color: var(--navy-mid);
  border-radius: 2px; text-transform: uppercase;
}

/* ---- EDUCATION ---- */
#education { background: var(--navy); }
   
.edu-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 24px; margin-top: 60px;
}
.edu-card {
  background: var(--white);
  border: 1px solid rgba(11,30,58,.07);
  border-radius: 4px; padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.edu-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--gold);
}
.edu-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(11,30,58,.1); }
.edu-year { font-family: var(--ff-mono); font-size: .65rem; letter-spacing: .2em; color: var(--gold); margin-bottom: 12px; }
.edu-degree { font-family: var(--ff-display); font-size: 1.4rem; color: var(--navy); font-weight: 400; margin-bottom: 6px; line-height: 1.2; }
.edu-school { font-size: .85rem; color: var(--slate); }
.edu-type {
  display: inline-block; font-family: var(--ff-mono);
  font-size: .6rem; letter-spacing: .15em; text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(201,168,76,.1); color: var(--gold);
  border-radius: 2px; margin-top: 12px;
}

/* ---- CONTACT ---- */
#contact {
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.contact-detail { display: flex; align-items: flex-start; gap: 20px; margin-top: 36px; }
.c-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid rgba(201,168,76,.4); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-top: 2px;
}
.c-label { font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.c-value { font-size: .95rem; color: var(--navy); font-weight: 400; }
.contact-form-wrap {
  background: var(--white);
  padding: 52px 44px; border-radius: 4px;
  border: 1px solid rgba(11,30,58,.06);
  box-shadow: 0 20px 80px rgba(11,30,58,.08);
}
.form-title { font-family: var(--ff-display); font-size: 1.8rem; color: var(--navy); margin-bottom: 8px; }
.form-sub { font-size: .88rem; color: var(--slate); margin-bottom: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--ff-mono); font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 1px solid rgba(11,30,58,.12); border-radius: 2px;
  font-family: var(--ff-body); font-size: .9rem;
  color: var(--navy); background: var(--cream);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: 16px;
  background: var(--navy); color: var(--white);
  font-family: var(--ff-body); font-size: .78rem;
  font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  border: none; border-radius: 2px;
  cursor: pointer;
  transition: background .3s, transform .2s;
  margin-top: 8px;
}
.form-submit:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

/* ---- FOOTER ---- */
footer { background: var(--ink); padding: 60px 5% 36px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap; gap: 36px;
}
.footer-logo { font-family: var(--ff-display); font-size: 2rem; color: var(--white); font-weight: 300; letter-spacing: .05em; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: .8rem; color: rgba(255,255,255,.35); margin-top: 8px; font-weight: 300; }
.footer-social { display: flex; gap: 14px; margin-top: 24px; }
.social-btn {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .85rem;
  transition: background .3s, border-color .3s, color .3s;
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.footer-links-group h5 { font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links-group a { font-size: .85rem; color: rgba(255,255,255,.45); transition: color .3s; }
.footer-links-group a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.25); font-weight: 300; }
.footer-domain { font-family: var(--ff-mono); font-size: .7rem; color: rgba(201,168,76,.5); letter-spacing: .1em; }

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- MOBILE MENU ---- */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--navy); z-index: 700;
  flex-direction: column; align-items: center; justify-content: center; gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--ff-display); font-size: 2.5rem;
  color: var(--white); font-weight: 300;
  transition: color .3s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {

  /* Hero — stack to single column, show photo below text */
  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 100svh; /* svh for mobile browser chrome */
  }

  .hero-left {
    padding: 10px 6% 40px 6%;
    text-align: center;
    align-items: center;
  }

  .hero-eyebrow {
    justify-content: center;
    font-size: .62rem;
    letter-spacing: .2em;
  }
  .hero-eyebrow::before { display: none; }

  .hero-name { font-size: clamp(2.6rem, 11vw, 4rem); }

  .hero-credentials {
    justify-content: center;
    gap: 8px;
    margin: 20px 0 28px;
  }

  .hero-tagline {
    font-size: .95rem;
    margin-bottom: 36px;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }

  /* Hero photo — show it on mobile, smaller */
  .hero-right {
    display: flex;
    padding: 0 10% 60px 10%;
    justify-content: center;
  }

  .photo-frame {
    width: min(260px, 70%);
  }

  /* Scroll hint — reposition */
  .scroll-hint { bottom: 20px; }

  /* About */
  #about { grid-template-columns: 1fr; gap: 0; }
  .about-visual { display: none; }

  /* Contact */
  #contact { grid-template-columns: 1fr; gap: 48px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 24px; }

  /* Expertise */
  .expertise-layout { grid-template-columns: 1fr; gap: 48px; }

  /* Education */
  .edu-grid { grid-template-columns: 1fr; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 36px 24px; }

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Qualifications */
  .qualifications { grid-template-columns: 1fr; }

  /* Stats */
  #stats { gap: 28px; }
  .stat-divider { display: none; }

  /* Cursor off on touch */
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }

  /* Tools grid — 2 cols on mobile */
  .tools-grid { grid-template-columns: repeat(2,1fr); }

  /* Timeline */
  .timeline::before { left: 18px; }
  .timeline-item { grid-template-columns: 50px 1fr; gap: 16px; }
  .tl-content { padding: 24px 20px; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 32px; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  section { padding: 80px 5%; }
  .hero-left { padding: 10px 5% 32px 5%; }
  .hero-right { padding: 0 5% 48px 5%; }
  .photo-frame { width: min(220px, 80%); }
  .hero-name { font-size: clamp(2.2rem, 12vw, 3.2rem); }
  .cred-tag { font-size: .6rem; padding: 5px 10px; }
}
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
  z-index: 9999;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

#toast.success {
  background: #16a34a;
}

#toast.error {
  background: #dc2626;
}
