:root {
  color-scheme: light;
  --sand: #f4efe7;
  --ink: #101215;
  --moss: #c7f36b;
  --coral: #ff7f5c;
  --line: rgba(16, 18, 21, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(199, 243, 107, 0.28), transparent 28%),
    linear-gradient(180deg, #f4efe7 0%, #efe8dd 44%, #f7f2ea 100%);
}

.page-shell {
  position: relative;
  overflow: clip;
}

.hero-section {
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 34%),
    linear-gradient(125deg, rgba(16, 18, 21, 0.04), transparent 42%),
    radial-gradient(circle at 70% 30%, rgba(255, 127, 92, 0.18), transparent 22%);
  z-index: -4;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 18, 21, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 18, 21, 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
  z-index: -3;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.85;
  z-index: -2;
}

.hero-orb-one {
  right: 12%;
  top: 14%;
  height: 18rem;
  width: 18rem;
  background: rgba(199, 243, 107, 0.5);
}

.hero-orb-two {
  right: 4%;
  bottom: 8%;
  height: 12rem;
  width: 12rem;
  background: rgba(255, 127, 92, 0.32);
}

.hero-kicker {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(16, 18, 21, 0.56);
  animation: fadeUp 700ms ease-out both;
}

.hero-stack {
  display: grid;
  align-self: center;
  justify-items: end;
  gap: 0.85rem;
  animation: driftIn 900ms ease-out both 160ms;
}

.hero-note {
  max-width: 20rem;
  border-radius: 1.5rem;
  padding: 1.15rem;
  backdrop-filter: blur(14px);
}

.hero-note-dark {
  width: 100%;
  background:
    linear-gradient(135deg, rgba(16, 18, 21, 0.95), rgba(16, 18, 21, 0.82));
  box-shadow: 0 24px 80px rgba(16, 18, 21, 0.2);
}

.hero-note-light {
  width: 88%;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(16, 18, 21, 0.08);
  box-shadow: 0 24px 80px rgba(16, 18, 21, 0.08);
}

.work-section {
  display: grid;
}

.project {
  display: grid;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  gap: 2rem;
  align-items: center;
  padding: 3.25rem 1.5rem;
  border-top: 1px solid var(--line);
}

.project-copy {
  max-width: 32rem;
}

.project-index {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(16, 18, 21, 0.45);
}

.project-title {
  margin: 0.7rem 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-transform: uppercase;
}

.project-tagline {
  margin: 0.85rem 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.project-body {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(16, 18, 21, 0.7);
}

.project-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.project-points span {
  border: 1px solid rgba(16, 18, 21, 0.1);
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.38);
}

.project-visual {
  display: flex;
  justify-content: center;
}

.project-shot-wrap {
  position: relative;
  width: min(100%, 18.5rem);
  margin: 0;
  padding: 0.45rem;
  border-radius: 2rem;
  transform: rotate(-4deg);
  transition: transform 240ms ease;
}

.project-shot-wrap:hover {
  transform: rotate(-2deg) translateY(-4px);
}

.project-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.65rem;
  box-shadow: 0 30px 90px rgba(16, 18, 21, 0.18);
}

.project-shot-memole {
  background:
    radial-gradient(circle at top right, rgba(255, 147, 231, 0.34), transparent 36%),
    linear-gradient(180deg, rgba(78, 53, 145, 0.18), rgba(255, 255, 255, 0.14));
}

.project-shot-flowlocker {
  background:
    radial-gradient(circle at top left, rgba(255, 157, 62, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(16, 18, 21, 0.24), rgba(255, 255, 255, 0.08));
}

.project-shot-snaporie {
  background:
    radial-gradient(circle at top left, rgba(255, 176, 84, 0.3), transparent 36%),
    linear-gradient(180deg, rgba(244, 203, 170, 0.3), rgba(255, 255, 255, 0.12));
}

.device-shell {
  position: relative;
  width: min(100%, 18.75rem);
  aspect-ratio: 0.5;
  border-radius: 2.1rem;
  padding: 0.7rem;
  overflow: hidden;
  transform: rotate(-4deg);
  transition: transform 240ms ease;
  border: 1px solid rgba(16, 18, 21, 0.08);
}

.device-shell:hover {
  transform: rotate(-2deg) translateY(-4px);
}

.device-screen {
  height: 100%;
  border-radius: 1.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

.screen-label,
.screen-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.screen-pill {
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.screen-pill-dark {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.screen-pill-soft {
  background: rgba(255, 255, 255, 0.5);
}

.device-memole {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 220, 0.88)),
    linear-gradient(180deg, #fbf5ec, #efe3cc);
}

.device-memole .device-screen {
  background:
    radial-gradient(circle at top right, rgba(199, 243, 107, 0.45), transparent 26%),
    linear-gradient(180deg, #faf3ea, #f0e2cd);
}

.scan-frame {
  margin-top: 1.4rem;
  height: 8rem;
  border-radius: 1.35rem;
  border: 1px dashed rgba(32, 26, 19, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 242, 214, 0.55));
  position: relative;
}

.scan-frame::before,
.scan-frame::after {
  content: "";
  position: absolute;
  border: 3px solid rgba(32, 26, 19, 0.55);
  width: 1.5rem;
  height: 1.5rem;
}

.scan-frame::before {
  top: 1rem;
  left: 1rem;
  border-right: 0;
  border-bottom: 0;
}

.scan-frame::after {
  right: 1rem;
  bottom: 1rem;
  border-left: 0;
  border-top: 0;
}

.flashcard-stack {
  position: relative;
  margin-top: 1rem;
  height: 11rem;
}

.flashcard {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 9rem;
  border-radius: 1.4rem;
}

.flashcard-back {
  transform: translateY(1.1rem) rotate(-6deg);
  background: rgba(255, 255, 255, 0.55);
}

.flashcard-mid {
  transform: translateY(0.55rem) rotate(4deg);
  background: rgba(255, 247, 234, 0.88);
}

.flashcard-front {
  padding: 1rem;
  background: linear-gradient(180deg, #fffaf1, #f5ead7);
  box-shadow: 0 18px 30px rgba(90, 63, 24, 0.12);
}

.quiz-bar {
  margin-top: auto;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(32, 26, 19, 0.08);
  overflow: hidden;
}

.quiz-fill {
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffaf58, #c7f36b);
}

.device-flowlocker {
  background:
    radial-gradient(circle at top right, rgba(199, 243, 107, 0.14), transparent 24%),
    linear-gradient(180deg, #161a1f, #090b0e);
}

.device-flowlocker .device-screen {
  background:
    radial-gradient(circle at 50% 20%, rgba(199, 243, 107, 0.12), transparent 24%),
    linear-gradient(180deg, #181d23, #090b0e);
}

.device-flowlocker .screen-label {
  color: rgba(255, 255, 255, 0.78);
}

.focus-ring {
  width: 10.5rem;
  height: 10.5rem;
  border-radius: 999px;
  margin: 2rem auto 1.6rem;
  background:
    radial-gradient(circle closest-side, #0d1116 74%, transparent 76% 100%),
    conic-gradient(from 270deg, #c7f36b 0 78%, rgba(255, 255, 255, 0.12) 78% 100%);
  display: grid;
  place-items: center;
}

.focus-ring-inner {
  text-align: center;
}

.blocked-list {
  display: grid;
  gap: 0.6rem;
}

.blocked-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.85rem;
  font-weight: 700;
}

.penalty-card {
  margin-top: auto;
  border-radius: 1.25rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 127, 92, 0.2), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-snaporie {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 231, 220, 0.9)),
    linear-gradient(180deg, #fff7f0, #f3ddd0);
}

.device-snaporie .device-screen {
  background:
    radial-gradient(circle at top left, rgba(255, 127, 92, 0.22), transparent 22%),
    linear-gradient(180deg, #fff8f2, #f4ded1);
}

.macro-ring {
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  margin: 1.8rem auto 1.4rem;
  background:
    radial-gradient(circle closest-side, #fff6ee 73%, transparent 75% 100%),
    conic-gradient(from 260deg, #ff7f5c 0 84%, rgba(79, 52, 40, 0.1) 84% 100%);
  display: grid;
  place-items: center;
}

.macro-ring-inner {
  text-align: center;
}

.macro-bars {
  display: grid;
  gap: 0.8rem;
}

.macro-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(36, 20, 15, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.macro-track {
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(79, 52, 40, 0.08);
  overflow: hidden;
}

.macro-fill {
  height: 100%;
  border-radius: inherit;
}

.macro-protein {
  width: 78%;
  background: linear-gradient(90deg, #ff7f5c, #ffab8e);
}

.macro-fat {
  width: 54%;
  background: linear-gradient(90deg, #ffb85d, #ffd495);
}

.macro-carbs {
  width: 86%;
  background: linear-gradient(90deg, #d780ff, #f0b6ff);
}

.meal-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(79, 52, 40, 0.1);
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(36, 20, 15, 0.8);
}

.approach-block {
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 18, 21, 0.1);
}

.approach-index {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(16, 18, 21, 0.45);
}

.approach-title {
  margin: 0.9rem 0 0;
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.approach-body {
  margin: 0.9rem 0 0;
  line-height: 1.8;
  color: rgba(16, 18, 21, 0.7);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes driftIn {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(2deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@media (min-width: 960px) {
  .project {
    grid-template-columns: minmax(0, 1fr) 300px;
    padding: 3.5rem 1.75rem;
  }

  .project-flowlocker {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .project-flowlocker .project-copy {
    order: 2;
    justify-self: end;
  }

  .project-flowlocker .project-visual {
    order: 1;
  }
}

@media (min-width: 1280px) {
  .project {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 959px) {
  .hero-stack {
    justify-items: start;
  }

  .hero-note-light {
    width: 100%;
  }

  .project {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .project-copy,
  .project-body {
    max-width: none;
  }

  .project-visual {
    margin-top: 0.5rem;
  }

  .project-shot-wrap {
    transform: none;
  }

  .project-shot-wrap:hover {
    transform: translateY(-2px);
  }

  .device-shell {
    transform: none;
  }

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

@media (max-width: 820px) {
  .project {
    gap: 1.35rem;
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
  }

  .project-title {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .project-tagline {
    font-size: 1rem;
  }

  .project-body {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .project-points {
    gap: 0.55rem;
    margin-top: 1.1rem;
  }

  .project-points span {
    padding: 0.62rem 0.8rem;
    font-size: 0.72rem;
  }

  .project-shot-wrap {
    width: min(100%, 15.5rem);
    border-radius: 1.7rem;
  }

  .project-shot {
    border-radius: 1.4rem;
  }

  .device-shell {
    width: min(100%, 15.5rem);
    border-radius: 1.8rem;
    padding: 0.58rem;
  }

  .device-screen {
    border-radius: 1.45rem;
    padding: 0.85rem;
  }
}

@media (max-width: 640px) {
  .hero-grid {
    background-size: 72px 72px;
  }

  .hero-note,
  .hero-note-light {
    max-width: none;
    width: 100%;
  }

  .project {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .project-points {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-points span {
    width: auto;
    text-align: left;
  }

  .project-shot-wrap {
    width: min(100%, 14rem);
  }

  .device-shell {
    width: min(100%, 14rem);
  }

  .project-visual {
    margin-top: 0.25rem;
  }
}

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

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