:root {
  --ink: #132538;
  --muted: #5b6c7f;
  --dim: #8b9aad;
  --paper: #f6fbff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(42, 74, 105, 0.14);
  --line-strong: rgba(12, 139, 160, 0.38);
  --accent: #087ea4;
  --accent-strong: #075f78;
  --signal: #f65f42;
  --signal-soft: #c64e35;
  --mint: #12b886;
  --shadow: 0 34px 90px rgba(37, 76, 105, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(18, 184, 134, 0.16), transparent 26%),
    radial-gradient(circle at 90% 4%, rgba(246, 95, 66, 0.13), transparent 28%),
    linear-gradient(135deg, rgba(8, 126, 164, 0.11), transparent 36%),
    var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Candara, "Trebuchet MS", sans-serif;
  overflow-x: hidden;
}

body::before {
  animation: drift 22s linear infinite;
  background-image:
    linear-gradient(rgba(8, 126, 164, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 126, 164, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

body::after {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(19, 37, 56, 0.025) 0,
      rgba(19, 37, 56, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );
  content: "";
  inset: 0;
  mix-blend-mode: overlay;
  opacity: 0.32;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

main {
  min-height: 100vh;
  position: relative;
}

.ambient-grid {
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(8, 126, 164, 0.10) 38% 39%, transparent 39% 100%),
    linear-gradient(65deg, transparent 0 60%, rgba(246, 95, 66, 0.10) 60% 61%, transparent 61% 100%);
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  background: linear-gradient(135deg, #0aa3c2, #62e6ba);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  letter-spacing: 0.08em;
  text-decoration: none;
  width: 52px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  padding: 9px 12px;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  background: rgba(8, 126, 164, 0.08);
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  display: grid;
  gap: clamp(30px, 5vw, 86px);
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.82fr);
  min-height: calc(100vh - 75px);
  overflow: hidden;
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 72px) 68px;
  position: relative;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44), transparent 38%),
    radial-gradient(circle at 82% 38%, rgba(18, 184, 134, 0.12), transparent 30%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero::before {
  animation: sweep 8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(8, 126, 164, 0.18), transparent);
  content: "";
  height: 1px;
  left: -20%;
  position: absolute;
  top: 17%;
  width: 140%;
}

.hero-copy {
  align-self: center;
  max-width: 790px;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.82;
  margin-bottom: 24px;
  max-width: 980px;
}

h1 span {
  animation: titleRise 780ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  display: block;
  text-shadow: 0 20px 42px rgba(8, 126, 164, 0.16);
}

h1 span:nth-child(2) {
  animation-delay: 80ms;
}

h1 span:nth-child(3) {
  animation-delay: 160ms;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  margin-bottom: 0;
}

h3 {
  font-size: 24px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.role {
  color: var(--signal);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
  margin-bottom: 18px;
}

.summary {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.58;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.primary-action,
.secondary-action {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 950;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-action {
  background: linear-gradient(135deg, var(--accent), var(--mint));
  box-shadow: 0 18px 46px rgba(8, 126, 164, 0.22);
  color: #ffffff;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-3px);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
}

.signal-row,
.skill-cloud,
.stack-list,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-row span,
.skill-cloud span,
.stack-list span {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 13px;
  font-weight: 950;
  padding: 8px 10px;
}

.hero-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  max-width: 650px;
}

.hero-metrics div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 5px;
}

.hero-metrics span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 560px;
  position: relative;
}

.device-halo {
  animation: pulseGlow 4.6s ease-in-out infinite;
  background:
    conic-gradient(from 120deg, rgba(8, 126, 164, 0), rgba(8, 126, 164, 0.38), rgba(246, 95, 66, 0.28), rgba(18, 184, 134, 0.36));
  border-radius: 40px;
  filter: blur(30px);
  height: 78%;
  opacity: 0.62;
  position: absolute;
  transform: rotate(8deg);
  width: min(88%, 440px);
}

.phone-frame {
  animation: deviceFloat 5.5s ease-in-out infinite;
  background: #ffffff;
  border: 12px solid #132538;
  border-radius: 32px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  max-width: 365px;
  overflow: hidden;
  position: relative;
  transform: rotate(2deg);
  width: min(100%, 365px);
}

.phone-speaker {
  background: #2c3c47;
  border-radius: 999px;
  height: 6px;
  left: 50%;
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  width: 76px;
  z-index: 3;
}

.screen-scan {
  animation: scan 3.6s ease-in-out infinite;
  background: linear-gradient(180deg, transparent, rgba(8, 126, 164, 0.20), transparent);
  height: 24%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: -30%;
  z-index: 2;
}

.phone-frame img {
  display: block;
  filter: saturate(1.02) contrast(1.07);
  height: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

.floating-note {
  align-items: center;
  animation: noteBob 4.2s ease-in-out infinite;
  background: linear-gradient(135deg, var(--signal), #ff9a62);
  border-radius: 8px;
  bottom: 54px;
  box-shadow: 0 22px 50px rgba(246, 95, 66, 0.24);
  color: #fff;
  display: flex;
  font-weight: 950;
  gap: 10px;
  padding: 14px 16px;
  position: absolute;
  right: 2%;
}

.section {
  padding: clamp(56px, 7vw, 98px) clamp(18px, 5vw, 72px);
  position: relative;
}

.intro-grid {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(18, 184, 134, 0.12), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(232, 247, 253, 0.88));
  border-block: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
}

.intro-grid .section-kicker {
  color: var(--mint);
}

.intro-grid p:last-child {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

.projects-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(230, 245, 250, 0.78)),
    radial-gradient(circle at 20% 0%, rgba(8, 126, 164, 0.10), transparent 34%);
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card,
.assistant-box,
.skill-group,
.contact-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(37, 76, 105, 0.12);
}

.project-card {
  isolation: isolate;
  min-height: 330px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.project-card::before {
  background: linear-gradient(135deg, rgba(8, 126, 164, 0.12), transparent 45%);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 220ms ease;
  z-index: 0;
}

.project-card::after {
  background-position: center top;
  background-size: cover;
  content: "";
  filter: blur(28px) saturate(1.12);
  inset: -46px -34px auto -34px;
  min-height: 42%;
  opacity: 0.10;
  pointer-events: none;
  position: absolute;
  transform: scale(1.05);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 0;
}

.project-card-1::after {
  background-image:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.88)),
    url("/aitalkmate-preview.png");
}

.project-card-2::after {
  background-image:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.88)),
    url("/tracking-calo-preview.png");
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 26px 80px rgba(8, 126, 164, 0.14);
  transform: translateY(-6px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover::after {
  opacity: 0.16;
  transform: scale(1.08);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-preview {
  align-items: center;
  background:
    radial-gradient(circle at 20% 18%, rgba(18, 184, 134, 0.24), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(246, 95, 66, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(224, 244, 250, 0.76)),
    #eaf7fb;
  border: 1px solid rgba(8, 126, 164, 0.20);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -22px 44px rgba(8, 126, 164, 0.05),
    0 22px 54px rgba(37, 76, 105, 0.12);
  display: flex;
  height: clamp(360px, 34vw, 470px);
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  position: relative;
  isolation: isolate;
  perspective: 1200px;
}

.project-preview::before {
  background-position: center;
  background-size: cover;
  content: "";
  filter: blur(24px) saturate(1.16);
  inset: -34px;
  opacity: 0.26;
  position: absolute;
  transform: scale(1.1);
  z-index: -2;
}

.project-preview::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.56), transparent 18% 82%, rgba(255, 255, 255, 0.30)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), transparent 42%);
  border: 1px solid rgba(8, 126, 164, 0.16);
  border-radius: 14px;
  content: "";
  inset: 24px;
  opacity: 0.62;
  position: absolute;
  transform: rotate(-2deg);
  z-index: -1;
}

.project-preview-1::before {
  background-image: url("/aitalkmate-preview.png");
}

.project-preview-2::before {
  background-image: url("/tracking-calo-preview.png");
}

.project-preview img {
  border-radius: 18px;
  box-shadow:
    0 26px 70px rgba(37, 76, 105, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.76);
  display: block;
  max-height: calc(100% - 4px);
  max-width: 100%;
  object-fit: contain;
  transform: rotate(-1.8deg) scale(1.04);
  transition: filter 320ms ease, transform 320ms ease, box-shadow 320ms ease;
}

.project-preview-1 {
  background:
    radial-gradient(circle at 18% 22%, rgba(84, 119, 255, 0.22), transparent 32%),
    radial-gradient(circle at 78% 22%, rgba(255, 83, 182, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.82));
}

.project-preview-1::after {
  inset: 34px 28px;
  opacity: 0.56;
  transform: rotate(1.2deg);
}

.project-preview-1 img {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  max-height: none;
  object-fit: cover;
  transform: rotate(-1.2deg) rotateX(2deg) scale(0.98);
  width: min(100%, 760px);
}

.project-preview-count-3 {
  background:
    radial-gradient(circle at 26% 28%, rgba(18, 184, 134, 0.22), transparent 31%),
    radial-gradient(circle at 78% 24%, rgba(138, 92, 246, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 251, 248, 0.74));
  height: clamp(360px, 34vw, 470px);
  padding: 24px;
}

.project-preview-count-3::after {
  background:
    radial-gradient(ellipse at center, rgba(18, 184, 134, 0.15), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.12));
  inset: 44px 70px;
  opacity: 0.72;
  transform: rotate(1.6deg);
}

.project-preview-count-3 img {
  background: #ffffff;
  border: 5px solid rgba(19, 37, 56, 0.84);
  border-radius: 30px;
  box-shadow:
    0 26px 54px rgba(37, 76, 105, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.78);
  filter: saturate(1.04) contrast(1.01);
  max-height: 78%;
  max-width: 32%;
  position: absolute;
  top: 50%;
}

.project-preview-count-3 img:nth-child(1) {
  opacity: 0.96;
  transform: translate(-88%, -45%) rotate(-9deg) scale(0.92);
  z-index: 1;
}

.project-preview-count-3 img:nth-child(2) {
  transform: translate(-2%, -48%) rotate(0deg) scale(1.08);
  z-index: 3;
}

.project-preview-count-3 img:nth-child(3) {
  opacity: 0.96;
  transform: translate(84%, -45%) rotate(9deg) scale(0.92);
  z-index: 2;
}

.project-preview-2 img {
  border-radius: 30px;
}

.project-card:hover .project-preview img {
  filter: saturate(1.08) contrast(1.04);
  box-shadow:
    0 34px 84px rgba(37, 76, 105, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.82);
  transform: translateY(-6px) rotate(0deg) scale(1.08);
}

.project-card:hover .project-preview-1 img {
  transform: translateY(-6px) rotate(0deg) rotateX(0deg) scale(1.02);
}

.project-card:hover .project-preview-count-3 img:nth-child(1) {
  transform: translate(-94%, -47%) rotate(-11deg) scale(0.95);
}

.project-card:hover .project-preview-count-3 img:nth-child(2) {
  transform: translate(-2%, -51%) rotate(0deg) scale(1.12);
}

.project-card:hover .project-preview-count-3 img:nth-child(3) {
  transform: translate(90%, -47%) rotate(11deg) scale(0.95);
}

.project-index {
  color: rgba(8, 126, 164, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 106px;
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
  position: absolute;
  right: 24px;
  top: 22px;
  text-shadow: 0 12px 34px rgba(255, 255, 255, 0.76);
  z-index: 2;
}

.project-meta {
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 950;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.project-card p {
  color: var(--muted);
  line-height: 1.62;
}

.stack-list,
.project-links {
  margin-top: 20px;
}

.project-links a {
  align-items: center;
  color: var(--signal);
  display: inline-flex;
  font-weight: 950;
  gap: 4px;
  text-decoration: none;
}

.project-links a:hover {
  color: var(--accent-strong);
}

.skills-section {
  background:
    linear-gradient(90deg, rgba(18, 184, 134, 0.10), transparent 40%),
    #f8fcff;
}

.skill-cloud {
  margin-bottom: 30px;
}

.skill-groups {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-group {
  padding: 22px;
  transition: transform 200ms ease, border-color 200ms ease;
}

.skill-group:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.skill-group h3 {
  color: var(--accent-strong);
  font-size: 18px;
}

.skill-group ul {
  color: var(--muted);
  line-height: 1.85;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-panel {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(246, 95, 66, 0.12), transparent 35%),
    linear-gradient(180deg, #ffffff, #eef9fb);
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.78fr) minmax(330px, 1fr);
}

.ai-copy p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.64;
  margin-top: 18px;
}

.assistant-box {
  overflow: hidden;
  padding: clamp(20px, 4vw, 32px);
  position: relative;
}

.assistant-box::before {
  animation: assistantRail 5s linear infinite;
  background: linear-gradient(90deg, transparent, rgba(18, 184, 134, 0.34), transparent);
  content: "";
  height: 1px;
  left: -40%;
  position: absolute;
  top: 0;
  width: 80%;
}

.assistant-header {
  align-items: center;
  color: var(--accent-strong);
  display: flex;
  font-size: 18px;
  font-weight: 950;
  gap: 10px;
  margin-bottom: 20px;
}

.assistant-header i {
  animation: blink 1.3s steps(2, end) infinite;
  background: var(--mint);
  border-radius: 999px;
  height: 8px;
  margin-left: auto;
  width: 8px;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.quick-questions button {
  background: rgba(8, 126, 164, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  padding: 8px 10px;
  transition: background 180ms ease, transform 180ms ease;
}

.quick-questions button:hover {
  background: rgba(8, 126, 164, 0.15);
  transform: translateY(-2px);
}

.input-label {
  color: var(--dim);
  display: block;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ask-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 50px;
}

.ask-row input {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 50px;
  padding: 0 12px;
  width: 100%;
}

.ask-row input:focus {
  border-color: var(--accent);
  outline: none;
}

.ask-row button {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.answer-box {
  animation: answerIn 260ms ease both;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 184, 134, 0.24);
  border-radius: 8px;
  color: var(--ink);
  margin-top: 16px;
  padding: 18px;
}

.answer-box span {
  color: var(--mint);
  display: block;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.answer-box p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.contact-section {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(8, 126, 164, 0.10), transparent 34%),
    #ffffff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
}

.contact-section .section-kicker {
  color: var(--signal-soft);
}

.contact-list {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  display: grid;
  gap: 12px;
  padding: 22px;
}

.contact-list a,
.contact-list span,
footer span {
  align-items: center;
  display: flex;
  gap: 10px;
}

.contact-list a,
.contact-list span {
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent-strong);
}

footer {
  align-items: center;
  background: #f8fcff;
  border-top: 1px solid var(--line);
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 12px;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 72px);
}

.reveal {
  opacity: 1;
  transform: none;
}

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms),
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms);
}

.has-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes titleRise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 42px 42px;
  }
}

@keyframes sweep {
  0%,
  100% {
    opacity: 0.05;
    transform: translateX(-12%);
  }
  50% {
    opacity: 0.7;
    transform: translateX(12%);
  }
}

@keyframes deviceFloat {
  0%,
  100% {
    transform: rotate(2deg) translateY(0);
  }
  50% {
    transform: rotate(-1deg) translateY(-14px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.44;
    transform: rotate(8deg) scale(0.96);
  }
  50% {
    opacity: 0.76;
    transform: rotate(14deg) scale(1.04);
  }
}

@keyframes scan {
  0% {
    top: -30%;
  }
  55%,
  100% {
    top: 112%;
  }
}

@keyframes noteBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes assistantRail {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(180%);
  }
}

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

@keyframes answerIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero,
  .intro-grid,
  .ai-panel,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-metrics,
  .project-grid,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .floating-note {
    bottom: 18px;
    max-width: calc(100% - 20px);
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
