:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --ink: #191217;
  --muted: #6f5d66;
  --soft: #ffe5ef;
  --rose-100: #ffd8e7;
  --rose-300: #f5a3c4;
  --rose-500: #db4d86;
  --rose-700: #9e1f55;
  --plum: #2a1423;
  --mint: #31b7aa;
  --line: #f0c8d9;
  --shadow: 0 22px 70px rgba(91, 24, 55, 0.14);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(158, 31, 85, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 31, 85, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(49, 183, 170, 0.55);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 56px);
  color: var(--ink);
  background: rgba(255, 247, 251, 0.84);
  border-bottom: 1px solid rgba(240, 200, 217, 0.62);
  backdrop-filter: blur(18px);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 46px rgba(91, 24, 55, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--surface);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--rose-300);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 9px 13px;
  color: var(--muted);
  border-radius: 8px;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: calc(84svh - 76px);
  overflow: hidden;
  color: var(--surface);
  background: var(--plum);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(42, 20, 35, 0.98) 0%, rgba(42, 20, 35, 0.9) 42%, rgba(42, 20, 35, 0.48) 68%, rgba(42, 20, 35, 0.16) 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 110px,
      rgba(255, 216, 231, 0.08) 110px,
      rgba(255, 216, 231, 0.08) 111px
    );
  opacity: 0.9;
}

.hero-photo {
  position: absolute;
  top: 50%;
  right: clamp(18px, 10vw, 140px);
  z-index: 0;
  width: auto;
  max-width: min(38vw, 430px);
  height: 84%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-50%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 10vh, 112px) 0 clamp(62px, 8vh, 96px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--rose-700);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--rose-100);
}

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 7.2vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.hero-actions,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.contact-list a,
.contact-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 720;
}

.button svg,
.contact-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.lucide {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.button-primary {
  color: var(--plum);
  background: var(--rose-100);
}

.button-primary:hover {
  background: var(--surface);
}

.button-secondary {
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  border-color: var(--rose-100);
  background: rgba(255, 255, 255, 0.14);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 231, 0.24);
  border-radius: 8px;
  background: rgba(255, 216, 231, 0.2);
}

.hero-proof div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-proof strong {
  margin-bottom: 3px;
  color: var(--surface);
  font-size: 1rem;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.profile.section {
  padding-top: 42px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 44px;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

.section-heading h2,
.project-copy h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.18rem;
}

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

.focus-list article,
.timeline-item,
.skill-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(91, 24, 55, 0.07);
}

.focus-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px;
}

.focus-list article p {
  grid-column: 2;
}

.focus-list span {
  color: var(--rose-700);
  font-weight: 820;
}

.focus-list h3,
.timeline-item h3,
.skill-card h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.focus-list p,
.timeline-item p,
.skill-card p,
.project-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  padding: 24px;
}

.timeline-item time {
  color: var(--rose-700);
  font-weight: 780;
}

.project-band {
  background: var(--plum);
  color: var(--surface);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 64px;
  align-items: center;
}

.project-copy .section-kicker {
  color: var(--rose-100);
}

.project-copy p {
  max-width: 650px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.thermostat {
  padding: 26px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #ffe8f2 64%, #dffbf7 100%);
  box-shadow: var(--shadow);
}

.thermostat-top,
.thermostat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
}

.status {
  color: #177f75;
}

.temperature {
  display: flex;
  align-items: flex-start;
  margin: 30px 0 24px;
  font-size: 5.4rem;
  font-weight: 820;
  line-height: 1;
}

.temperature span {
  margin-top: 9px;
  color: var(--rose-700);
  font-size: 1.3rem;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 68px;
  margin-top: 24px;
  align-items: end;
}

.signal-bars span {
  display: block;
  border-radius: 8px 8px 2px 2px;
  background: var(--mint);
}

.signal-bars span:nth-child(1) {
  height: 38%;
}

.signal-bars span:nth-child(2) {
  height: 58%;
}

.signal-bars span:nth-child(3) {
  height: 82%;
  background: var(--rose-500);
}

.signal-bars span:nth-child(4) {
  height: 48%;
}

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

.skill-card {
  min-height: 150px;
  padding: 22px;
}

.contact-band {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 48px;
  align-items: start;
}

.contact-list {
  justify-content: flex-start;
}

.contact-list a,
.contact-list span {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--line);
}

.contact-list a:hover {
  border-color: var(--rose-300);
  background: var(--soft);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 56px);
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--rose-700);
  font-weight: 740;
}

@media (max-width: 900px) {
  [id] {
    scroll-margin-top: 152px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: auto;
  }

  .hero {
    min-height: 68svh;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(42, 20, 35, 0.97) 0%, rgba(42, 20, 35, 0.86) 54%, rgba(42, 20, 35, 0.58) 100%);
  }

  .hero-photo {
    top: auto;
    right: -18px;
    bottom: 0;
    max-width: none;
    height: 64%;
    transform: none;
  }

  h1 {
    font-size: 4rem;
  }

  .section-heading,
  .profile-grid,
  .project,
  .contact {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .hero-proof {
    display: none;
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    font-size: 0.95rem;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    padding-inline: 10px;
    font-size: 0.92rem;
  }

  .hero-inner {
    width: min(100% - 28px, var(--max));
    padding: 54px 0 46px;
  }

  .hero {
    min-height: 64svh;
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .button {
    width: 100%;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof div,
  .focus-list article,
  .timeline-item,
  .skill-card {
    padding: 18px;
  }

  .focus-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .focus-list article p {
    grid-column: auto;
  }

  .section {
    width: min(100% - 28px, var(--max));
    padding: 72px 0;
  }

  .profile.section {
    padding-top: 34px;
  }

  .temperature {
    font-size: 4.2rem;
  }

  .contact-list a,
  .contact-list span {
    width: 100%;
    justify-content: flex-start;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
