:root {
  --alicia-color-background: #FFFDDA;
  --alicia-color-text: #1130B3;
  --alicia-color-accent: #1130B3;
  --space-xs: 3px;
  --space-sm: 9px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 120px;
  --space-column: 32px;
  --space-divider: 64px;
  --container-max-width: 1280px;
}

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

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

body {
  margin: 0;
  background-color: var(--alicia-color-background);
  color: var(--alicia-color-text);
  font-family: "Apfel Grotezk", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  padding: var(--space-md);
  position: relative;
  min-height: 100vh;
}

.alicia-app {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--space-lg);
  padding-top: calc(var(--space-xl) * 0.75);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.project-grid,
.sub-project-grid {
  display: grid;
  grid-template-columns: clamp(240px, 33%, 420px) minmax(0, 1fr);
  column-gap: var(--space-column);
  row-gap: var(--space-md);
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(32px, 5vw, 56px);
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.project-text {
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.project-text h2,
.project-text h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.project-text p {
  margin: 0;
}

.media-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-headline {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  flex-wrap: nowrap;
}

.hero-headshot {
  width: 186px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--alicia-color-accent);
  margin-left: 60px;
  align-self: flex-start;
  flex-shrink: 0;
}

.hero-title-block {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 32px);
  flex: 0 1 auto;
  width: fit-content;
  max-width: 760px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 400;
  color: var(--alicia-color-accent);
  margin: 0;
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.05;
  text-align: left;
}
.hero-title-line {
  display: block;
}
.hero-title-line--greeting {
  white-space: nowrap;
}
.hero-title-line--name {
  white-space: nowrap;
}
.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--alicia-color-accent);
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hero-body {
  font-size: 1.2rem;
  line-height: 1.65;
  font-weight: 400;
  margin: 0;
  color: var(--alicia-color-text);
  max-width: 100%;
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
}
.project-link {
  color: var(--alicia-color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-link::after {
  display: none;
}
.hero-body-link {
  font-size: 1.2rem;
  color: var(--alicia-color-accent);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: static;
}
.hero-body-link::after {
  display: none;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
  width: 100%;
  align-items: flex-start;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(8px, 2vw, 16px);
  flex-wrap: wrap;
}
.hero-scroll-container {
  display: flex;
  justify-content: center;
  margin: 0 0 2px;
}
.hero-scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--alicia-color-accent);
  opacity: 0.8;
  font-weight: 700;
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: opacity 0.2s ease;
}
.hero-scroll-indicator::after {
  display: none;
}
.hero-scroll-indicator:hover {
  opacity: 1;
}
.hero-scroll-label {
  pointer-events: none;
}
.hero-scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--alicia-color-accent);
  border-bottom: 2px solid var(--alicia-color-accent);
  transform: rotate(45deg);
}

@keyframes heroScrollArrow {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(4px, 4px);
  }
}
.hero-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  position: relative;
}
.hero-link::after {
  display: none !important;
}

.hero-link--pill {
  padding: 5px 24px;
  border: 2px solid var(--alicia-color-accent);
  border-radius: 999px;
  background-color: transparent;
  gap: 0;
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--alicia-color-accent);
  box-shadow: 3px 3px 0 0 #1130B3;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hero-link--pill::after {
  display: none;
}
.hero-link--pill:hover::after,
.hero-link--pill:focus-visible::after,
.hero-link--pill:active::after {
  display: none;
}
.hero-link--pill:hover,
.hero-link--pill:focus-visible {
  box-shadow: 3px 3px 0 0 #1130B3;
  color: var(--alicia-color-accent);
}
.hero-link--pill:active {
  box-shadow: 1px 1px 0 0 #1130B3;
  transform: translate(0, 0);
}
.hero-link--pill .hero-link-label {
  font-size: 0.80rem;
  color: inherit;
  font-weight: 500;
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.media-card {
  display: block;
  border-radius: 6px;
  border: 2px solid #1130B3;
  padding: 12px;
  box-shadow: 3px 3px 0 0 #1130B3;
}

.media-card img,
.media-card video {
  border-radius: 6px;
  outline: 2px solid #1130B3;
  outline-offset: -2px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  background-color: transparent;
  color: #1130B3;
  border: 1px solid #1130B3;
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}

.sub-project {
  margin-top: 32px;
}

.section-divider {
  margin: 0;
  height: 1px;
  background-color: var(--alicia-color-accent);
  border: none;
}

.testimonials {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.testimonial {
  margin: 0;
  padding: 0;
}

.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--alicia-color-text);
  font-style: italic;
  margin: 0 0 20px 0;
}

.testimonial-cite {
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 500;
  color: var(--alicia-color-text);
  letter-spacing: 0.02em;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 24px;
  color: rgba(27, 27, 27, 0.65);
  text-align: center;
}

a {
  position: relative;
  color: var(--alicia-color-accent);
}

a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  transform-origin: bottom right;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--alicia-color-accent);
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@media (max-width: 768px) {
  .hero-grid {
    align-items: center;
    gap: clamp(20px, 6vw, 32px);
    text-align: center;
  }
  .hero-headline {
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 3vw, 16px);
  }
  .hero-headshot {
    order: 1;
    margin-right: 0;
    margin-left: 0;
    align-self: center;
    width: 96px;
  }
  .hero-title-block {
    align-items: center;
    flex: none;
    width: 100%;
    text-align: center;
    gap: clamp(8px, 4vw, 16px);
  }
  .hero-title,
  .hero-subtitle {
    align-self: center;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(2.8rem, 9vw, 3.4rem);
  }
  .hero-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.05rem);
  }
  .hero-title-line--greeting,
  .hero-title-line--name {
    white-space: normal;
  }
  .hero-content {
    align-items: center;
    text-align: center;
    gap: clamp(20px, 6vw, 32px);
  }
  .hero-body,
  .hero-body-link {
    font-size: clamp(1rem, 4vw, 1.1rem);
    text-align: center;
    max-width: 32ch;
  }
  .hero-links {
    justify-content: center;
  }
  .project-grid,
  .sub-project-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .project-text {
    max-width: none;
    position: static;
    top: 0;
    text-align: left;
  }
  .sub-project {
    margin-top: var(--space-lg);
  }
  .project-media {
    gap: var(--space-md);
  }
}
