/* ==========================================================================
   Prateek Yadav - Portfolio
   style.css - shared design system for every page
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* surfaces */
  --bg:          #0e0e10;
  --bg-soft:     #141418;
  --surface:     #1a1a1f;
  --surface-2:   #212128;
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* brand */
  --accent:      #ff5a1f;
  --accent-soft: #ff7a45;
  --accent-2:    #ffb020;
  --accent-glow: rgba(255, 90, 31, 0.35);

  /* text on dark */
  --text:        #f5f5f7;
  --muted:       #a2a2ae;
  --faint:       #70707d;

  /* text on the white card */
  --ink:         #15151a;
  --ink-muted:   #6c6c78;

  /* type */
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, Consolas, monospace;

  /* shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;

  /* layout */
  --shell: 1180px;
  --nav-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 20px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --------------------------------------------------------------------------
   3. Page background decoration
   -------------------------------------------------------------------------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-decor::before {
  /* faint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 22s var(--ease) infinite alternate;
}
.blob-1 {
  width: 460px; height: 460px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.55), transparent 68%);
}
.blob-2 {
  width: 400px; height: 400px;
  top: 30%; right: -140px;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.3), transparent 68%);
  animation-delay: -8s;
}
.blob-3 {
  width: 520px; height: 520px;
  bottom: -220px; left: 35%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.22), transparent 68%);
  animation-delay: -15s;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(40px, -30px, 0) scale(1.12); }
  100% { transform: translate3d(-30px, 40px, 0) scale(0.95); }
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section-tight { padding-block: 64px; }

/* --------------------------------------------------------------------------
   5. Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(14, 14, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(14, 14, 16, 0.92);
}

.nav-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 6px 18px var(--accent-glow);
  transition: transform var(--dur) var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-name span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.28s var(--ease), background 0.28s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.32s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a:hover::after { width: 18px; }
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 90, 31, 0.12);
}
.nav-links a.active::after { width: 18px; }

.nav-cta { display: inline-flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  place-items: center;
  transition: border-color 0.28s var(--ease);
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.32s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff7d2e);
  color: #fff;
  box-shadow: 0 10px 26px -8px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -10px rgba(255, 90, 31, 0.55);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 90, 31, 0.07);
}

.btn-sm { padding: 10px 20px; font-size: 0.86rem; }

/* --------------------------------------------------------------------------
   7. Section headings
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.07);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.8); }
}

.page-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding-block: 72px 8px;
}
.page-head .eyebrow { margin-bottom: 20px; }
.page-title {
  font-size: clamp(2.2rem, 5.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.page-sub {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 580px;
  margin-inline: auto;
}

.grad {
  background: linear-gradient(120deg, var(--accent) 5%, var(--accent-2) 55%, var(--accent) 95%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 220% center; }
}

/* --------------------------------------------------------------------------
   8. Home - hero grid
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding-block: 72px 96px;
}

/* ---- the profile card ---- */
.card-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 34px 20px;
}

/* the dashed orange arcs behind the card */
.arc {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  pointer-events: none;
}
.arc-top {
  width: 210px;
  height: 210px;
  top: -34px;
  left: -6px;
  border-color: var(--accent) transparent transparent var(--accent);
  animation: spin 26s linear infinite;
}
.arc-bottom {
  width: 250px;
  height: 250px;
  bottom: -46px;
  left: -50px;
  border-color: transparent transparent var(--accent) var(--accent);
  animation: spin 34s linear infinite reverse;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.pcard {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 330px;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 22px 22px 30px;
  text-align: center;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.85);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.pcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 44px 90px -30px rgba(255, 90, 31, 0.4);
}

.pcard-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--accent), #d93c00);
  aspect-ratio: 1 / 1;
}
.pcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.pcard-photo::after {
  /* warm orange wash so the photo matches the brand, lifts on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 90, 31, 0.5), rgba(217, 60, 0, 0.35));
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.pcard:hover .pcard-photo img { transform: scale(1.06); }
.pcard:hover .pcard-photo::after { opacity: 0.15; }

.pcard-name {
  margin-top: 22px;
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.pcard-badge {
  width: 42px;
  height: 42px;
  margin: 14px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 20px -4px var(--accent-glow);
  animation: bob 3.6s ease-in-out infinite;
}
.pcard-badge svg { width: 20px; height: 20px; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.pcard-role {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.6;
}

.pcard-social {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.pcard-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255, 90, 31, 0.3);
  color: var(--accent);
  transition: transform 0.32s var(--ease), background 0.32s var(--ease), color 0.32s var(--ease);
}
.pcard-social a svg { width: 18px; height: 18px; }
.pcard-social a:hover {
  transform: translateY(-5px);
  background: var(--accent);
  color: #fff;
}

/* ---- hero copy ---- */
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 3.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  font-weight: 600;
  color: var(--accent-soft);
  margin-bottom: 22px;
  min-height: 1.7em;
}
.hero-role .cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  vertical-align: -0.15em;
  margin-left: 3px;
  background: var(--accent);
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-text {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 560px;
  margin-bottom: 18px;
}
.hero-text strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

/* quick facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.fact-num {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--accent);
}
.fact-label {
  font-size: 0.79rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   9. Generic panel / card
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.42s var(--ease), border-color 0.42s var(--ease),
              box-shadow 0.42s var(--ease);
}
.panel::before {
  /* accent sheen that sweeps in on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255, 90, 31, 0.1), transparent 42%);
  opacity: 0;
  transition: opacity 0.42s var(--ease);
  pointer-events: none;
}
.panel:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 90, 31, 0.42);
  box-shadow: 0 26px 54px -26px rgba(0, 0, 0, 0.9);
}
.panel:hover::before { opacity: 1; }

.panel-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 90, 31, 0.13);
  border: 1px solid rgba(255, 90, 31, 0.26);
  color: var(--accent);
  margin-bottom: 18px;
}
.panel-icon svg { width: 22px; height: 22px; }

.panel h3 {
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.panel p { color: var(--muted); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   10. About block
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

/* skills */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.skill-group h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 15px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: default;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.chip:hover {
  transform: translateY(-4px);
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 90, 31, 0.1);
}

/* --------------------------------------------------------------------------
   11. Timeline (experience + education)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  margin-top: 52px;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 90, 31, 0.35), transparent);
}

.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -34px;
  top: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tl-item:hover .tl-dot {
  transform: scale(1.28);
  box-shadow: 0 0 0 6px rgba(255, 90, 31, 0.16);
}
.tl-dot.is-live::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(2.3); opacity: 0; }
}

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.tl-role {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tl-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.1);
  border: 1px solid rgba(255, 90, 31, 0.24);
  white-space: nowrap;
}
.tl-org {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.tl-org .sep { color: var(--faint); margin-inline: 8px; }

.bullets { display: grid; gap: 9px; margin-top: 12px; }
.bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   12. Projects
   -------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.project { display: flex; flex-direction: column; }
.project.is-feature { grid-column: 1 / -1; }

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.project h3 { font-size: 1.28rem; margin-bottom: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-live {
  background: rgba(255, 90, 31, 0.14);
  border: 1px solid rgba(255, 90, 31, 0.34);
  color: var(--accent-soft);
}
.tag-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.tag-done {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  color: var(--faint);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stack span {
  padding: 4px 11px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.project:hover .stack span { color: var(--accent-soft); border-color: rgba(255, 90, 31, 0.3); }

/* --------------------------------------------------------------------------
   13. Certificates
   -------------------------------------------------------------------------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.cert { padding: 0; display: flex; flex-direction: column; }

.cert-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  border-bottom: 1px solid var(--line);
}
.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.65s var(--ease);
}
.cert:hover .cert-thumb img { transform: scale(1.05); }

.cert-thumb::after {
  content: "View certificate";
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 12, 0.94));
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cert:hover .cert-thumb::after { opacity: 1; transform: translateY(0); }

.cert-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
}
.cert-body h3 { font-size: 1.06rem; line-height: 1.4; margin-bottom: 10px; }
.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.82rem;
  color: var(--faint);
  margin-top: auto;
  padding-top: 16px;
}
.cert-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cert-meta svg { width: 14px; height: 14px; opacity: 0.75; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: min(1000px, 94vw);
  max-height: 84vh;
  width: auto;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  transform: scale(0.94);
  transition: transform 0.4s var(--ease);
}
.lightbox.open img { transform: scale(1); }

.lightbox-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.lightbox-close:hover { transform: rotate(90deg); background: var(--accent); }
.lightbox-close svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  margin-top: 52px;
  align-items: start;
}

.contact-list { display: grid; gap: 14px; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              background 0.35s var(--ease);
}
.contact-row:hover {
  transform: translateX(6px);
  border-color: rgba(255, 90, 31, 0.42);
  background: var(--surface-2);
}
.contact-row .panel-icon { margin-bottom: 0; flex-shrink: 0; width: 42px; height: 42px; }
.contact-row .panel-icon svg { width: 19px; height: 19px; }
.contact-row-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2px;
}
.contact-row-value {
  font-size: 0.96rem;
  font-weight: 600;
  word-break: break-word;
  transition: color 0.3s var(--ease);
}
.contact-row:hover .contact-row-value { color: var(--accent); }

/* form */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.65; }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-note {
  font-size: 0.84rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-note svg { width: 15px; height: 15px; flex-shrink: 0; }

.form-status {
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 90, 31, 0.34);
  background: rgba(255, 90, 31, 0.1);
  color: var(--accent-soft);
  display: none;
}
.form-status.show { display: block; animation: fadeUp 0.45s var(--ease) both; }

/* --------------------------------------------------------------------------
   15. Call to action strip
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 58px 32px;
  border: 1px solid rgba(255, 90, 31, 0.28);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px circle at 50% 0%, rgba(255, 90, 31, 0.16), transparent 62%),
    var(--surface);
  margin-block: 40px 96px;
}
.cta h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cta p { color: var(--muted); max-width: 500px; margin: 0 auto 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-copy { font-size: 0.88rem; color: var(--faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 8px;
  transition: color 0.28s var(--ease), background 0.28s var(--ease);
}
.footer-links a:hover { color: var(--accent); background: rgba(255, 90, 31, 0.09); }

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* entrance animation for the hero, runs on load */
.enter { animation: fadeUp 0.85s var(--ease) both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.38s; }
.d5 { animation-delay: 0.48s; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 48px 72px;
  }
  .card-stage { order: -1; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --nav-h: 68px; }

  .nav-toggle { display: grid; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 24px 26px;
    background: rgba(14, 14, 16, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease),
                visibility 0.32s var(--ease);
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 16px; border-radius: var(--r-sm); font-size: 1rem; }
  .nav-links a::after { display: none; }

  .nav-cta .btn { display: none; }

  .section { padding-block: 64px; }
  .page-head { padding-block: 52px 4px; }
  .field-row { grid-template-columns: 1fr; }
  .facts { gap: 10px; }
  .fact-num { font-size: 1.45rem; }
  .cta { padding: 44px 22px; margin-bottom: 64px; }
}

@media (max-width: 560px) {
  .shell { padding-inline: 18px; }
  .nav-inner { padding-inline: 18px; }
  .panel { padding: 24px; }
  .timeline { padding-left: 26px; }
  .tl-dot { left: -26px; width: 14px; height: 14px; }
  .facts { grid-template-columns: 1fr; text-align: left; gap: 16px; }
  .hero-copy { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-text { margin-inline: 0; }
  .arc-top { width: 160px; height: 160px; }
  .arc-bottom { width: 190px; height: 190px; left: -24px; }
}

/* --------------------------------------------------------------------------
   19. Accessibility
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .bg-decor, .footer, .cta, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
