:root {
  --bg: #fffaee;
  --bg-strong: #f3ebd3;
  --surface: rgba(255, 250, 238, 0.96);
  --surface-strong: rgba(255, 248, 230, 0.98);
  --text: #3b3b3b;
  --muted: #55504a;
  --line: rgba(59, 59, 59, 0.12);
  --accent: #b65a45;
  --accent-deep: #8b4635;
  --accent-soft: #ecd6bc;
  --signal: #f2c94c;
  --shadow: 0 14px 30px rgba(99, 72, 47, 0.1);
  --card-surface: rgba(255, 250, 238, 0.96);
  --card-border: rgba(225, 206, 172, 0.5);
  --card-shadow: 0 10px 18px rgba(99, 72, 47, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.45), 0 24px 40px rgba(99, 72, 47, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Arimo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 201, 76, 0.14), transparent 28%),
    radial-gradient(circle at 85% 14%, rgba(182, 90, 69, 0.12), transparent 24%),
    linear-gradient(180deg, #fffcf4 0%, #fff7e8 52%, #fff4de 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    linear-gradient(rgba(59, 59, 59, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 59, 59, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 46%, transparent 88%);
}

body::after {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.3), transparent 24%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.18), transparent 22%);
  opacity: 0.9;
  z-index: -3;
}

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

p,
li {
  color: var(--muted);
  line-height: 1.7;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 56px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 38px rgba(99, 72, 47, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(99, 72, 47, 0.12);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-copy strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  position: relative;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 38, 63, 0.05);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

.section {
  padding: 48px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  min-height: 80vh;
}

.eyebrow,
.panel-label,
.timeline-tag,
.project-index {
  margin: 0 0 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.84rem, 1.35vw, 0.98rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
}

h1,
h2 {
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  line-height: 1.18;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 5.4vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.35rem, 2.8vw, 2.4rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.24rem;
}

.hero-text {
  max-width: 54ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #d87a5f);
  color: white;
  box-shadow: 0 12px 28px rgba(182, 90, 69, 0.22);
}

.button-secondary {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.44);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(182, 90, 69, 0.15), 0 8px 20px rgba(182, 90, 69, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(182, 90, 69, 0.35), 0 10px 22px rgba(182, 90, 69, 0.15);
  transform: translateY(-2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 0;
}

.hero-metrics div,
.feature-card,
.project-card,
.framework-card,
.contact-card,
.timeline-item,
.split-card,
.hero-note {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-surface);
  box-shadow: var(--card-shadow);
}

.feature-card > *,
.project-card > *,
.framework-card > *,
.contact-card > *,
.timeline-item > *,
.split-card > *,
.hero-note > * {
  position: relative;
  z-index: 1;
}

.hero-metrics div {
  padding: 18px;
}

.hero-metrics dt {
  margin-bottom: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.hero-metrics dd {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- Splash base (shared animation + blur) ---- */
.feature-card::before,
.contact-card::before,
.hero-note::before,
.split-card::before,
.project-card::before,
.framework-card::before,
.timeline-item::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              top  0.6s cubic-bezier(0.22, 1, 0.36, 1);
  filter: blur(8px);
}

/* Smoother follow while cursor is on the card */
.splash-tracking::before {
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Feature / contact / hero-note / split */
.feature-card::before,
.contact-card::before,
.hero-note::before,
.split-card::before {
  width: 200px;
  height: 200px;
  left: var(--splash-x, calc(100% - 20px));
  top:  var(--splash-y, 20px);
  background: radial-gradient(circle, rgba(100, 80, 220, 0.34) 0%, rgba(100, 80, 220, 0.2) 34%, rgba(100, 80, 220, 0.08) 56%, transparent 74%);
}

/* Project cards */
.project-card:nth-child(1)::before {
  width: 140px;
  height: 140px;
  left: var(--splash-x, 20px);
  top:  var(--splash-y, calc(100% - 20px));
  background: radial-gradient(circle, rgba(60, 120, 255, 0.3) 0%, rgba(60, 120, 255, 0.18) 36%, rgba(60, 120, 255, 0.07) 58%, transparent 74%);
}

.project-card:nth-child(2)::before {
  width: 150px;
  height: 150px;
  left: var(--splash-x, calc(100% - 20px));
  top:  var(--splash-y, calc(100% - 20px));
  background: radial-gradient(circle, rgba(100, 80, 220, 0.3) 0%, rgba(100, 80, 220, 0.18) 36%, rgba(100, 80, 220, 0.07) 58%, transparent 74%);
}

.project-card:nth-child(3)::before {
  width: 155px;
  height: 155px;
  left: var(--splash-x, calc(100% - 32.5px));
  top:  var(--splash-y, 32.5px);
  background: radial-gradient(circle, rgba(80, 230, 120, 0.28) 0%, rgba(80, 230, 120, 0.16) 36%, rgba(80, 230, 120, 0.06) 58%, transparent 74%);
}

/* Framework cards */
.framework-card:nth-child(1)::before {
  width: 110px;
  height: 110px;
  left: var(--splash-x, calc(100% - 20px));
  top:  var(--splash-y, calc(100% - 20px));
  background: radial-gradient(circle, rgba(60, 120, 255, 0.28) 0%, rgba(60, 120, 255, 0.16) 34%, rgba(60, 120, 255, 0.05) 56%, transparent 72%);
}

.framework-card:nth-child(2)::before {
  width: 115px;
  height: 115px;
  left: var(--splash-x, 12.5px);
  top:  var(--splash-y, 12.5px);
  background: radial-gradient(circle, rgba(100, 80, 220, 0.28) 0%, rgba(100, 80, 220, 0.16) 34%, rgba(100, 80, 220, 0.05) 56%, transparent 72%);
}

.framework-card:nth-child(3)::before {
  width: 120px;
  height: 120px;
  left: var(--splash-x, calc(100% - 20px));
  top:  var(--splash-y, 20px);
  background: radial-gradient(circle, rgba(80, 230, 120, 0.26) 0%, rgba(80, 230, 120, 0.14) 34%, rgba(80, 230, 120, 0.05) 56%, transparent 72%);
}

.framework-card:nth-child(4)::before {
  width: 125px;
  height: 125px;
  left: var(--splash-x, 12.5px);
  top:  var(--splash-y, calc(100% - 12.5px));
  background: radial-gradient(circle, rgba(80, 230, 120, 0.26) 0%, rgba(80, 230, 120, 0.14) 34%, rgba(80, 230, 120, 0.05) 56%, transparent 72%);
}

.framework-card:nth-child(5)::before {
  width: 118px;
  height: 118px;
  left: var(--splash-x, calc(100% - 21px));
  top:  var(--splash-y, calc(100% - 21px));
  background: radial-gradient(circle, rgba(60, 120, 255, 0.28) 0%, rgba(60, 120, 255, 0.16) 34%, rgba(60, 120, 255, 0.05) 56%, transparent 72%);
}

.framework-card:nth-child(6)::before {
  width: 122px;
  height: 122px;
  left: var(--splash-x, 19px);
  top:  var(--splash-y, 19px);
  background: radial-gradient(circle, rgba(100, 80, 220, 0.28) 0%, rgba(100, 80, 220, 0.16) 34%, rgba(100, 80, 220, 0.05) 56%, transparent 72%);
}

/* Timeline items */
.timeline-item:nth-child(odd)::before {
  width: 160px;
  height: 160px;
  left: var(--splash-x, calc(100% - 20px));
  top:  var(--splash-y, 20px);
  background: radial-gradient(circle, rgba(60, 120, 255, 0.24) 0%, rgba(60, 120, 255, 0.14) 36%, rgba(60, 120, 255, 0.05) 58%, transparent 74%);
}

.timeline-item:nth-child(even)::before {
  width: 160px;
  height: 160px;
  left: var(--splash-x, 20px);
  top:  var(--splash-y, calc(100% - 20px));
  background: radial-gradient(circle, rgba(80, 230, 120, 0.24) 0%, rgba(80, 230, 120, 0.14) 36%, rgba(80, 230, 120, 0.05) 58%, transparent 74%);
}

.timeline-company {
  margin: 0.25rem 0 0.85rem;
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.hero-portrait img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.tag-row span,
.framework-card span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  border: 1px solid var(--accent-deep);
  background: rgba(255, 255, 255, 0.28);
  color: var(--accent-deep);
  transition: background 180ms ease, transform 180ms ease;
}

.tag-row span:hover,
.framework-card span:hover {
  background: rgba(255, 255, 255, 0.44);
  transform: translateY(-2px);
}

.hero-note {
  padding: 24px;
}

.hero-note h2 {
  max-width: 12ch;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.split-card {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 38px;
  padding: 24px;
  align-items: center;
}

.split-image {
  width: 100%;
}

.split-image img {
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(99, 72, 47, 0.14);
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  min-height: 100%;
  max-width: 62ch;
  padding-left: 18px;
}

.split-copy p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.85;
}

.split-copy p + p {
  margin-top: 20px;
}

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

.framework-card {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.framework-icon {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 18px rgba(99, 72, 47, 0.12));
}

.framework-icon-synapse {
  width: 70px;
  height: 70px;
}

.framework-icon-fabric {
  width: 62px;
  height: 62px;
}

.framework-icon-ssis {
  width: 135px;
  height: 82px;
  transform: translateY(2px);
}

.framework-icon-python {
  width: 60px;
  height: 60px;
}

.framework-icon-pyspark {
  width: 105px;
  height: 56px;
  transform: translateY(2px);
}

.framework-icon-mssql {
  width: 58px;
  height: 58px;
}

.framework-card:hover {
  transform: translateY(-2px);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: start;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: none;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  padding: 28px;
  align-items: center;
}

.contact-card h2 {
  max-width: none;
  font-size: clamp(1.8rem, 4.6vw, 2.8rem);
  line-height: 1.08;
}

.contact-actions {
  margin-top: 0;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 22px;
}

.timeline-meta p {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent-deep);
}

.timeline-content span {
  color: var(--muted);
  font-weight: 500;
}

.timeline-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.timeline-list li {
  color: var(--muted);
  line-height: 1.75;
}

.timeline-list li + li {
  margin-top: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

.project-card {
  padding: 24px;
}

.project-card {
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 107, 74, 0.35);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px 0;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1080px) {
  .hero,
  .project-grid,
  .contact-card,
  .timeline-item,
  .split-card {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .framework-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    border-radius: 30px;
    align-items: center;
    padding: 14px;
  }

  .menu-toggle {
    display: flex;
    align-self: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 250, 238, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  h2 {
    max-width: 100%;
  }

  .framework-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 42px 0;
  }

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

}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

/* Staggered entrance animations */
.visible .project-card,
.visible .timeline-item {
  animation: cardEnter 500ms ease both;
}

.visible .project-card:nth-child(2),
.visible .timeline-item:nth-child(2) { animation-delay: 100ms; }

.visible .project-card:nth-child(3),
.visible .timeline-item:nth-child(3) { animation-delay: 200ms; }

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