/* =========================================================
   pmstudio.co.in — Praneeth Reddy Mopuri
   Royal purple / violet — portfolio edition
   ========================================================= */

:root {
  /* Surfaces */
  --bg:        #0a0710;
  --bg-2:      #0f0a18;
  --surface:   #17101f;
  --surface-2: #1e1530;
  --border:    rgba(255, 255, 255, 0.08);
  --border-strong: rgba(213, 180, 255, 0.20);

  /* Text */
  --text:      #f1ecf8;
  --muted:     #ab9fc4;
  --faint:     #786c92;

  /* Accents — violet → magenta */
  --a1: #a855f7;   /* violet */
  --a2: #e879f9;   /* magenta */
  --a3: #c084fc;   /* light violet */
  --deep: #7c3aed; /* deep purple */
  --grad: linear-gradient(120deg, #7c3aed 0%, #a855f7 50%, #e879f9 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,58,237,.20), rgba(232,121,249,.16));

  /* Type */
  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 68px;

  --shadow: 0 30px 70px -24px rgba(0,0,0,.8);
  --glow: 0 0 60px -8px rgba(168,85,247,.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 45% at 80% -5%, rgba(168,85,247,.26), transparent 60%),
    radial-gradient(50% 42% at 5% 10%, rgba(232,121,249,.13), transparent 58%),
    radial-gradient(48% 45% at 50% 112%, rgba(124,58,237,.16), transparent 62%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--a3);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--a2), transparent); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: 1.16rem; color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10,7,16,.55);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(10,7,16,.85); border-bottom-color: var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem; }
.brand .dot {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-size: .82rem; color: #14061f; font-weight: 800;
  box-shadow: var(--glow);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: .92rem; color: var(--muted); font-weight: 500; padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(168,85,247,.10); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 2px; background: var(--grad); }
.nav-cta { margin-left: 8px; padding: 9px 18px !important; border-radius: 11px !important; background: var(--grad) !important; color: #14061f !important; font-weight: 600 !important; }
.nav-cta:hover { filter: brightness(1.08); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: .96rem; padding: 13px 24px; border-radius: 13px; cursor: pointer; border: 1px solid transparent; transition: transform .18s, filter .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #140720; box-shadow: 0 16px 36px -14px rgba(168,85,247,.75); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(168,85,247,.10); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 92px 0; }
.section-head { max-width: 730px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 74px) 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.32fr .88fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin: 20px 0 18px; }
.hero .role { font-family: var(--font-head); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--text); margin-bottom: 20px; }
.hero p.lead { max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-social { display: flex; gap: 12px; margin-top: 26px; }
.hero-social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; color: var(--muted); transition: color .2s, border-color .2s, transform .2s, background .2s; }
.hero-social a:hover { color: var(--text); border-color: var(--a1); transform: translateY(-2px); background: rgba(168,85,247,.12); }
.hero-social svg { width: 19px; height: 19px; }

.avatar-wrap { position: relative; justify-self: center; }
.avatar-ring { position: relative; width: 300px; height: 300px; border-radius: 50%; padding: 4px; background: var(--grad); box-shadow: var(--glow); animation: float 6s ease-in-out infinite; }
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; border: 4px solid var(--bg); }
.avatar-badge { position: absolute; bottom: 14px; right: -6px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 10px 15px; box-shadow: var(--shadow); font-family: var(--font-head); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.avatar-badge .pulse { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.55);} 70%{box-shadow:0 0 0 12px rgba(52,211,153,0);} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0);} }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-14px);} }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero-tags .chip { border-color: var(--border-strong); }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric { background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative; overflow: hidden; }
.metric::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); opacity: .85; }
.metric .num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; }
.metric .label { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; position: relative; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--a3); margin-bottom: 18px; }
.card .ic svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.24rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .tag { color: var(--a3); font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.pill-ic { color: var(--a1); }

.hl { display: flex; flex-direction: column; gap: 8px; }
.hl .big { font-family: var(--font-head); font-size: 1.85rem; font-weight: 700; }
.hl h3 { font-size: 1.08rem; margin: 0; }
.hl p { font-size: .95rem; }

/* ---------- Image placeholder ---------- */
.imgph { position: relative; border-radius: 14px; overflow: hidden; background:
    linear-gradient(135deg, rgba(124,58,237,.22), rgba(232,121,249,.12)); border: 1px solid var(--border-strong); }
.imgph.ar-16-9 { aspect-ratio: 16 / 9; }
.imgph.ar-4-3 { aspect-ratio: 4 / 3; }
.imgph img { width: 100%; height: 100%; object-fit: cover; }
.imgph .ph-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.imgph .ph-inner svg { width: 34px; height: 34px; color: var(--a3); opacity: .85; }
.imgph .ph-inner span { font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.imgph .ph-inner small { font-size: .72rem; color: var(--faint); }
.imgph::after { content: ""; position: absolute; inset: 0; background:
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,.015) 12px, rgba(255,255,255,.015) 24px); pointer-events: none; }
/* browser-chrome variant */
.browserframe { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface-2); }
.browserframe .bf-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.browserframe .bf-bar i { width: 10px; height: 10px; border-radius: 50%; background: #5b4d70; display: block; }
.browserframe .bf-bar .bf-url { margin-left: 10px; font-size: .72rem; color: var(--faint); font-family: var(--font-body); }
.browserframe .imgph { border: 0; border-radius: 0; }

/* ---------- Case studies ---------- */
.cases { display: grid; gap: 30px; }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.case:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.case .case-media { padding: 26px; display: flex; align-items: center; }
.case .case-media .browserframe, .case .case-media .imgph { width: 100%; }
.case .case-media .imgph.ar-16-9 { aspect-ratio: 16/10; }
.case.reverse .case-media { order: 2; }
.case-body { padding: 34px 34px 30px; }
.case-body .kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.case-body .kicker .co { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--text); }
.case-body .kicker .dot2 { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.case-body .kicker .sector { font-size: .8rem; color: var(--a3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.case-body h3 { font-size: 1.5rem; margin-bottom: 14px; }
.case-seg { margin-bottom: 14px; }
.case-seg .lb { font-family: var(--font-head); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 4px; }
.case-seg p { color: var(--muted); font-size: .97rem; }
.case-impact { display: flex; flex-wrap: wrap; gap: 22px; margin: 20px 0 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.case-impact .imp .v { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.case-impact .imp .k { font-size: .8rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .78rem; font-weight: 500; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--border); padding: 5px 12px; border-radius: 20px; }
.case-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--a3); }
.case-link svg { width: 15px; height: 15px; }

/* ---------- Building-now slots ---------- */
.build-card { position: relative; border: 1px dashed var(--border-strong); background: linear-gradient(165deg, rgba(30,21,48,.5), var(--bg-2)); border-radius: var(--radius); padding: 26px; transition: border-color .25s, transform .25s; }
.build-card:hover { transform: translateY(-4px); border-color: var(--a1); }
.build-card .status { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; font-family: var(--font-head); color: var(--a2); background: rgba(232,121,249,.1); border: 1px solid rgba(232,121,249,.25); padding: 4px 11px; border-radius: 20px; margin-bottom: 16px; }
.build-card .status .blink { width: 7px; height: 7px; border-radius: 50%; background: var(--a2); animation: pulse2 1.8s infinite; }
@keyframes pulse2 { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.build-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.build-card p { color: var(--muted); font-size: .95rem; }
.build-card .editnote { margin-top: 14px; font-size: .74rem; color: var(--faint); font-style: italic; }

/* ---------- Impact viz ---------- */
.viz-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: stretch; }
.viz-card { background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.viz-card h3 { font-size: 1.15rem; margin-bottom: 24px; }
.bars { display: grid; gap: 20px; }
.bar-row .bar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.bar-row .bar-label { font-size: .92rem; color: var(--text); font-weight: 500; }
.bar-row .bar-val { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--a3); }
.bar-track { height: 10px; border-radius: 20px; background: rgba(255,255,255,.055); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 20px; background: var(--grad); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.bar-row small { display: block; margin-top: 6px; font-size: .78rem; color: var(--faint); }

.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gauge { text-align: center; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 12px; }
.gauge svg { width: 118px; height: 118px; transform: rotate(-90deg); }
.gauge .track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 10; }
.gauge .prog { fill: none; stroke: url(#gaugegrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.5s cubic-bezier(.2,.7,.2,1); }
.gauge .g-center { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }
.gauge .g-label { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.gauge .g-num { position: relative; margin-top: -76px; margin-bottom: 40px; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; }

/* ---------- Timeline (compact) ---------- */
.timeline { position: relative; margin-top: 12px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--a1), var(--a2), transparent); }
.tl-item { position: relative; padding: 0 0 26px 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--a1); display: grid; place-items: center; }
.tl-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.tl-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.tl-role { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.tl-org { color: var(--a3); font-weight: 600; font-size: .92rem; }
.tl-date { font-size: .8rem; color: var(--faint); margin-left: auto; font-family: var(--font-head); }
.tl-desc { color: var(--muted); font-size: .93rem; margin-top: 4px; }

/* ---------- Skills ---------- */
.skill-cat h3 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin-bottom: 18px; }
.skill-cat h3 .ic { width: 40px; height: 40px; margin: 0; border-radius: 11px; }
.skill-cat h3 .ic svg { width: 20px; height: 20px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tags span { font-size: .9rem; color: var(--text); background: rgba(255,255,255,.045); border: 1px solid var(--border); padding: 8px 15px; border-radius: 12px; transition: border-color .2s, background .2s, transform .2s; }
.skill-tags span:hover { border-color: var(--a1); background: rgba(168,85,247,.12); transform: translateY(-2px); }
.skill-tags span.lead-tag { background: var(--grad-soft); border-color: var(--border-strong); color: #fff; }

/* ---------- Principles ---------- */
.principle { display: flex; gap: 16px; }
.principle .n { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.principle h4 { font-size: 1.08rem; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: .95rem; }

/* ---------- Prose (About) ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--muted); font-size: 1.06rem; margin-bottom: 20px; }
.prose p strong, .prose p b { color: var(--text); font-weight: 600; }
.prose .grad-text { font-weight: 600; }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.edu { background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.edu .yr { font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--a3); }
.edu h4 { font-size: 1.12rem; margin: 8px 0 6px; }
.edu p { color: var(--muted); font-size: .94rem; }

/* ---------- Awards ---------- */
.award-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.award { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.028); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; }
.award .ic { color: var(--a2); flex-shrink: 0; margin-top: 2px; }
.award .ic svg { width: 22px; height: 22px; }
.award p { font-size: .96rem; color: var(--muted); }
.award p b { color: var(--text); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, rgba(124,58,237,.20), rgba(232,121,249,.12)); border: 1px solid var(--border-strong); border-radius: 26px; padding: 60px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.ci-item { display: flex; gap: 16px; align-items: center; background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: border-color .2s, transform .2s; }
.ci-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.ci-item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--a3); display: grid; place-items: center; flex-shrink: 0; }
.ci-item .ic svg { width: 21px; height: 21px; }
.ci-item .lab { font-size: .78rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ci-item .val { color: var(--text); font-weight: 500; word-break: break-word; }
.form-card { background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; font-family: var(--font-head); }
.field input, .field textarea, .field select { width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 12px; padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: .98rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 3px rgba(168,85,247,.2); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .84rem; color: var(--faint); margin-top: 12px; }

/* ---------- Page header ---------- */
.page-head { padding: calc(var(--nav-h) + 64px) 0 20px; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin: 16px 0 16px; }
.page-head p { color: var(--muted); font-size: 1.12rem; max-width: 680px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 54px 0 34px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 34px; }
.footer .brand { margin-bottom: 14px; }
.footer .f-about { max-width: 320px; color: var(--muted); font-size: .95rem; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-head); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: .88rem; }
.footer-bottom .hero-social a { width: 38px; height: 38px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p.lead { margin-inline: auto; } .hero-cta, .hero-social, .hero-tags { justify-content: center; }
  .avatar-wrap { order: -1; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .viz-wrap { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case.reverse .case-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #0d0916; box-shadow: 0 24px 40px -12px rgba(0,0,0,.8); border-bottom: 1px solid var(--border); padding: 14px 20px 22px; transform: translateY(-140%); transition: transform .32s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 8px; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: 8px 0 0 !important; text-align: center; }
  .nav-toggle { display: block; }
  .section { padding: 66px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .award-list { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { flex-direction: column; }
  .case-body { padding: 26px; }
}
@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
  .avatar-ring { width: 240px; height: 240px; }
  .gauges { grid-template-columns: 1fr 1fr; }
}
