@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Outfit", sans-serif;
  scroll-behavior: smooth;
}

:root {
  --black: #000000;
  --dark-coffee: #13191e;
  --text-black: #333333;

  --ruby: #841a1a;
  --navy: #08273b;
  --orange: #ff611a;
  --pale-yellow: #d4bc6e;
  --manilla: #f4dbb3;

  --grey: #8a9396;
  --platinum: #d9dfe1;
  --white: #ffffff;

  --error-red: #fa3232;
  --success-green: #0ab171;
  --focus-blue: #10cce5;

  --cream: #f0e7d5;
  --blue: #055973;

  --blood: #a11800;
  --forest: #0b5e41;
  --yellow-orange: #fea425;

  --coral: #2e2d2b;

  --black: #000000;
  --off-black: #111111;

  --diamond: #f0f0f0;
  --glass: #f8f8f5;
}

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

section {
  padding-left: 70px;
}

@media (max-width: 600px) {
  section {
    padding-left: 0px;
  }
}

.section-container {
  position: relative;
  width: clamp(300px, 97.5%, 1400px);
  margin: 0 auto;
}

@media (max-width: 600px) {
  #site-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .modal-overlay,
  .modal-panel {
    transition: none !important;
  }

  /* Split text chars used by microinteraction.js */
  .modal-overlay .split-char,
  .modal-panel .split-char {
    display: inline-block;
    white-space: pre;
    will-change: transform, opacity;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Outfit", sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.outfit-100 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.outfit-200 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

.outfit-300 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.outfit-400 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.outfit-500 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.outfit-600 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.outfit-700 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.outfit-800 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

.outfit-900 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}

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

body {
  position: relative;
  overflow-x: hidden;
}

/* Navigation styles ==================*/
#site-nav {
  position: fixed;
  top: 50%;
  left: 0;
  margin-left: 10px;
  transform: translateY(-50%);
  background: var(--dark-coffee);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  height: 95vh;
  width: 60px;
  z-index: 9999;
  border-radius: 0.3rem;
  overflow: hidden;
}

@media (max-width: 600px) {
  #site-nav {
    display: none;
  }
}

#site-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

#site-nav ul li {
  list-style: none;
}

#site-nav ul li .home-logo {
  writing-mode: horizontal-tb;
  height: 50px;
  width: 50px;
  margin-top: 5px;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  background-color: var(--orange);
  transition: all 0.3s ease;
  border-radius: 0.2rem;
}

#site-nav ul li .home-logo:hover {
  font-size: 24px;
}

#site-nav ul li a {
  writing-mode: vertical-lr;
  color: var(--grey);
  background-color: var(--platinum);
  padding-inline: 10px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.2rem;
  font-weight: 600;
}

#site-nav ul li a span {
  height: 1px;
  color: var(--dark-coffee);
  overflow: hidden;
}

#site-nav .connect-btn {
  position: absolute;
  font-weight: 700;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  bottom: 5px;
  left: 5px;
  width: 50px;
  height: 50px;
  padding: 15px 0;
  border-radius: 0.2rem;
  border: none;
  writing-mode: vertical-lr;
  background-color: var(--platinum);
  color: var(--text-black);
  transition: all 0.25s ease;
}

#site-nav .connect-btn img {
  width: 30px;
  height: 30px;
  transform: translateY(5px);
}

#site-nav .connect-btn span {
  overflow: hidden;
  height: 0.01px;
  opacity: 0;
  transition: all 0.35s ease;
}

#site-nav .connect-btn:hover>span {
  height: auto;
  opacity: 1;
  margin-bottom: 10px;
}

#site-nav .connect-btn:hover {
  height: 135px;
}

/* MOBILE NAVIGATION STYLES ================== */

#mobile-nav {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(300px, 95%, 1000px);
  z-index: 9999;
  height: 60px;
  border-radius: 0.5rem;
  background-color: var(--dark-coffee);
}

#mobile-nav .home-logo {
  position: absolute;
  z-index: 9999;
  left: 5px;
  top: 5px;
  width: 50px;
  height: 50px;
  font-size: 20px;
  padding: 8px 10px;
  border-radius: 3px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--glass);
  background-color: var(--orange);
  color: var(--white);
  transition: all 0.2s ease;
}

#mobile-nav .home-logo:hover {
  color: var(--dark-coffee);
}

#mobile-nav ul {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  padding: 10px;
  margin-top: 70px;
  gap: 10px;
  border-radius: 0.5rem;
  opacity: 0;

  & li {
    list-style: none;
  }

  & a {
    display: inline-block;
    width: 100%;
    padding-block: 10px;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transition: all 0.2s ease;

    &:hover {
      background-color: var(--white);
      color: var(--dark-coffee);
    }
  }
}

.burger-menu {
  position: absolute;
  z-index: 9999;
  top: 20px;
  right: 10px;
  width: 35px;
  height: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  cursor: pointer;
}

.burger-menu:hover>.bottom-bar {
  width: 80%;
}

.burger-menu .bar {
  width: 100%;
  height: 2px;
  background-color: var(--platinum);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.burger-menu.open .top-bar {
  transform: rotate(45deg) translateY(5px) translateX(2.5px);
  width: 80%;
}

.burger-menu.open .bottom-bar {
  transform: rotate(-45deg) translateY(-6px) translateX(4px);
  width: 80%;
}

.burger-menu ul {
  position: absolute;
  z-index: 9998;
  top: 0;
  left: 0;
  background-color: var(--white);
  width: 100%;
  height: 100vw !important;
  border: solid 1px var(--grey);
  display: none;
  flex-direction: column;
}

@media (min-width: 601px) {
  #mobile-nav {
    display: none;
  }

  .mobile-contact-btn {
    display: none;
  }
}

/* Background-effect */
.background-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  column-gap: 1px;
  z-index: 2;

  & span {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    transition: all 0.2s ease;
    position: relative;
  }

  & span::after {
    content: "";
    position: absolute;
    right: -1px;
    display: block;
    width: 1px;
    height: 50px;
    background-image: linear-gradient(to bottom,
        transparent,
        var(--grey),
        transparent);
    animation-name: var(--rain-anim, rain);
    animation-duration: var(--rain-duration, 10s);
    animation-timing-function: linear;
    animation-delay: var(--rain-delay, 0s);
    animation-iteration-count: infinite;
    transition: all 0.2s ease;
  }
}

@keyframes rain {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(110vh);
  }
}

.background-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(8, 1fr);
  z-index: 1;
}

.background-effect {
  background: linear-gradient(270deg, #eceeef, #dcdfe4);
  background-size: 400% 400%;

  -webkit-animation: AnimationName 10s ease infinite;
  -moz-animation: AnimationName 10s ease infinite;
  animation: AnimationName 10s ease infinite;
}

@-webkit-keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@-moz-keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/*### LANDING SECTION #########################################*/
#section_landing {
  z-index: 10;
  min-height: 440px;
  height: 90vh;
  padding-block: 20px;
  position: relative;
}

@media (max-width: 600px) {
  #section_landing {
    padding-top: 60px;
  }
}

.landing-container {
  height: 100%;
  position: relative;
}

.name-header-container {
  position: relative;
  text-wrap: wrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  height: 100%;
}

.name-header-container .site-name {
  letter-spacing: 10px;
  color: var(--dark-coffee);
  font-weight: 800;
}

.name-header-container .landing-name h3 {
  font-weight: 400;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: var(--text-black);
}

.home-message {
  color: var(--text-black);
  margin-top: 40px;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  width: clamp(300px, 90%, 1000px);
}

@media (max-width: 1000px) {
  .landing-title h1 {
    font-size: 58px;
  }

  .home-message {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .landing-title h1 {
    font-size: 38px;
  }

  .home-message {
    font-size: 20px;
  }
}

@-webkit-keyframes hue {
  from {
    -webkit-filter: hue-rotate(0deg);
  }

  to {
    -webkit-filter: hue-rotate(-360deg);
  }
}

/* landing page buttons */
.landing-btns {
  display: flex;
  gap: 20px;
  margin-top: 40px;

  & button,
  a {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 0.5rem;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
}

@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

.primary-btn {
  background-color: var(--dark-coffee);
  color: var(--white);
  position: relative;

  &::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 108%;
    top: 50%;
    left: 50%;
    background-image: linear-gradient(var(--rotate),
        #ffc559,
        #ff6d24 43%,
        #e54206);
    z-index: -1;
    animation: spin 2.5s linear infinite;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    transform: scale(0.75) translate(-50%, -50%);
    opacity: 0;
  }

  &:hover::before {
    transform: scale(1.03) translate(-48.5%, -48.5%);
    opacity: 1;
  }

  &::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    transform: scale(0.75);
    filter: blur(5px);
    background-image: linear-gradient(var(--rotate),
        #ffc559,
        #ff6d24 43%,
        #e54206);
    opacity: 0;
    transition: opacity 0.5s;
    animation: spin 2.5s linear infinite;
  }

  &:hover::after {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }

  100% {
    --rotate: 360deg;
  }
}

.secondary-btn {
  background-color: var(--white);
  color: var(--dark-coffee);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
  transition: all 0.35s ease;
  border: solid 1px var(--platinum);
  position: relative;
  z-index: 1;

  &:hover {
    transform: scale(1.025) translateY(-3px);
  }
}

/*### ABOUT #########################################*/
#section_about {
  height: 100vh;
  position: relative;
  padding-bottom: 20px;
  z-index: 10;
}

.section-divider {
  position: absolute;
  width: 20px;
  height: 80%;
  background-color: var(--white);
  right: -20px;
  top: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-50%);

  & span {
    display: block;
    width: 100%;
    height: 20px;
    border-radius: 50vw 50vw 0 0;
    background-color: var(--dark-coffee);
  }

  & span:first-child {
    transform: rotate(180deg);
  }
}

.about-container {
  position: relative;
  height: 100%;

  & .about-title {
    font-size: 48px;
    font-weight: 700;
    margin-block: 40px;
    color: var(--manilla);
  }
}

.about-split {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.about-profile {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;

  & .profile-container {
    z-index: 1000;
    background-color: var(--white);
    padding: 20px;
    border-radius: 1rem;
    position: relative;
  }

  & .about-header {
    align-self: flex-start;
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 20px;
  }

  & img {
    width: 100px;
    height: auto;
    border-radius: 50vw;
    object-fit: cover;
    border: 4px solid var(--navy);
  }

  & .about-name {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--navy);
    margin-bottom: 8px;
  }

  & .about-position {
    font-size: 18px;
    color: var(--orange);
    font-weight: 400;
    margin-bottom: 4px;
  }

  & .pronouns {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-black);
  }

  & .description {
    font-size: 18px;
    color: var(--off-black);
    font-weight: 400;
    line-height: 1.6;
  }

  & .resume-download {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    margin-top: 40px;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 50vw;
    border: none;
    background-color: var(--navy);
    color: var(--cream);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  & .resume-download:hover {
    background-color: var(--yellow-orange);
    color: var(--white);
  }
}

.about-what {
  flex: 1;
  background-color: var(--white);
  padding: 20px;
  border-radius: 1rem;

  & .what-i-do_container {
    padding: 20px;
    background-color: var(--cream);
    border-radius: 1rem;
    margin-bottom: 60px;

    & h2 {
      color: var(--navy);
      font-weight: 800;
      padding-bottom: 20px;
    }

    & .about-snippet {
      color: var(--off-black);
      font-weight: 400;
      line-height: 1.6;
      margin-bottom: 0;
    }
  }

  & .subheader {
    margin-bottom: 40px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--off-black);
  }

  & .about-what_title {
    position: relative;
    line-height: 1.6;
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--orange);
  }

  & h4 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--off-black);
  }

  & .img-container {
    width: clamp(300px, 100%, 800px);
    height: 350px;
    position: relative;
    margin-block: 40px 60px;
  }

  & img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
    border: solid 1px var(--grey);
    margin-block: 40px 80px;
  }
}

.understanding {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-block: 40px;

  & li {
    list-style: none;
    color: var(--off-black);
    padding-left: 20px;
    font-size: 20px;
    font-weight: 500;
    position: relative;

    & span {
      color: var(--orange);
      font-weight: 800;
    }

    &::before {
      content: "";
      width: 3px;
      height: 100%;
      background-color: var(--orange);
      position: absolute;
      left: 0;
      top: 0;
    }
  }
}

/*### FEATURED (PROCESS) HORIZONTAL SCROLL #################*/
#section_featured {
  z-index: 10;
  height: 100vh;
  position: relative;
  overflow: hidden;
  /* Essential for pinning */
  background-color: var(--dark-coffee);
  color: var(--platinum);
}

.process-wrapper {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  width: 400%;
  /* 4 sections * 100% width */
}

.process-card {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.process-card h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 20px;
}

.process-card p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  max-width: 600px;
  text-align: center;
  color: var(--platinum);
  opacity: 0.8;
}

.process-number {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

/*### FILES #########################################*/
#section_files {
  z-index: 10;
  min-height: 100vh;
  padding-block: 20px;
  position: relative;
}

.files-container {
  position: relative;
}

.portfolio-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.project-visuals {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 10vh;
  /* align first image */
  padding-bottom: 10vh;
}

.image-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20vh;
  /* space between projects */
}

.project-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 90vh;
  /* fit within viewport minus padding */
  position: sticky;
  top: 20px;
  /* match section padding or nav offset */
  padding-inline: 40px;
}

.files-container .title-container {
  color: var(--white);
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .portfolio-wrapper {
    flex-direction: column-reverse;
  }

  .project-content {
    position: relative;
    height: auto;
    top: auto;
    margin-bottom: 40px;
    padding-inline: 0;
  }

  .project-visuals {
    padding-top: 0;
  }

  .image-wrapper {
    min-height: auto;
    margin-bottom: 60px;
  }
}

.project-information {
  width: clamp(300px, 100%, 600px);
  padding: 20px;
  height: auto;
  min-height: 175px;
  background-color: var(--dark-coffee);

  & .label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--orange);

    & .project-fill {
      color: var(--white);
      font-size: 18px;
      font-weight: 300;
    }

    & .name-fill {
      font-weight: 700;
      font-size: 24px;
    }

  }
}

.project-link-container {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* Ensure primary-btn works within this container */
.project-link-container .primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: var(--white);
  color: var(--dark-coffee);
  border: none;
  position: relative;
  z-index: 1;
}

.project-tools {
  font-size: 14px;
}

#section_files .tools-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;

  & li {
    list-style: none;
    padding: 3px 10px;
    background-color: rgba(255, 130, 58, 0.75);
    border: solid 1px var(--orange);
    color: var(--white);
    border-radius: 50vw;
    font-size: 12px;
    font-weight: 400;
  }
}

/*### FOOTER #########################################*/
.footer {
  position: relative;
  height: 200px;
  background-color: var(--platinum);
  margin-left: 50px;
  z-index: 10;
}

@media (max-width: 600px) {
  .footer {
    margin-left: 0;
  }
}

.footer_container {
  position: relative;
  width: clamp(300px, 97.5%, 1400px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer_container ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer_container ul a {
  text-decoration: underline;
}

/* SECTION BANNER */
.animated-banner {
  z-index: 1000;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  background-color: var(--manilla);
  border-radius: 50vw;

  & .marquee-1 {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-weight: 700;
    color: var(--navy);
    font-size: 14px;
    font-weight: 400;
  }

  & .marquee-2 {
    display: inline-block;
    animation-delay: 10s;
    animation: marquee 20s linear infinite;
    color: var(--navy);
    font-size: 14px;
    font-weight: 400;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Modal styles */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  /* toggled via JS */
  align-items: center;
  justify-content: center;
  z-index: 2147483650;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(3px);
  opacity: 0;
}

.modal-panel {
  position: relative;
  background: var(--white);
  color: var(--off-black);
  width: min(720px, 92vw);
  max-width: 720px;
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.98);
  opacity: 0;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.modal-panel h2 {
  margin: 0 0 12px 0;
}

.modal-panel form {
  display: grid;
  gap: 8px;
}

.modal-panel label {
  font-size: 13px;
  color: var(--grey);
}

.modal-panel input,
.modal-panel textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.modal-panel textarea {
  /* Prevent users from resizing the message box */
  resize: none;
  /* sensible default height with scroll when content overflows */
  min-height: 120px;
  max-height: 320px;
  overflow: auto;
}

/* Success toast inside modal */
.form-toast {
  position: absolute;
  right: 16px;
  top: 12px;
  background: var(--forest);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  pointer-events: none;
  z-index: 10;
}

.form-toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: transparent;
  cursor: pointer;
}

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

@media (prefers-reduced-motion: reduce) {

  .modal-overlay,
  .modal-panel {
    transition: none !important;
  }

  /* Split text chars used by microinteraction.js */
  .modal-overlay .split-char,
  .modal-panel .split-char {
    display: inline-block;
    white-space: pre;
    will-change: transform, opacity;
  }
}

@media (min-width: 1000px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 24px;
  }

  p {
    font-size: 18px;
    line-height: 1.6;
  }
}

@media (max-width: 999px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 20px;
  }

  p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  p {
    font-size: 14px;
  }
}