:root {
  --ink: #14181c;
  --ink-soft: #2a3238;
  --paper: #f3efe6;
  --paper-deep: #e7e0d2;
  --fog: #d8d2c4;
  --accent: #0f6b5c;
  --accent-deep: #0a4f44;
  --highlight: #c4a35a;
  --white: #fffaf3;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #efe6d4 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #dde8e4 0%, transparent 45%),
    var(--paper);
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) both;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 24, 28, 0.25) 0%, rgba(20, 24, 28, 0.72) 55%, rgba(20, 24, 28, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 24, 28, 0.55) 0%, rgba(20, 24, 28, 0.15) 60%, rgba(15, 107, 92, 0.2) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
  animation: rise 900ms var(--ease) both;
}

.brand {
  margin: 0 0 1rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 250, 243, 0.88);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-family: "Figtree", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 200ms var(--ease),
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    color 200ms var(--ease);
}

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

.btn:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  border-color: rgba(255, 250, 243, 0.45);
  background: rgba(20, 24, 28, 0.2);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: rgba(255, 250, 243, 0.8);
  background: rgba(20, 24, 28, 0.35);
}

.work {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

.work-intro {
  max-width: 36rem;
  margin-bottom: 2.25rem;
  animation: rise 900ms var(--ease) 120ms both;
}

.work-intro h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.work-intro p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.project-list {
  display: grid;
  gap: 0.85rem;
}

.project {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1.1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--fog) 80%, var(--ink) 20%);
  border-radius: 0.4rem;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(231, 224, 210, 0.75));
  text-decoration: none;
  transition:
    border-color 220ms var(--ease),
    transform 220ms var(--ease),
    background 220ms var(--ease);
  animation: rise 800ms var(--ease) both;
}

.project:nth-child(1) {
  animation-delay: 160ms;
}
.project:nth-child(2) {
  animation-delay: 220ms;
}
.project:nth-child(3) {
  animation-delay: 280ms;
}
.project:nth-child(4) {
  animation-delay: 340ms;
}
.project:nth-child(5) {
  animation-delay: 400ms;
}
.project:nth-child(6) {
  animation-delay: 460ms;
}

a.project:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.98), rgba(221, 232, 228, 0.9));
}

a.project:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-static {
  cursor: default;
}

.project-index {
  font-family: "Syne", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
}

.project-body {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.project-name {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.project-meta {
  grid-column: 2;
  color: color-mix(in srgb, var(--ink-soft) 75%, var(--accent) 25%);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer {
  border-top: 1px solid var(--fog);
  background: color-mix(in srgb, var(--paper-deep) 70%, #c9d7d2 30%);
}

.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0 2.4rem;
}

.footer-brand {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-note {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-note a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.footer-note a:hover {
  color: var(--accent-deep);
}

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

@keyframes hero-drift {
  from {
    transform: scale(1.1) translate3d(0, 1.5%, 0);
  }
  to {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
}

@media (min-width: 760px) {
  .project {
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    padding: 1.3rem 1.4rem;
  }

  .project-meta {
    grid-column: auto;
    justify-self: end;
    text-align: right;
    max-width: 11rem;
  }
}

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

  .hero-media img,
  .hero-inner,
  .work-intro,
  .project {
    animation: none !important;
  }

  .btn:hover,
  .project:hover {
    transform: none;
  }
}
