/* =========================================================
   RAYHAN KABIR — PORTFOLIO
   Design system: "Signal" — a full-stack developer's site
   framed as a live API: sections are endpoints, the hero
   response is the person. Ink-navy ground, warm signal-amber
   accent, editorial serif for voice, monospace for data.
   ========================================================= */

:root {
  /* ---- color tokens ---- */
  --ink: #0B0E14;
  --ink-soft: #0E1219;
  --panel: #12161F;
  --panel-2: #171C27;
  --stroke: rgba(236, 238, 243, 0.09);
  --stroke-2: rgba(236, 238, 243, 0.16);
  --paper: #ECEEF3;
  --paper-dim: #C7CBD6;
  --muted: #8B92A6;
  --muted-2: #7A81A0;
  --amber: #E8A23D;
  --amber-2: #F4C37A;
  --amber-dim: rgba(232, 162, 61, 0.12);
  --teal: #55D6BE;
  --teal-dim: rgba(85, 214, 190, 0.12);
  --danger: #E9707A;

  /* ---- type ---- */
  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- scale ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --gap-section: clamp(4.5rem, 9vw, 8rem);
  --container-max: 1240px;

  /* ---- motion ---- */
  --ease: cubic-bezier(.16, .84, .44, 1);
  --dur-s: 200ms;
  --dur-m: 500ms;
  --dur-l: 900ms;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: hidden; /* prevent horizontal scroll on all browsers incl. iOS Safari */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

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

.container-xl {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

section {
  position: relative;
}

/* subtle blueprint dot-grid texture, used behind hero/CTA */
.grid-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--stroke-2) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 85%);
  pointer-events: none;
  opacity: .5;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--paper);
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(232, 162, 61, 0.28);
  padding: .38rem .75rem;
  border-radius: 999px;
  text-transform: none;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-dim);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  margin-top: 1rem;
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

p {
  color: var(--paper-dim);
}

.text-mono {
  font-family: var(--f-mono);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--f-mono);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--amber);
  color: #1A1204;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 24px -12px rgba(232, 162, 61, 0.6);
}

.btn-primary:hover {
  background: var(--amber-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 16px 30px -10px rgba(232, 162, 61, 0.75);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--stroke-2);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: .55rem 1rem;
  font-size: .8rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-2);
  color: var(--muted);
  transition: all var(--dur-s) var(--ease);
}

.icon-link:hover {
  color: var(--ink);
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.icon-link svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease), padding var(--dur-m) var(--ease), backdrop-filter var(--dur-m) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(11, 14, 20, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--stroke);
  padding: .75rem 0;
}

.site-nav .container-xl {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--f-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--paper);
}

.brand .brand-accent {
  color: var(--amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-links a {
  font-family: var(--f-mono);
  font-size: .84rem;
  color: var(--muted);
  position: relative;
  padding: .3rem 0;
  transition: color var(--dur-s) var(--ease);
}

.nav-links a::before {
  content: "/";
  color: var(--muted-2);
  margin-right: .15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-s) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--paper);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: clamp(7rem, 16vw, 10rem) 0 var(--gap-section);
  overflow: hidden; /* clips the decorative glow blobs */
  position: relative; /* ensures glows are clipped within this element */
}

.hero .glow.g1 {
  width: 560px;
  height: 560px;
  top: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(232, 162, 61, 0.22), transparent 70%);
}

.hero .glow.g2 {
  width: 480px;
  height: 480px;
  top: 60px;
  right: -200px;
  background: radial-gradient(circle, rgba(85, 214, 190, 0.16), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.1vw, 4.4rem);
  margin-top: 1.4rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber-2);
}

.hero-lede {
  margin-top: 1.6rem;
  font-size: 1.13rem;
  max-width: 46ch;
  color: var(--paper-dim);
}

.hero-actions {
  margin-top: 2.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
}

.hero-meta span {
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero-meta span b {
  color: var(--paper);
  font-weight: 500;
}

.hero-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
}

/* ---- terminal signature element ---- */
.terminal {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.015);
}

.terminal-dots {
  display: flex;
  gap: .4rem;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stroke-2);
}

.terminal-dots span:nth-child(1) {
  background: #E9707A;
  opacity: .55;
}

.terminal-dots span:nth-child(2) {
  background: #E8A23D;
  opacity: .55;
}

.terminal-dots span:nth-child(3) {
  background: #55D6BE;
  opacity: .55;
}

.terminal-title {
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--muted);
  margin-inline: auto;
  letter-spacing: .02em;
}

.terminal-status {
  font-family: var(--f-mono);
  font-size: .7rem;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.terminal-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}

.terminal-body {
  padding: 1.4rem 1.5rem 1.7rem;
  font-family: var(--f-mono);
  font-size: .87rem;
  line-height: 1.85;
  min-height: 330px;
}

.terminal-cmd {
  color: var(--paper-dim);
  margin-bottom: .9rem;
}

.terminal-cmd .prompt {
  color: var(--teal);
  margin-right: .5rem;
}

.terminal-cmd .cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  background: var(--amber);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

.json-line {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  white-space: pre-wrap; /* wrap long lines on small screens instead of overflowing */
  word-break: break-word;
}

.json-line.show {
  opacity: 1;
  transform: none;
}

.json-line .k {
  color: var(--amber-2);
}

.json-line .s {
  color: var(--teal);
}

.json-line .p {
  color: var(--muted);
}

.json-line .b {
  color: #9DD8FF;
}

.json-line .arr {
  color: var(--paper-dim);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--stroke);
}

.about-grid {
  align-items: start;
}

.about-copy p {
  font-size: 1.05rem;
  margin: 0 0 1.15rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy strong {
  color: var(--paper);
  font-weight: 600;
}

.avatar-mark {
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 260px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-2);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  position: relative;
  overflow: hidden;
}

.avatar-mark svg {
  width: 62%;
  height: 62%;
}

.facts {
  border-top: 1px solid var(--stroke);
  padding-top: 1.4rem;
  display: grid;
  gap: .75rem;
}

.facts .fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: .82rem;
  padding-bottom: .75rem;
  border-bottom: 1px dashed var(--stroke);
}

.facts .fact:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.facts .fact .k {
  color: var(--muted);
}

.facts .fact .v {
  color: var(--paper);
  text-align: right;
}

.facts .fact .v.available {
  color: var(--teal);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
}

.stat-card .num {
  font-family: var(--f-display);
  font-size: 2.1rem;
  color: var(--amber-2);
  line-height: 1;
}

.stat-card .lbl {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--muted);
  margin-top: .5rem;
  letter-spacing: .02em;
}

/* =========================================================
   STACK
   ========================================================= */
.stack {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--stroke);
}

.stack-card {
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  transition: border-color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
}

.stack-card:hover {
  border-color: var(--stroke-2);
  background: var(--panel-2);
  transform: translateY(-3px);
}

.stack-card .stack-icon {
  width: 34px;
  height: 34px;
  color: var(--amber);
  margin-bottom: 1rem;
}

.stack-card h3 {
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: .9rem;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.stack-tags span {
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--paper-dim);
  border: 1px solid var(--stroke-2);
  border-radius: 5px;
  padding: .3rem .55rem;
}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--stroke);
}

.project-card {
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 162, 61, 0.4);
  box-shadow: 0 30px 50px -25px rgba(0, 0, 0, 0.65);
}

@media (min-width: 768px) {
  .project-card.is-feature {
    flex-direction: row;
  }

  .project-card.is-feature .project-visual {
    flex: 0 0 42%;
    border-bottom: none;
    border-right: 1px solid var(--stroke);
    min-height: auto;
  }

  .project-card.is-feature .project-body {
    flex: 1;
    justify-content: center;
  }
}

.project-visual {
  position: relative;
  min-height: 190px;
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 162, 61, 0.16), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(85, 214, 190, 0.14), transparent 55%),
    var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--stroke);
  overflow: hidden;
}

.project-visual svg {
  width: 46%;
  max-width: 180px;
  color: var(--paper);
  opacity: .92;
  transition: transform var(--dur-l) var(--ease);
}

.project-card:hover .project-visual svg {
  transform: scale(1.06) translateY(-4px);
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--stroke) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .4;
}

.project-body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  flex: 1;
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-top h3 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.project-index {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--muted-2);
  white-space: nowrap;
  padding-top: .3rem;
}

.project-body p {
  font-size: .95rem;
  margin: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .2rem;
}

.project-tags span {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--muted);
  border: 1px solid var(--stroke);
  border-radius: 4px;
  padding: .25rem .5rem;
}

.project-links {
  display: flex;
  gap: 1.1rem;
  margin-top: .4rem;
}

.project-links a {
  font-family: var(--f-mono);
  font-size: .8rem;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: .4rem;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}

.project-links a svg {
  width: 13px;
  height: 13px;
}

.project-links a:hover {
  color: var(--amber-2);
  border-color: var(--amber-2);
}

/* =========================================================
   PROCESS
   ========================================================= */
.process {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--stroke);
}

.process-grid {
  border-top: 1px solid var(--stroke);
  border-left: 1px solid var(--stroke);
}

.process-step {
  height: 100%;
  padding: 1.8rem 1.6rem;
  border-right: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  position: relative;
}

.process-step .code {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--teal);
  background: var(--teal-dim);
  border-radius: 4px;
  padding: .2rem .45rem;
  display: inline-block;
  margin-bottom: 1.1rem;
}

.process-step h3 {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: .6rem;
}

.process-step p {
  font-size: .88rem;
  margin: 0;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--stroke);
  position: relative;
  overflow: hidden; /* clips the large radial glow blob */
  max-width: 100vw; /* belt-and-suspenders guard against glow overflow */
}

.contact .glow {
  width: 600px;
  height: 600px;
  bottom: -280px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 162, 61, 0.14), transparent 70%);
}

.contact-grid {
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-top: 1rem;
}

.contact-info p {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  max-width: 42ch;
}

.contact-cards {
  margin-top: .5rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  height: 100%;
  text-decoration: none;
  transition: transform var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease), background var(--dur-m) var(--ease);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
}

.contact-card--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.45);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.06), var(--panel));
}

.contact-card--email:hover {
  border-color: rgba(232, 162, 61, 0.4);
  background: linear-gradient(135deg, rgba(232, 162, 61, 0.06), var(--panel));
}

.contact-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card--whatsapp .contact-card-icon {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
}

.contact-card--email .contact-card-icon {
  background: var(--amber-dim);
  color: var(--amber);
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card-body h3 {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: .35rem;
}

.contact-card-body p {
  font-size: .92rem;
  color: var(--muted);
  margin: 0;
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--f-mono);
  font-size: .82rem;
  margin-top: .8rem;
  color: var(--paper-dim);
  transition: color var(--dur-s) var(--ease);
}

.contact-card-link svg {
  width: 13px;
  height: 13px;
}

.contact-card--whatsapp:hover .contact-card-link {
  color: #25D366;
}

.contact-card--email:hover .contact-card-link {
  color: var(--amber-2);
}

.contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stroke);
}

.contact-location {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--muted);
}

.contact-location svg {
  width: 16px;
  height: 16px;
  color: var(--amber);
  flex-shrink: 0;
}

.contact-socials {
  display: flex;
  gap: .7rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 2.2rem 0;
}

.site-footer .container-xl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.footer-status {
  font-family: var(--f-mono);
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}

.footer-copy {
  font-family: var(--f-mono);
  font-size: .75rem;
  color: var(--muted-2);
}

.to-top {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-s) var(--ease);
}

.to-top:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-2px);
}

.to-top svg {
  width: 16px;
  height: 16px;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal-group .reveal:nth-child(1) {
  transition-delay: 0ms;
}

.reveal-group .reveal:nth-child(2) {
  transition-delay: 90ms;
}

.reveal-group .reveal:nth-child(3) {
  transition-delay: 180ms;
}

.reveal-group .reveal:nth-child(4) {
  transition-delay: 270ms;
}

.reveal-group .reveal:nth-child(5) {
  transition-delay: 360ms;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {

  .nav-links,
  .nav-cta .btn-ghost-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: .6rem;
  }

  .stat-card {
    padding: .9rem;
  }

  .stat-card .num {
    font-size: 1.6rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile off-canvas menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(11, 14, 20, 0.98);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  transform: translateY(-100%);
  transition: transform var(--dur-m) var(--ease);
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-close {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-2);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close svg {
  width: 18px;
  height: 18px;
}

.mobile-links {
  margin-top: 3rem;
  display: grid;
  gap: 1.6rem;
}

.mobile-links a {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: .8rem;
}

.mobile-links a span {
  font-family: var(--f-mono);
  font-size: .9rem;
  color: var(--amber);
}

.mobile-menu-foot {
  margin-top: auto;
  display: flex;
  gap: .7rem;
  padding-top: 2rem;
}