:root {
  --site-accent: #8bc4bd;
  --site-text-muted: #c1c5c8;
  --site-border: rgba(215, 226, 224, 0.28);
  --site-border-hover: rgba(139, 196, 189, 0.72);
}

.section-divider {
  position: relative;
  z-index: 5;
  height: 0;
  pointer-events: none;
}

.section-divider::before,
.section-divider::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(32rem, 76vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 196, 189, 0.65), rgba(214, 183, 156, 0.5), transparent);
  content: "";
  transform: translateX(-50%);
}

.section-divider::after {
  filter: blur(5px);
  opacity: 0.72;
}

.site-scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1100;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #6ea69f, #b6dfd5 55%, #f0d7b4);
  box-shadow: 0 0 14px rgba(139, 196, 189, 0.45);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.site-cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 1010;
  background:
    radial-gradient(460px circle at var(--site-pointer-x, -1000px) var(--site-pointer-y, -1000px), rgba(139, 196, 189, 0.13), transparent 68%),
    radial-gradient(260px circle at var(--site-pointer-x, -1000px) var(--site-pointer-y, -1000px), rgba(222, 194, 164, 0.055), transparent 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

.site-cursor-glow.is-active {
  opacity: 1;
}

.site-back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1020;
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  appearance: none;
  border: 1px solid rgba(139, 196, 189, 0.56);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(42, 64, 62, 0.96), rgba(22, 27, 29, 0.96)) !important;
  color: #d7eee7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0.6rem 1.8rem rgba(0, 0, 0, 0.3), 0 0 1.2rem rgba(139, 196, 189, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.65rem);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-back-to-top:hover {
  border-color: rgba(177, 225, 214, 0.82);
  background: linear-gradient(145deg, rgba(67, 103, 97, 0.98), rgba(35, 54, 53, 0.98)) !important;
  color: #f0f7f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0.8rem 2rem rgba(0, 0, 0, 0.34), 0 0 1.5rem rgba(139, 196, 189, 0.23);
}

.site-back-to-top:focus-visible {
  outline: 3px solid rgba(139, 196, 189, 0.72);
  outline-offset: 3px;
}

.site-has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.65s ease var(--reveal-delay, 0ms), transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.site-has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-padding-top: 5rem;
}

body {
  overflow-x: clip;
  background: #101113;
  transition: background-color 0.7s ease;
}

#mainNav {
  min-height: 5rem;
  padding: 0.4rem 0;
  background: rgba(13, 14, 16, 0.72);
  transition: background-color 0.45s ease, box-shadow 0.45s ease, backdrop-filter 0.45s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#mainNav .container {
  align-items: center;
}

#mainNav .navbar-brand {
  margin: 0;
  padding: 0.25rem 0;
}

#mainNav .navbar-brand img {
  display: block;
  width: auto;
  max-width: min(58vw, 250px);
  height: auto;
  max-height: 3.75rem;
  object-fit: contain;
}

#mainNav .navbar-toggler {
  color: #fff;
  background-color: transparent !important;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#mainNav .navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--site-border-hover);
}

#mainNav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(139, 196, 189, 0.25);
}

#mainNav .nav-link {
  position: relative;
  isolation: isolate;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease, transform 0.25s ease;
}

#mainNav .nav-link::before,
#mainNav .nav-link::after {
  position: absolute;
  pointer-events: none;
}

#mainNav .nav-link::before {
  top: 0.72rem;
  left: 50%;
  color: #d6b79c;
  content: "✦";
  font-size: 0.55rem;
  opacity: 0;
  transform: translate(-50%, 0.25rem) scale(0.7);
  transition: opacity 0.25s ease, transform 0.3s ease;
}

#mainNav .nav-link::after {
  content: "";
  right: 0.85rem;
  bottom: 0.9rem;
  left: 0.85rem;
  height: 4px;
  background: linear-gradient(90deg, rgba(139, 196, 189, 0.95), rgba(214, 183, 156, 0.95));
  clip-path: polygon(0 60%, 14% 34%, 32% 56%, 48% 24%, 65% 52%, 83% 32%, 100% 48%, 99% 78%, 80% 61%, 64% 82%, 47% 56%, 29% 87%, 14% 61%, 1% 88%);
  opacity: 0;
  transform: scaleX(0.15) rotate(-1deg);
  transform-origin: left center;
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus-visible {
  color: var(--site-accent);
}

#mainNav .nav-link:hover::before,
#mainNav .nav-link:focus-visible::before,
#mainNav .nav-link.is-current::before {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link:focus-visible::after,
#mainNav .nav-link.is-current::after {
  opacity: 0.9;
  transform: scaleX(1) rotate(-1deg);
}

#mainNav .nav-link.is-current {
  color: #dcebe6;
}

#mainNav .nav-link:focus-visible {
  outline: 2px solid rgba(139, 196, 189, 0.65);
  outline-offset: 3px;
}

.masthead {
  position: relative;
  isolation: isolate;
  display: flex;
  height: 100svh;
  min-height: 42rem;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background-position: center;
  background-image: linear-gradient(to bottom, rgba(16, 17, 19, 0.12) 0%, rgba(16, 17, 19, 0.22) 70%, #101113 100%), url("../assets/img/ban1-optimized.webp");
  background-color: #101113;
}

.masthead::before,
.masthead::after,
.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.masthead::before {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(95, 155, 147, 0.2), transparent 42%),
    linear-gradient(115deg, rgba(9, 14, 17, 0.2), transparent 52%, rgba(20, 26, 25, 0.28));
}

.masthead::after {
  z-index: 0;
  background: radial-gradient(560px circle at var(--hero-pointer-x, 50%) var(--hero-pointer-y, 45%), rgba(180, 226, 214, 0.18), transparent 68%);
  opacity: 0.82;
  transition: opacity 0.5s ease;
}

.masthead:not(:hover)::after {
  opacity: 0.38;
}

.hero-atmosphere {
  z-index: 0;
  background:
    radial-gradient(ellipse at 18% 72%, rgba(192, 144, 112, 0.15), transparent 30%),
    radial-gradient(ellipse at 82% 28%, rgba(110, 166, 159, 0.2), transparent 34%);
  mix-blend-mode: screen;
  animation: hero-aurora 14s ease-in-out infinite alternate;
}

.masthead > .container {
  position: relative;
  z-index: 1;
}

.masthead > .container {
  min-height: 0;
}

.hero-copy {
  position: relative;
  width: min(100%, 68rem);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.25rem);
  border: 1px solid rgba(226, 240, 235, 0.17);
  border-radius: clamp(1.5rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, rgba(20, 24, 25, 0.34), rgba(20, 24, 25, 0.08) 58%, rgba(20, 24, 25, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2rem 6rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.hero-copy::before {
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(209, 233, 223, 0.58), transparent 28%, transparent 65%, rgba(199, 157, 125, 0.48));
  content: "";
  opacity: 0.7;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero-eyebrow {
  margin: 0 auto clamp(1.25rem, 3vw, 2.25rem);
  color: #d7e8e1;
  font-size: clamp(0.65rem, 1.1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: clamp(0.16em, 0.6vw, 0.3em);
  text-transform: uppercase;
}

.hero-eyebrow span {
  padding: 0 0.4em;
  color: #d6b79c;
}

.hero-subtitle {
  margin-bottom: 1rem !important;
}

.masthead .hero-subtitle {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.6vw, 1.2rem);
  white-space: nowrap;
}

.hero-subtitle-copy {
  flex: 0 0 auto;
}

.subtitle-flourish {
  display: block;
  width: clamp(1.7rem, 4vw, 3.2rem);
  height: auto;
  flex: 0 1 3.2rem;
  overflow: visible;
}

.subtitle-flourish path {
  fill: none;
  stroke: rgba(245, 246, 242, 0.72);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 3px rgba(245, 246, 242, 0.18));
  animation: subtitle-flourish-loop 5.2s ease-in-out infinite;
}

.subtitle-flourish-right path {
  animation-delay: 0.16s;
}

@keyframes subtitle-flourish-loop {
  0%, 8% { stroke-dashoffset: 1; opacity: 0; }
  13% { opacity: 1; }
  34%, 76% { stroke-dashoffset: 0; opacity: 1; }
  92%, 100% { stroke-dashoffset: 1; opacity: 0; }
}

.masthead .hero-title {
  max-width: 15ch;
  background: linear-gradient(110deg, rgba(247, 222, 201, 0.78) 0%, rgba(223, 239, 230, 0.68) 26%, rgba(180, 222, 211, 0.74) 52%, rgba(243, 224, 203, 0.68) 78%, rgba(247, 222, 201, 0.78) 100%);
  background-size: 180% 100%;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.5rem, 7.5vw, 6.65rem);
  line-height: 1.08;
  letter-spacing: clamp(0.08em, 1vw, 0.18em);
  text-wrap: balance;
  -webkit-background-clip: text;
  opacity: 0.68;
  filter: drop-shadow(0 5px 25px rgba(0, 0, 0, 0.3));
  animation: hero-title-flow 16s ease-in-out infinite alternate;
}

.masthead .hero-subtitle {
  margin-inline: auto;
  color: rgba(245, 246, 242, 0.86) !important;
  font-size: clamp(1rem, 2vw, 1.28rem);
  letter-spacing: 0.18em;
}

.masthead .hero-subtitle-copy > span {
  padding: 0 0.35em;
  color: #d6b79c;
}

.masthead .btn {
  position: relative;
  overflow: hidden;
  border-color: rgba(214, 232, 224, 0.55);
  background: rgba(20, 25, 25, 0.48) !important;
  box-shadow: 0 0 0 5px rgba(214, 232, 224, 0.045), 0 0 34px rgba(139, 196, 189, 0.17) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.masthead .btn::after {
  display: inline-block;
  margin-left: 0.65rem;
  content: "\2197";
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.masthead .btn:hover::after {
  transform: translate(2px, -2px);
}

.hero-scroll-hint {
  position: absolute;
  right: 0;
  bottom: clamp(-5.4rem, -7vw, -4rem);
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: rgba(237, 241, 238, 0.74);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll-hint > span {
  position: relative;
  width: 1rem;
  height: 1.55rem;
  border: 1px solid rgba(220, 236, 229, 0.62);
  border-radius: 999px;
}

.hero-scroll-hint > span::after {
  position: absolute;
  top: 0.25rem;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d6b79c;
  content: "";
  transform: translateX(-50%);
  animation: hero-scroll-cue 1.7s ease-in-out infinite;
}

@keyframes hero-aurora {
  from { transform: scale(1) translate3d(-1%, 0, 0); }
  to { transform: scale(1.08) translate3d(1%, -1%, 0); }
}

@keyframes hero-scroll-cue {
  0%, 100% { opacity: 0.35; transform: translate(-50%, 0); }
  55% { opacity: 1; transform: translate(-50%, 0.55rem); }
}

@keyframes hero-title-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.art,
.medal {
  display: flex;
  min-height: 0;
  height: clamp(25rem, 38vw, 33rem);
  align-items: center;
  padding: 5.5rem 0 2rem;
  background-position: center;
  background-color: #17191c;
  background-size: cover;
  background-repeat: no-repeat;
}

.art {
  background-image: linear-gradient(to bottom, rgba(16, 17, 19, 0.22) 0%, rgba(23, 25, 28, 0.28) 52%, #17191c 100%), url("../assets/img/bg-art-dark-optimized.webp");
}

.medal {
  background-image: linear-gradient(to bottom, rgba(16, 17, 19, 0.22) 0%, rgba(23, 25, 28, 0.28) 52%, #17191c 100%), url("../assets/img/bg-medal-optimized.webp");
}

.art > .container,
.medal > .container {
  min-height: 0;
}

.sub-title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.sub-title h1 {
  max-width: 15ch;
  font-size: clamp(2.15rem, 6vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: clamp(0.06em, 0.8vw, 0.14em);
  text-wrap: balance;
}

.sub-title h2 {
  margin: 1rem 0 0 !important;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  letter-spacing: 0.24em;
}

#about {
  min-height: 0;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background-position: center;
  background-color: #101113;
  background-image: linear-gradient(to bottom, rgba(16, 17, 19, 0.62), rgba(16, 17, 19, 0.7)), url("../assets/img/about.webp");
}

.about-section {
  padding-top: 0;
  background: transparent;
}

.section-heading {
  max-width: 48rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: #b7d4cb;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-eyebrow::before,
.section-eyebrow::after {
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 196, 189, 0.8));
  content: "";
}

.section-eyebrow::after {
  transform: rotate(180deg);
}

.section-heading h2 {
  margin: 0;
  color: #f0f1ed;
  font-size: clamp(2rem, 4.5vw, 3.65rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-description {
  max-width: 39rem;
  margin: 1rem auto 0;
  color: #aeb6b4;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.7;
}

.about-section .section-heading {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.about-copy {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  border: 1px solid rgba(215, 226, 224, 0.2);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(18, 21, 22, 0.42), rgba(18, 21, 22, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1rem 3rem rgba(0, 0, 0, 0.12);
  text-align: left;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.about-copy::before {
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #a9d2c9, rgba(214, 183, 156, 0.25));
  content: "";
}

.about-section p {
  margin: 0;
  color: #d0d5d4 !important;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.85;
}

.about-section .footer-section {
  position: static;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.projects-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 0;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: linear-gradient(160deg, #17191c 0%, #1d2022 54%, #17191c 100%) !important;
  background-color: #17191c !important;
  transition: background-color 0.65s ease;
}

.projects-section::before,
.projects-section::after {
  position: absolute;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(139, 196, 189, 0.075);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.projects-section::before {
  top: 16%;
  left: -13rem;
  box-shadow: 0 0 0 2.5rem rgba(139, 196, 189, 0.018), 0 0 0 5rem rgba(139, 196, 189, 0.012);
}

.projects-section::after {
  right: -13rem;
  bottom: 10%;
  border-color: rgba(214, 183, 156, 0.08);
  box-shadow: 0 0 0 2.5rem rgba(214, 183, 156, 0.018), 0 0 0 5rem rgba(214, 183, 156, 0.012);
}

.project-category:nth-child(even) {
  background: linear-gradient(160deg, #141719 0%, #191d1f 54%, #141719 100%) !important;
}

.project-category .contact-heading {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.projects-section > .container {
  max-width: 1160px;
}

.projects-section .section-heading {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.projects-section .row {
  align-items: center;
}

.projects-section .project-row {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.projects-section .project-row:last-child {
  margin-bottom: 0;
}

.projects-section .project-row-featured {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.projects-section img {
  display: block;
  width: 100%;
  max-height: 36rem;
  padding: 0.4rem;
  border: 1px solid rgba(215, 226, 224, 0.2);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012));
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.16);
  object-fit: contain;
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}

.projects-section .project-artwork {
  position: relative;
  margin: 0;
}

.project-artwork-stamp {
  position: absolute;
  right: clamp(0.7rem, 2vw, 1.35rem);
  bottom: clamp(0.7rem, 2vw, 1.35rem);
  display: flex;
  width: clamp(5.1rem, 8vw, 6.2rem);
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  border: 1px solid rgba(224, 204, 177, 0.68);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(28, 34, 33, 0.82), rgba(20, 23, 24, 0.7));
  box-shadow: inset 0 0 0 3px rgba(224, 204, 177, 0.08), 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25), 0 0 1.2rem rgba(214, 183, 156, 0.1);
  color: #e7d5bd;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(7deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-artwork-stamp::before {
  position: absolute;
  inset: 0.28rem;
  border: 1px solid rgba(214, 183, 156, 0.28);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.project-artwork-monogram {
  color: #a9d2c9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: -0.08em;
  line-height: 1;
}

.project-artwork-stamp strong {
  color: #f0e2d0;
  font-size: 0.58rem;
  font-weight: 700;
}

.project-artwork:hover .project-artwork-stamp {
  border-color: rgba(177, 225, 214, 0.86);
  box-shadow: inset 0 0 0 3px rgba(139, 196, 189, 0.1), 0 0.7rem 1.8rem rgba(0, 0, 0, 0.3), 0 0 1.5rem rgba(139, 196, 189, 0.2);
  transform: rotate(0) scale(1.06);
}

.projects-section img:hover {
  transform: translateY(-5px) scale(1.008);
  border-color: rgba(139, 196, 189, 0.5);
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.22), 0 0 1.5rem rgba(139, 196, 189, 0.08);
}

.projects-section .project {
  position: relative;
  isolation: isolate;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(215, 226, 224, 0.18);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}

.projects-section .project::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(300px circle at var(--contact-pointer-x, 50%) var(--contact-pointer-y, 0%), rgba(139, 196, 189, 0.18), transparent 72%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.projects-section .project:hover {
  border-color: rgba(139, 196, 189, 0.48);
  transform: translateY(-5px);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.17), 0 0 2rem rgba(139, 196, 189, 0.06);
}

.projects-section .project:hover::before {
  opacity: 1;
}

.projects-section .project-text {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.projects-section .project-text p,
.projects-section .text-black-50 {
  color: var(--site-text-muted) !important;
}

.projects-section h4 {
  margin-bottom: 0.9rem;
  color: #f4f4f2;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
}

.projects-section .btn,
.contact-section .btn,
.masthead .btn {
  width: auto;
  min-height: 2.9rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #f0f3f2 !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.projects-section .btn:focus-visible,
.contact-section .btn:focus-visible,
.masthead .btn:focus-visible,
.portfolio-modal .btn-close:focus-visible,
.itc-slider-btn:focus-visible {
  outline: 3px solid rgba(139, 196, 189, 0.72);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(139, 196, 189, 0.18) !important;
}

.projects-section .btn:active,
.contact-section .btn:active,
.masthead .btn:active,
#mainNav .navbar-toggler:active {
  transform: translateY(1px);
}

.projects-section .btn:hover,
.contact-section .btn:hover,
.masthead .btn:hover {
  transform: translateY(-2px);
  border-color: var(--site-border-hover);
  background-color: rgba(139, 196, 189, 0.08) !important;
  color: #fff !important;
}

.projects-section hr {
  max-width: 3rem;
  margin: 1.25rem auto;
  border-top: 1px solid var(--site-border);
  opacity: 1;
}

.projects-section-art {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem);
  background-color: #17191c;
  background-image: linear-gradient(160deg, #17191c 0%, #202326 52%, #17191c 100%);
  transition: background-color 0.65s ease;
}

.projects-section-art::before,
.projects-section-art::after {
  position: absolute;
  z-index: -1;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(139, 196, 189, 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.projects-section-art::before {
  top: 16%;
  left: -14rem;
  box-shadow: 0 0 0 2.5rem rgba(139, 196, 189, 0.022), 0 0 0 5rem rgba(139, 196, 189, 0.012);
}

.projects-section-art::after {
  right: -14rem;
  bottom: 12%;
  border-color: rgba(214, 183, 156, 0.085);
  box-shadow: 0 0 0 2.5rem rgba(214, 183, 156, 0.02), 0 0 0 5rem rgba(214, 183, 156, 0.012);
}

.projects-section-art > .container {
  max-width: 1240px;
}

.projects-section-art .section-heading {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.projects-section-art .section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.projects-section-art .section-description {
  margin-top: 0.8rem;
}

#portfolio {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.projects-section-art .divider-custom {
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
}

.projects-section-art .row {
  row-gap: 0.75rem;
}

.projects-section-art .row > [class*="col-"] {
  margin-bottom: 0 !important;
}

.projects-section-art .portfolio-item {
  position: relative;
  height: 100%;
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(215, 226, 224, 0.18);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005));
  text-align: center;
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.projects-section-art .portfolio-item:hover,
.projects-section-art .portfolio-item:focus-visible {
  transform: translateY(-4px);
  border-color: var(--site-border-hover);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.18), 0 0 1.5rem rgba(139, 196, 189, 0.055);
  outline: none;
}

.projects-section-art .portfolio-item::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(300px circle at var(--contact-pointer-x, 50%) var(--contact-pointer-y, 0%), rgba(139, 196, 189, 0.2), transparent 72%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.projects-section-art .portfolio-item:hover::before,
.projects-section-art .portfolio-item:focus-visible::before {
  opacity: 1;
}

.projects-section-art .portfolio-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: none;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.projects-section-art .portfolio-item:hover img {
  transform: scale(1.025);
}

.projects-section-art .portfolio-item::after {
  position: absolute;
  right: 1rem;
  bottom: 4.9rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(215, 226, 224, 0.24);
  border-radius: 999px;
  background: rgba(16, 17, 19, 0.78);
  color: #f0f3f2;
  content: "Открыть работу  ↗";
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translateY(0.45rem);
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.projects-section-art .portfolio-item:hover::after,
.projects-section-art .portfolio-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.projects-section-art .p-item {
  min-height: 3.6rem;
  padding: 0.5rem 0.25rem 0;
  color: #f2f1ef;
}

.projects-section-art .p-item br {
  display: none;
}

.projects-section-art .p-item p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.medal-content {
  padding-bottom: 0;
}

.portfolio-modal .modal-content {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 1.1rem;
  background-color: #202326;
  color: #e6e9e8;
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.3s ease;
}

.portfolio-modal .modal-header {
  padding: 1rem 1rem 0;
}

.portfolio-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.85;
}

.portfolio-modal .btn-close:hover {
  opacity: 1;
}

.portfolio-modal .modal-body {
  padding: 0.75rem clamp(1rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3rem) !important;
}

.portfolio-modal .portfolio-modal-title {
  max-width: 28ch;
  margin: 0 auto;
  color: #f0f3f2 !important;
  font-size: clamp(1.35rem, 3.4vw, 2.45rem);
  line-height: 1.25;
  text-wrap: balance;
}

.portfolio-modal .divider-custom {
  margin: 1.25rem auto;
}

.portfolio-modal .itc-slider {
  max-width: 100%;
  margin: 0 auto;
}

.portfolio-modal .itc-slider-item {
  position: relative;
  display: flex;
  min-height: min(52vh, 36rem);
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.portfolio-modal .itc-slider-item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(52vh, 36rem);
  border-radius: 0.5rem;
  object-fit: contain;
}

.portfolio-modal .itc-slider-item img.is-sharding {
  opacity: 0.12;
  transition: opacity 0.18s ease;
}

.image-shards {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.image-shard {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform, opacity;
}

.image-shards-assemble .image-shard {
  animation: shard-assemble 2s cubic-bezier(0.18, 0.72, 0.22, 1) both;
}

.image-shards-disassemble .image-shard {
  animation: shard-disassemble 2s cubic-bezier(0.55, 0.05, 0.8, 0.35) both;
}

@keyframes shard-assemble {
  from {
    opacity: 0;
    transform: translate3d(var(--shard-x), var(--shard-y), 0) rotate(var(--shard-rotate)) scale(0.72);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes shard-disassemble {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(var(--shard-x), var(--shard-y), 0) rotate(var(--shard-rotate)) scale(0.72);
  }
}

.portfolio-modal .modal-txt {
  max-width: 62rem;
  margin: 1.5rem auto 0;
  color: #d0d5d4;
  font-size: clamp(0.98rem, 1.35vw, 1.15rem);
  line-height: 1.75;
}

.itc-slider-btn {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(20, 23, 24, 0.92);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.portfolio-modal button.itc-slider-btn {
  background-color: rgba(20, 23, 24, 0.92);
}

.itc-slider-btn::before {
  display: none;
}

.itc-slider-btn:hover,
.itc-slider-btn:focus-visible {
  background: #416f6b;
  color: #fff;
}

.portfolio-modal button.itc-slider-btn:hover,
.portfolio-modal button.itc-slider-btn:focus-visible {
  background-color: #416f6b;
}

.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(3.5rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(108, 157, 150, 0.1), transparent 42%),
    linear-gradient(180deg, #17191c, #141618 100%);
  transition: background-color 0.65s ease;
}

.contact-section::before,
.contact-section::after {
  position: absolute;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(139, 196, 189, 0.075);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.contact-section::before {
  top: 5rem;
  left: -18rem;
  box-shadow: 0 0 0 2.5rem rgba(139, 196, 189, 0.018), 0 0 0 5rem rgba(139, 196, 189, 0.012);
}

.contact-section::after {
  right: -18rem;
  bottom: -8rem;
  border-color: rgba(214, 183, 156, 0.08);
  box-shadow: 0 0 0 2.5rem rgba(214, 183, 156, 0.018), 0 0 0 5rem rgba(214, 183, 156, 0.012);
}

.contact-section .container {
  max-width: 1160px;
}

.contact-heading {
  max-width: 48rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(139, 196, 189, 0.24);
  border-radius: 999px;
  background: rgba(139, 196, 189, 0.055);
  color: #b7d4cb;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-status span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #9bd5bb;
  box-shadow: 0 0 0 0 rgba(155, 213, 187, 0.45);
  animation: contact-status-pulse 2.2s ease-out infinite;
}

.contact-heading h2 {
  margin: 0;
  color: #f0f1ed;
  font-size: clamp(2rem, 4.5vw, 3.65rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.contact-heading h2 span {
  background: linear-gradient(100deg, #c0ddd2, #dfc5aa);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.contact-intro {
  max-width: 38rem;
  margin: 1.1rem auto 0;
  color: #aeb6b4;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.7;
}

.contact-section .card {
  position: relative;
  isolation: isolate;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(215, 226, 224, 0.18);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  color: #f4f4f2;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.contact-section .card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(280px circle at var(--contact-pointer-x, 50%) var(--contact-pointer-y, 0%), rgba(139, 196, 189, 0.16), transparent 72%);
  content: "";
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.contact-section .card:hover {
  transform: translateY(-7px);
  border-color: rgba(139, 196, 189, 0.52);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.22), 0 0 2rem rgba(139, 196, 189, 0.075);
}

.contact-section .card:hover::before {
  opacity: 1;
}

.contact-section .card h4 {
  color: #f4f4f2;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.contact-card {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.contact-section .card-body {
  position: relative;
  z-index: 1;
}

.contact-orbit {
  position: relative;
  display: grid;
  width: 4.75rem;
  height: 4.75rem;
  place-items: center;
  margin: 0 auto 1.35rem;
  border: 1px solid rgba(139, 196, 189, 0.32);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(139, 196, 189, 0.16), rgba(23, 25, 28, 0.3) 68%);
  box-shadow: inset 0 0 1.1rem rgba(139, 196, 189, 0.075), 0 0 1.4rem rgba(139, 196, 189, 0.07);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-orbit::before,
.contact-orbit::after {
  position: absolute;
  inset: -0.42rem;
  border: 1px solid rgba(139, 196, 189, 0.16);
  border-radius: 50%;
  content: "";
  transform: rotate(-24deg) scaleY(0.34);
  transition: transform 0.45s ease, border-color 0.3s ease;
}

.contact-orbit::after {
  transform: rotate(38deg) scaleY(0.34);
  border-color: rgba(214, 183, 156, 0.17);
}

.contact-section .card:hover .contact-orbit {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(177, 225, 214, 0.68);
  box-shadow: inset 0 0 1.3rem rgba(139, 196, 189, 0.14), 0 0 1.8rem rgba(139, 196, 189, 0.2);
}

.contact-section .card:hover .contact-orbit::before {
  transform: rotate(0) scaleY(0.46);
  border-color: rgba(139, 196, 189, 0.35);
}

.contact-section .card:hover .contact-orbit::after {
  transform: rotate(0) scaleY(0.68);
  border-color: rgba(214, 183, 156, 0.35);
}

.contact-card-icon {
  margin: 0;
  color: #b5dacf;
  font-size: 1.65rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-section .card:hover .contact-card-icon {
  transform: scale(1.1);
  color: #e2f4ed;
}

.contact-card-note {
  margin: 0.5rem 0 0;
  color: #9ea9a7;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.contact-section .card hr {
  width: 2.25rem;
  border-color: rgba(139, 196, 189, 0.65);
  border-width: 1px;
  opacity: 1;
}

.contact-section .contact-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.8rem;
  padding-inline: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.045em;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
}

.contact-section .contact-card-action::after {
  content: "\2197";
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.contact-section .contact-card-action:hover::after {
  transform: translate(2px, -2px);
}

.footer {
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem 1.25rem;
  background: #17191c !important;
  color: #aeb3b5;
  text-align: center;
  transition: background-color 0.45s ease, color 0.3s ease;
}

.footer::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(32rem, 76vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 196, 189, 0.65), rgba(214, 183, 156, 0.5), transparent);
  content: "";
  transform: translateX(-50%);
}

.footer .soc-icon {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.35rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(215, 226, 224, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  color: #d7dddb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition: color 0.24s ease, border-color 0.24s ease, transform 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer .soc-icon::after {
  position: absolute;
  inset: -80% auto -80% -45%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(224, 245, 237, 0.2), transparent);
  content: "";
  opacity: 0;
  transform: skewX(-20deg);
  transition: left 0.55s ease, opacity 0.2s ease;
  pointer-events: none;
}

.footer .soc-icon i {
  color: #a9d2c9;
  font-size: 1rem;
  transition: color 0.24s ease, transform 0.24s ease;
}

.footer .soc-icon:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 196, 189, 0.56);
  background-color: rgba(139, 196, 189, 0.08);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18), 0 0 1.2rem rgba(139, 196, 189, 0.1);
  color: #f0f3f2;
}

.footer .soc-icon:hover::after {
  left: 115%;
  opacity: 1;
}

.footer .soc-icon:hover i {
  transform: scale(1.12);
  color: #d9eee8;
}

.footer .soc-icon:focus-visible {
  outline: 3px solid rgba(139, 196, 189, 0.72);
  outline-offset: 3px;
}

.footer .copyright {
  position: relative;
  padding-top: 1.15rem;
  color: rgba(215, 221, 219, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-shadow: 0 0 1rem rgba(139, 196, 189, 0.12);
}

@media (max-width: 575.98px) {
  .footer .copyright {
    padding-top: 0.9rem;
    font-size: 0.62rem;
    letter-spacing: 0.09em;
  }
}

@media (min-width: 992px) {
  #mainNav {
    min-height: 5.25rem;
    background-color: transparent;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent);
  }

  #mainNav.navbar-shrink {
    background-color: rgba(13, 14, 16, 0.68);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  #mainNav .nav-link,
  #mainNav.navbar-shrink .nav-link {
    padding: 1.5rem 1rem;
    border-bottom: 2px solid transparent;
  }

  #mainNav.navbar-shrink .nav-link.active {
    border-bottom-color: transparent;
  }
}

@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    margin: 0.5rem -0.75rem -0.4rem;
    padding: 0.4rem 0.75rem 0.75rem;
    border: 1px solid var(--site-border);
    border-radius: 0.9rem;
    background: rgba(13, 14, 16, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  #mainNav .nav-link {
    padding: 0.75rem 0.25rem;
  }

  #mainNav .nav-link::before {
    top: 50%;
    left: auto;
    right: 0.4rem;
    transform: translate(0, -50%) scale(0.7);
  }

  #mainNav .nav-link:hover::before,
  #mainNav .nav-link:focus-visible::before,
  #mainNav .nav-link.is-current::before {
    transform: translate(0, -50%) scale(1);
  }

  #mainNav .nav-link::after {
    right: 1.8rem;
    bottom: 0.28rem;
    left: 0.25rem;
    width: min(7rem, 55%);
  }
}

@media (max-width: 575.98px) {
  #mainNav {
    min-height: 4.25rem;
  }

  #mainNav .navbar-brand img {
    max-height: 3rem;
  }

  .masthead {
    min-height: max(38rem, 92svh);
  }

  .art,
  .medal {
    height: 25rem;
    min-height: 0;
    padding: 5rem 0 1.5rem;
  }

  .projects-section-art .row {
    row-gap: 0.35rem;
  }

  .projects-section-art .portfolio-item {
    padding: 0.55rem;
    border-radius: 0.8rem;
  }

  .projects-section-art .p-item {
    min-height: 3rem;
    font-size: 0.9rem;
  }

  .project-artwork-stamp {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 5rem;
  }

  .masthead .hero-subtitle {
    gap: 0.45rem;
    font-size: clamp(0.88rem, 3.8vw, 1.05rem);
    letter-spacing: 0.12em;
  }

  .subtitle-flourish {
    width: clamp(1.25rem, 6vw, 1.8rem);
  }

  .portfolio-modal .itc-slider-item {
    min-height: 40vh;
  }

  .portfolio-modal .itc-slider-item img {
    max-height: 40vh;
  }

  .itc-slider-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  .footer .soc-icon {
    min-height: 2.65rem;
    margin: 0.25rem;
    padding: 0.6rem 0.85rem;
  }

  .contact-section .contact-card-action {
    max-width: 100%;
  }

  .projects-section-art::before {
    left: -16rem;
  }

  .projects-section-art::after {
    right: -16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .site-has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .masthead .hero-title {
    animation: none;
  }

  .subtitle-flourish path {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .image-shards,
  .hero-atmosphere {
    animation: none !important;
  }

  .contact-status span {
    animation: none;
  }
}

@keyframes contact-status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(155, 213, 187, 0.42); }
  70%, 100% { box-shadow: 0 0 0 0.5rem rgba(155, 213, 187, 0); }
}
