/* =========================================================================
   Vikas Vijendrabhai Ajudiya — Freelance Software Developer
   "Indigo Porcelain" design system. Light theme, geometric sans type,
   floating pill navigation, bento cards, soft layered shadows. Mobile-first.
   ========================================================================= */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  --bg:            #f5f7fc;   /* porcelain page background */
  --bg-soft:       #eef1f9;   /* recessed surface (inputs, tints) */
  --surface:       #ffffff;   /* cards */
  --night:         #0d132e;   /* dark footer panel */
  --night-2:       #141b3d;

  --ink:           #101733;   /* deep navy text */
  --muted:         #4f5a76;
  --faint:         #5f6a85;
  --on-night:      #e8ebf7;
  --on-night-mut:  #a8b0ca;

  /* Gradient ends are both dark enough to carry white text at AA. */
  --primary:       #4f46e5;   /* indigo */
  --primary-deep:  #4038c7;
  --violet:        #7c3aed;
  --grad:          linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-soft:     linear-gradient(135deg, rgba(79, 70, 229, .10), rgba(124, 58, 237, .10));
  --tint:          rgba(79, 70, 229, 0.08);
  --ring:          rgba(79, 70, 229, 0.35);

  --border:        #e4e8f4;
  --border-strong: #cfd6ea;

  --shadow-sm: 0 1px 2px rgba(16, 23, 51, .05), 0 2px 8px rgba(16, 23, 51, .05);
  --shadow-md: 0 2px 6px rgba(16, 23, 51, .05), 0 14px 34px -14px rgba(16, 23, 51, .16);
  --shadow-lg: 0 4px 10px rgba(16, 23, 51, .05), 0 28px 60px -24px rgba(64, 56, 199, .28);

  --display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --container: 1180px;
  --header-h:  64px;
  --header-gap: 14px;
  --pad: clamp(20px, 4vw, 44px);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { margin: 0 0 1rem; }

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-deep); }

ul { margin: 0; padding: 0; }

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

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Gradient text helper */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ----- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(64px, 9vw, 116px); }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

.section-title {
  font-size: clamp(1.85rem, 4.6vw, 2.9rem);
  margin-bottom: .4em;
}
.section-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-lead {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0 auto;
  max-width: 52ch;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -64px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; color: #fff; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { flex: none; }

.btn-primary {
  color: #fff;
  background-image: var(--grad);
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .55);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(79, 70, 229, .6);
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--border-strong), var(--shadow-sm);
}
.btn-ghost:hover {
  color: var(--primary);
  box-shadow: inset 0 0 0 1.5px var(--primary), var(--shadow-md);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ----- Header / floating pill nav --------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding-top: var(--header-gap);
  pointer-events: none; /* the pill itself re-enables */
}

.topbar {
  position: relative;
  pointer-events: auto;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding-inline: 12px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.scrolled .navbar {
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 4px 6px;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .6);
}
.brand-text {
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 559px) {
  .brand-text { font-size: .78rem; max-width: 44vw; }
}

/* Toggle: rounded square burger */
.nav-toggle {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.nav-toggle:hover { border-color: var(--primary); background: var(--tint); }
.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: dropdown sheet under the pill */
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.985);
  transform-origin: top center;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s ease, transform .25s ease;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.nav-links a:hover {
  background: var(--tint);
  color: var(--primary);
}

.nav-cta { display: flex; }
.nav-cta .btn { width: 100%; padding-block: 14px; }

/* ----- Hero: centered intro + bento board -------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--header-gap) + clamp(44px, 7vw, 84px));
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 520px;
  height: 520px;
  top: -220px;
  right: -140px;
  background: radial-gradient(circle, rgba(124, 58, 237, .18), transparent 65%);
}
.hero::after {
  width: 460px;
  height: 460px;
  bottom: -240px;
  left: -160px;
  background: radial-gradient(circle, rgba(79, 70, 229, .14), transparent 65%);
}

.hero-intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(22px, 3.5vw, 30px);
  padding: 9px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
}
.status-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 6.2vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  color: var(--muted);
  max-width: 58ch;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Bento board */
.hero-board {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: clamp(44px, 6vw, 64px) auto 0;
}

.board-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.board-portrait {
  min-height: 320px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
}
.portrait-fallback {
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.board-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.board-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 28px;
}
.board-stat .stat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--primary);
}
.board-stat .stat-value {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.board-stat .stat-label {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}

/* Decorative tech strip (content mirrors the Skills section) */
.tech-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin-inline: auto;
}
.tech-strip span {
  padding: 9px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: .84rem;
  font-weight: 700;
  color: var(--muted);
}

/* ----- About ------------------------------------------------------------ */
.about-intro {
  max-width: 820px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.about-intro strong { font-weight: 700; }

.about-grid {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin-inline: auto;
}

.about-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 4vw, 40px);
}
.about-panel p { color: var(--muted); line-height: 1.85; }
.about-panel p:last-child { margin-bottom: 0; }
.about-panel p strong { color: var(--ink); font-weight: 700; }

.work-panel {
  background: var(--night);
  border: 1px solid var(--night-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 40px);
}
.work-panel h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.work-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.work-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 17px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-md);
  color: var(--on-night);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.55;
}
.work-list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--grad);
}

/* ----- Services: icon card grid ------------------------------------------ */
.services-grid {
  display: grid;
  gap: 18px;
}

.service-card {
  position: relative;
  padding: clamp(24px, 3.5vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--grad);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(79, 70, 229, .5);
}
.service-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.7;
  margin: 0;
}

/* ----- Skills: icon tile grid -------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
}
.skill-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-family: var(--display);
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.skill-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ring);
}
.skill-tile .skill-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--primary);
  transition: background .25s ease, color .25s ease;
}
.skill-tile:hover .skill-icon {
  background: var(--grad);
  color: #fff;
}

/* ----- Contact ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 8px;
}
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 4px;
}
.contact-row + .contact-row { border-top: 1px solid var(--border); }
.contact-row .ci-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--primary);
}
.contact-row .ci-body { min-width: 0; }
.contact-row .ci-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}
.contact-row .ci-value {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: .97rem;
  line-height: 1.6;
  word-break: break-word;
}
/* Keeps stacked contact links above the 24px minimum touch target. */
.contact-row a.ci-value { padding-block: 4px; }
.contact-row a.ci-value:hover { color: var(--primary); }
.contact-row address {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.7;
}

/* Form: filled rounded fields */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 36px);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .86rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--tint);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.form-note {
  margin: 0 0 18px;
  font-size: .85rem;
  color: var(--faint);
}
.form-status {
  margin: 14px 0 0;
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary);
  min-height: 1.2em;
}

/* ----- Footer: dark rounded panel ---------------------------------------- */
.site-footer {
  margin-top: clamp(24px, 4vw, 48px);
  background: var(--night);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding-block: clamp(52px, 7vw, 84px) 28px;
  color: var(--on-night-mut);
}

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.footer-brand .brand { color: #fff; padding: 0; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand > p {
  color: var(--on-night-mut);
  max-width: 340px;
  margin-top: 18px;
  font-size: .96rem;
  line-height: 1.75;
}
.footer-brand > .footer-gst {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 8px 15px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: var(--on-night);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  white-space: nowrap;
}
.footer-gst::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

.site-footer h4 {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.footer-contact,
.footer-links { list-style: none; display: grid; gap: 6px; font-size: .95rem; }
.footer-contact a,
.footer-links a {
  display: inline-block;
  padding-block: 5px;
  color: var(--on-night-mut);
  font-weight: 600;
}
.footer-contact a:hover,
.footer-links a:hover { color: #fff; }
.footer-contact address {
  font-style: normal;
  color: var(--on-night-mut);
  opacity: .8;
  line-height: 1.7;
  font-size: .9rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
  font-weight: 600;
}
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; gap: 22px; list-style: none; }
.footer-bottom-links a { display: inline-block; padding-block: 4px; color: var(--on-night-mut); }
.footer-bottom-links a:hover { color: #fff; }

/* ----- Legal pages ------------------------------------------------------ */
.legal {
  padding-top: calc(var(--header-h) + var(--header-gap) + clamp(36px, 6vw, 64px));
  padding-bottom: clamp(64px, 8vw, 104px);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  margin-bottom: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: .84rem;
  font-weight: 800;
  color: var(--muted);
  transition: color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.back-home:hover {
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.back-home svg { transition: transform .2s ease; }
.back-home:hover svg { transform: translateX(-3px); }

.legal-head {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(32px, 5vw, 56px);
  margin-bottom: 22px;
  color: #fff;
}
.legal-head::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  top: -170px;
  right: -110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  filter: blur(4px);
}
.legal-head h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 14px;
}
.legal-head .updated {
  display: inline-block;
  padding: 7px 16px;
  background: rgba(255, 255, 255, .16);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.legal-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 5vw, 56px);
}
.legal-body > p:first-child {
  font-size: 1.06rem;
  line-height: 1.8;
}
.legal-body h2 {
  position: relative;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  margin-top: 44px;
  margin-bottom: 14px;
  padding-left: 18px;
}
.legal-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 5px;
  border-radius: 999px;
  background: var(--grad);
}
.legal-body p,
.legal-body li { color: var(--muted); line-height: 1.8; }
.legal-body strong { color: var(--ink); }
.legal-body ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.legal-body li { margin-bottom: 8px; }
.legal-body address {
  font-style: normal;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 26px;
  line-height: 1.8;
}
.legal-body address a { display: inline-block; padding-block: 3px; }

/* ----- Reveal animation (progressive enhancement) ----------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px) scale(.99);
  transition: opacity .65s cubic-bezier(.21, .8, .35, 1), transform .65s cubic-bezier(.21, .8, .35, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .status-chip .dot { animation: none; }
  .btn, .service-card, .skill-tile, .nav-menu, .back-home { transition: none; }
}

/* ----- Responsive ------------------------------------------------------- */
@media (min-width: 560px) {
  .hero-board { grid-template-columns: 1.15fr 1fr; }
  .board-portrait { grid-row: 1 / 3; min-height: 0; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .work-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  body { font-size: 17px; }
  .about-grid { grid-template-columns: 1.25fr 1fr; }
  .work-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1.1fr .9fr; }
}

@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .service-card { grid-column: span 2; }
  .service-card:nth-child(4) { grid-column: 2 / 4; }
  .service-card:nth-child(5) { grid-column: 4 / 6; }
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  /* Desktop: inline nav inside the pill */
  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-links {
    flex-direction: row;
    gap: 2px;
  }
  .nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: .92rem;
  }
  .nav-cta { margin-left: 8px; }
  .nav-cta .btn { width: auto; padding: 12px 22px; font-size: .88rem; }
}
