.about {
  --mode: var(--accent);
  --mode-text: var(--accent-text);
  --mode-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  display: flex;
  flex-direction: column;
  gap: 5.6rem;
  width: min(92%, 1240px);
  margin: 0 auto;
  padding: 4rem 0 6rem;
}
@media (min-width: 768px) {
  .about {
    gap: 7.2rem;
    padding-top: 5.6rem;
  }
}

.about__eyebrow {
  display: block;
  color: var(--mode-text);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.about__heading {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.8rem;
}
@media (max-width: 767.98px) {
  .about__heading {
    padding-inline: var(--card-pad);
  }
}

.about__heading h2 {
  max-width: 60rem;
  font-size: clamp(2.6rem, 3.4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.about__heading p {
  max-width: 56rem;
  color: var(--gray);
  font-size: 1.6rem;
  line-height: 1.55;
}

.about .next-page {
  width: 100%;
  margin-top: 0;
}

.profile {
  position: relative;
  overflow: hidden;
  border-radius: 3.2rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -20px rgba(15, 23, 42, 0.22);
}

.profile__cover {
  position: relative;
  height: 18rem;
  background: #1a2418;
}
@media (min-width: 768px) {
  .profile__cover {
    height: 26rem;
  }
}

.profile__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center 45%;
     object-position: center 45%;
}

.profile__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 70% at 100% 0%, rgba(0, 0, 0, 0.28), transparent 70%);
}

.profile__contact {
  position: absolute;
  z-index: 1;
  top: 1.6rem;
  right: 1.6rem;
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: var(--white);
  transition: background 0.25s ease;
}
@media (min-width: 768px) {
  .profile__contact {
    top: 2.4rem;
    right: 2.4rem;
  }
}

.profile__contact:hover {
  background: rgba(255, 255, 255, 0.3);
}

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

.profile__contact svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: -6rem;
  padding: 0 2.4rem 2.4rem;
}
@media (min-width: 768px) {
  .profile__body {
    margin-top: -8rem;
    padding: 0 4rem 4rem;
  }
}

.profile__avatar {
  width: 10.4rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 24px -10px rgba(11, 18, 32, 0.45);
}
@media (min-width: 768px) {
  .profile__avatar {
    width: 14rem;
  }
}

.profile__avatar img {
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center 28%;
     object-position: center 28%;
}

.profile__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

.about__hero h1 {
  font-size: clamp(2.6rem, 3vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.profile__role {
  margin-top: 0.4rem;
  color: var(--gray);
  font-size: 1.5rem;
}

.profile__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem 0.6rem 1rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
}

.profile__tag svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--mode);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile__bio {
  color: var(--gray);
  font-size: 1.6rem;
  line-height: 1.6;
}

.profile__bio p + p {
  margin-top: 1rem;
}

.profile__bio .profile__motto {
  margin-bottom: -0.4rem;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile__footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .profile__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.profile__highlights ul {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  padding: 0.4rem;
  margin: -0.4rem;
  scrollbar-width: none;
}
@media (max-width: 767.98px) {
  .profile__highlights ul {
    justify-content: space-between;
    gap: 0.4rem;
    overflow-x: visible;
  }
  .profile__highlights ul li {
    flex: 1 1 0;
    min-width: 0;
  }
  .profile__highlights ul .profile__highlight {
    min-width: 0;
    gap: 0.6rem;
    font-size: 1.1rem;
    line-height: 1.2;
    white-space: normal;
  }
  .profile__highlights ul .profile__highlight-ring {
    width: 5.2rem;
    height: 5.2rem;
  }
  .profile__highlights ul .profile__highlight-ring svg {
    padding: 1.2rem;
  }
}
@media (min-width: 768px) {
  .profile__highlights ul {
    gap: 2.4rem;
  }
}

.profile__highlights ul::-webkit-scrollbar {
  display: none;
}

.profile__highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  min-width: 6.4rem;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.profile__highlight-ring {
  display: grid;
  place-items: center;
  width: 6.4rem;
  height: 6.4rem;
  padding: 2.5px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #2f5a3c, #6f8f4e, #a9bfae, #4a6b73, #2f5a3c);
  transition: transform 0.35s var(--ease-spring);
}

.profile__highlight-ring svg {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--bg);
  fill: none;
  stroke: var(--mode);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile__highlight:hover .profile__highlight-ring {
  transform: translateY(-2px);
}

.profile__highlight:focus-visible {
  outline: none;
}

.profile__highlight:focus-visible .profile__highlight-ring {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.profile__cta {
  align-self: flex-start;
  gap: 0.8rem;
}
@media (min-width: 768px) {
  .profile__cta {
    align-self: auto;
  }
}

.profile__cta svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about > section[id] {
  scroll-margin-top: 10rem;
}

@media (prefers-reduced-motion: reduce) {
  .profile__highlight-ring {
    transition: none;
  }
}
.bridge {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 768px) {
  .bridge {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bridge__card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2.4rem;
  border-radius: 2.4rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 36px -14px rgba(15, 23, 42, 0.12);
}

.bridge__card svg {
  width: 4.4rem;
  height: 4.4rem;
  margin-bottom: 0.8rem;
  padding: 1rem;
  border-radius: 1.2rem;
  background: var(--mode-soft);
  fill: none;
  stroke: var(--mode);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background 0.4s ease, stroke 0.4s ease;
}

.bridge__card h3 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.bridge__from {
  color: var(--mode-text);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bridge__card p:last-child {
  color: var(--gray);
  font-size: 1.5rem;
  line-height: 1.55;
}

.cv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 1024px) {
  .cv {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

.cv__side {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.cv__side > .cv__card:last-child {
  flex-grow: 1;
}

.cv__card,
.stack,
.skills {
  padding: 2.8rem 2.4rem;
  border-radius: 2.4rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 36px -14px rgba(15, 23, 42, 0.12);
}
@media (min-width: 768px) {
  .cv__card,
  .stack,
  .skills {
    padding: 3.2rem;
  }
}

.card-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.6rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

.card-title svg {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  fill: none;
  stroke: var(--mode);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cv__card--main .cv__points {
  max-width: 60rem;
}
@media (min-width: 768px) {
  .cv__card--main {
    padding: 4rem;
  }
  .cv__card--main .card-title {
    font-size: 2.6rem;
  }
  .cv__card--main .cv__item {
    --logo: 6.4rem;
    --gap: 2rem;
  }
  .cv__card--main .cv__item + .cv__item {
    margin-top: 3.2rem;
    padding-top: 3.2rem;
  }
  .cv__card--main .cv__role h4 {
    font-size: 1.9rem;
  }
  .cv__card--main .cv__role p {
    font-size: 1.5rem;
  }
  .cv__card--main .cv__points {
    font-size: 1.6rem;
    line-height: 1.55;
  }
}

.cv__card--compact .cv__item {
  --logo: 4.4rem;
  --gap: 1.4rem;
}
.cv__card--compact .cv__item + .cv__item {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
}
.cv__card--compact .cv__role h4 {
  font-size: 1.5rem;
}
.cv__card--compact .cv__role p {
  font-size: 1.3rem;
}

.cv__list {
  display: flex;
  flex-direction: column;
}

.cv__item {
  --logo: 5.6rem;
  --gap: 1.6rem;
  position: relative;
  display: grid;
  grid-template-columns: var(--logo) minmax(0, 1fr);
  gap: var(--gap);
}

.cv__item + .cv__item {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
}

.cv__item + .cv__item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: calc(var(--logo) + var(--gap));
  height: 1px;
  background: var(--border);
}

.cv__logo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--logo);
  height: var(--logo);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.18);
}

.cv__logo img {
  width: 76%;
  height: 76%;
  -o-object-fit: contain;
     object-fit: contain;
}

.cv__logo--seal img {
  width: 100%;
  height: 100%;
}

.cv__logo--square img {
  width: 60%;
  height: 60%;
}

.cv__logo--jr {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.cv__logo--jr span {
  color: var(--mode-text);
  transition: color 0.4s ease;
}

.cv__logo--udem {
  border-color: #e4d93a;
  background: #f7ed43;
}

.cv__roles {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.cv__role {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cv__role:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(-1 * (var(--gap) + var(--logo) / 2) - 0.075rem);
  width: 0.15rem;
  height: calc(100% + 2.4rem + 0.9rem);
  background: color-mix(in srgb, var(--mode) 40%, var(--border));
  transition: background 0.4s ease;
}

.cv__role + .cv__role::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: calc(-1 * (var(--gap) + var(--logo) / 2) - 0.5rem);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--mode);
  box-shadow: 0 0 0 4px var(--white);
  transition: background 0.4s ease;
}

.cv__role h4 {
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.cv__role p {
  color: var(--gray);
  font-size: 1.4rem;
  line-height: 1.45;
}

.cv__role .cv__meta {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.cv__points {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-left: 1.8rem;
  list-style: disc;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.55;
}

.cv__points li::marker {
  color: var(--mode);
}

.cv__points strong {
  color: var(--mode);
}

.cv__tags {
  display: none;
}
@media (min-width: 768px) {
  .cv__tags {
    display: flex;
  }
}
.cv__tags {
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.cv__tags li {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--gray);
  font-size: 1.2rem;
  font-weight: 500;
}

.thesis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 1024px) {
  .thesis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.thesis__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.8rem 2.4rem;
  border-radius: 2.4rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 36px -14px rgba(15, 23, 42, 0.12);
}
@media (min-width: 768px) {
  .thesis__text {
    padding: 3.2rem;
  }
}

.thesis h2 {
  margin: 0.6rem 0 1.6rem;
  font-size: clamp(2.6rem, 3.4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.thesis__text p {
  color: var(--gray);
  font-size: 1.6rem;
  line-height: 1.6;
}

.thesis__text p + p {
  margin-top: 1.2rem;
}

.thesis__text strong {
  color: var(--text);
}

.thesis__text > :first-child {
  margin-top: auto;
}

.thesis__text .thesis__note {
  margin-top: auto;
  padding-top: 2.4rem;
  font-size: 1.3rem;
}

.scope {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  --scope-pad: 3.2rem;
  gap: calc(var(--scope-pad) + 1.1rem);
  padding: var(--scope-pad) 2.4rem;
  border-radius: 2.4rem;
  background: #070a12;
  color: #e6eaf0;
}
@media (min-width: 768px) {
  .scope {
    --scope-pad: 4rem;
    padding: var(--scope-pad);
  }
}

.scope__view {
  position: relative;
  width: min(100%, 42rem);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle, #0d1220 0%, #05070c 70%);
  box-shadow: inset 0 0 60px 20px #000, 0 0 0 10px #151b27, 0 0 0 11px #2a3342;
}

.scope__view svg {
  width: 100%;
  height: 100%;
}

.scope__channel {
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.scope__view[data-channels~=dapi] .scope__channel--dapi,
.scope__view[data-channels~=actin] .scope__channel--actin,
.scope__view[data-channels~=clp] .scope__channel--clp {
  opacity: 1;
}

.scope__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7d8894;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.scope__view[data-channels=""] .scope__empty {
  opacity: 1;
}

.scope__scale {
  position: absolute;
  right: 22%;
  bottom: 16%;
  padding-top: 0.4rem;
  border-top: 3px solid #fff;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.scope__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  width: min(100%, 40rem);
}

.scope__btn {
  min-height: 4rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #b8c2cc;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.scope__btn::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.8rem;
  border-radius: 50%;
  background: var(--channel);
  box-shadow: 0 0 10px var(--channel);
}

.scope__btn--dapi {
  --channel: #3d6bff;
}

.scope__btn--actin {
  --channel: #ff3366;
}

.scope__btn--clp {
  --channel: #39ff7a;
}

.scope__btn[aria-pressed=true] {
  border-color: var(--channel);
  background: color-mix(in srgb, var(--channel) 16%, transparent);
  color: #fff;
}

.scope__btn:hover {
  border-color: var(--channel);
  background: color-mix(in srgb, var(--channel) 26%, transparent);
  box-shadow: 0 0 16px -4px var(--channel);
  color: #fff;
  transform: translateY(-2px);
}

.scope__btn:active {
  transform: translateY(0);
}

.scope__controls:not(.is-explored) .scope__btn[aria-pressed=false]:not(:hover) {
  animation: scope-pulse 2.4s ease-in-out infinite;
}

@keyframes scope-pulse {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    border-color: color-mix(in srgb, var(--channel) 70%, transparent);
    box-shadow: 0 0 18px -2px var(--channel);
  }
}
.scope__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .scope__channel,
  .scope__empty,
  .scope__btn {
    transition: none;
  }
  .scope__btn {
    animation: none !important;
  }
}
.toolbox {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.stack__head .card-title {
  margin-bottom: 1.2rem;
}

.stack__head p {
  color: var(--gray);
  font-size: 1.5rem;
  line-height: 1.5;
}

.stack__tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
@media (min-width: 768px) {
  .stack__tiles {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

.stack__tiles li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 0.4rem 1.2rem;
  border-radius: 1.6rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 20px -10px rgba(15, 23, 42, 0.16);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
}

.stack__tiles img {
  width: 3.2rem;
  height: 3.2rem;
  -o-object-fit: contain;
     object-fit: contain;
}

.skills__groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.2rem;
}
@media (min-width: 768px) {
  .skills__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .skills__groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4rem;
  }
}

.skills__group h4 {
  margin-bottom: 1.6rem;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.skills__group ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skills__group li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.4;
}

.skills__group svg {
  flex-shrink: 0;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0.8rem;
  border-radius: 50%;
  background: var(--mode-soft);
  fill: none;
  stroke: var(--mode);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background 0.4s ease, stroke 0.4s ease;
}

.skills__growth {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 3.2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .skills__growth {
    flex-direction: row;
    align-items: center;
    gap: 2.4rem;
  }
}

.skills__growth h4 {
  flex-shrink: 0;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.skills__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skills__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem 0.6rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.2;
}

.skills__chips svg {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--mode-soft);
  fill: none;
  stroke: var(--mode);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background 0.4s ease, stroke 0.4s ease;
}

.field-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
@media (min-width: 1024px) {
  .field-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
  }
}

.field-gallery__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/5;
  border-radius: 2rem;
  background: var(--soft-gray);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 36px -14px rgba(15, 23, 42, 0.18);
}

.field-gallery__photo img,
.field-gallery__photo video {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.field-gallery__photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 3.2rem 1.6rem 1.4rem;
  background: linear-gradient(to top, rgba(5, 10, 20, 0.6), transparent);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
@media (min-width: 768px) {
  .field-gallery__photo figcaption {
    padding: 4rem 2rem 1.6rem;
    font-size: 1.4rem;
  }
}