:root {
  --paper: #f1eee7;
  --paper-deep: #e8e3d9;
  --ink: #27241f;
  --muted: #70695f;
  --accent: #d45432;
  --rule: rgba(39, 36, 31, 0.24);
  --pointer-x: 50%;
  --pointer-y: 42%;
  --tilt-x: 0;
  --tilt-y: 0;
  --flow-angle: 210deg;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.55), transparent 30rem),
    linear-gradient(135deg, var(--paper) 0%, var(--paper-deep) 145%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -18vmax;
  pointer-events: none;
  transition: opacity 240ms ease;
  will-change: transform;
}

body::before {
  z-index: -2;
  transform: translate3d(calc(var(--tilt-x) * 1.6rem), calc(var(--tilt-y) * 1.6rem), 0);
}

body::after {
  z-index: -1;
  transform: translate3d(calc(var(--tilt-x) * -0.9rem), calc(var(--tilt-y) * -0.9rem), 0);
}

.variant-soft::before {
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.72), transparent 24rem),
    radial-gradient(circle at calc(100% - var(--pointer-x)) calc(100% - var(--pointer-y)), rgba(212, 84, 50, 0.14), transparent 22rem);
}

.variant-soft::after {
  opacity: 0.16;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.82) 48%, transparent 53% 100%);
}

.variant-kinetic::before {
  background:
    radial-gradient(ellipse at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.78), transparent 23rem),
    radial-gradient(ellipse at calc(100% - var(--pointer-x)) calc(100% - var(--pointer-y)), rgba(212, 84, 50, 0.2), transparent 25rem),
    radial-gradient(ellipse at 82% 78%, rgba(39, 36, 31, 0.06), transparent 26rem);
}

.variant-kinetic::after {
  opacity: 0.2;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.78) 43%, rgba(212, 84, 50, 0.12) 48%, transparent 54% 100%);
}

.variant-flow::before {
  opacity: 0.75;
  background:
    conic-gradient(from var(--flow-angle) at var(--pointer-x) var(--pointer-y), rgba(212, 84, 50, 0.2), rgba(255, 255, 255, 0.7), rgba(39, 36, 31, 0.08), rgba(212, 84, 50, 0.15));
  filter: blur(16px) saturate(1.04);
}

.variant-flow::after {
  opacity: 0.13;
  background-image: radial-gradient(rgba(39, 36, 31, 0.34) 0.7px, transparent 0.8px);
  background-size: 1rem 1rem;
}

a {
  color: inherit;
}

.card {
  position: relative;
  z-index: 1;
  width: min(100%, 120rem);
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(20rem, 1fr) auto auto;
  padding: clamp(1.5rem, 4vw, 4.5rem);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.identity {
  align-self: center;
  padding-block: clamp(3.5rem, 9vh, 8rem);
}

.accent {
  display: block;
  width: 3rem;
  height: 0.2rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--accent);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 11.5vw, 10.5rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.068em;
}

.role {
  margin: clamp(2rem, 4vw, 3.2rem) 0 0;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.45;
}

.project {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}

.project-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.project strong {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 600;
}

.project-arrow {
  color: var(--accent);
  font-size: 1.35rem;
  transition: transform 180ms ease;
}

.project:hover .project-arrow {
  transform: translate(0.18rem, -0.18rem);
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.75rem;
  padding-top: 1.3rem;
}

.contacts a {
  min-height: 1em;
  font-size: 0.88rem;
  text-decoration-color: transparent;
  text-underline-offset: 0.32em;
  transition: text-decoration-color 180ms ease;
}

.contacts a:hover {
  text-decoration-color: var(--accent);
}

a:focus-visible {
  border-radius: 0.1rem;
  outline: 2px solid var(--accent);
  outline-offset: 0.4rem;
}

.card > * {
  animation: enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card > :nth-child(2) {
  animation-delay: 80ms;
}

.card > :nth-child(3) {
  animation-delay: 160ms;
}

.card > :nth-child(4) {
  animation-delay: 240ms;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
}

@media (max-width: 600px) {
  .card {
    grid-template-rows: auto minmax(24rem, 1fr) auto auto;
    padding: 1.5rem;
  }

  .identity {
    padding-block: 3.25rem;
  }

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

  .project strong {
    grid-column: 1;
  }

  .project-arrow {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .contacts {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card > * {
    animation: none;
  }

  .project-arrow,
  .contacts a {
    transition: none;
  }

  body::before,
  body::after {
    transform: none;
    transition: none;
    will-change: auto;
  }
}
